Skip to content

[Cosmos] Preserve circuit breaker test environment - #48207

Draft
tvaron3 wants to merge 1 commit into
Azure:mainfrom
tvaron3:tvaron3-analyze-cosmos-test-failures
Draft

[Cosmos] Preserve circuit breaker test environment#48207
tvaron3 wants to merge 1 commit into
Azure:mainfrom
tvaron3:tvaron3-analyze-cosmos-test-failures

Conversation

@tvaron3

@tvaron3 tvaron3 commented Jul 22, 2026

Copy link
Copy Markdown
Member

Description

  • Preserve pipeline-provided circuit-breaker environment settings after the sync availability-strategy test.
  • Apply the same restoration to the async availability-strategy test.
  • Prevent order-dependent failures in the later multi-write circuit-breaker test matrix.

The availability-strategy tests previously set three circuit-breaker environment variables and then unconditionally deleted them. This removed the sign-off pipeline's AZURE_COSMOS_ENABLE_CIRCUIT_BREAKER=True setting for every test collected afterward.

Validation

  • Reproduced the order dependency locally: the availability-strategy test passed, then the following circuit-breaker test failed after the feature flag was deleted.
  • Source mypy and CSpell checks passed for the changed code.
  • Package-wide local tooling remains blocked by unrelated environment issues (private-feed authentication and pre-existing sample/tooling failures).

Timeout note

The 900-second per-test timeout introduced in #47091 is already present. This PR does not change the separate 240-minute classic Azure DevOps job limit.

Restore pre-existing circuit breaker environment settings after availability strategy tests so later tests inherit the pipeline configuration.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 58eee70a-9712-4ccf-974e-f393a427e876
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
8 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant