Skip to content

Addressing left-over test code review comments from PR#49639#49728

Merged
FabianMeiswinkel merged 88 commits into
Azure:mainfrom
FabianMeiswinkel:users/fabianm/Testfix
Jul 6, 2026
Merged

Addressing left-over test code review comments from PR#49639#49728
FabianMeiswinkel merged 88 commits into
Azure:mainfrom
FabianMeiswinkel:users/fabianm/Testfix

Conversation

@FabianMeiswinkel

Copy link
Copy Markdown
Member

Addressing left-over test code review comments from PR#49639 - #49639

Copilot AI review requested due to automatic review settings July 6, 2026 08:56
@FabianMeiswinkel FabianMeiswinkel requested review from a team and kirankumarkolli as code owners July 6, 2026 08:56
@github-actions github-actions Bot added the Cosmos label Jul 6, 2026
@FabianMeiswinkel

Copy link
Copy Markdown
Member Author

/azp run java - cosmos - tests

@FabianMeiswinkel

Copy link
Copy Markdown
Member Author

/azp run java - cosmos - kafka

@FabianMeiswinkel

Copy link
Copy Markdown
Member Author

/azp run java - cosmos - spark

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

2 similar comments
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Cosmos test code to address remaining review feedback from PR #49639, focusing on reducing test flakiness and improving diagnostics validation in multi-region/live-like scenarios.

Changes:

  • Adjust ChangeFeedTest bulk insert retry behavior and add special handling for 409 conflicts during non-idempotent retried creates.
  • Add explicit diagnostics validation in FaultInjectionServerErrorRuleOnDirectTests for the server connection timeout scenario.
  • Standardize several ClientMetricsTest cases to use SETUP_TIMEOUT and add FlakyTestRetryAnalyzer to improve stability in CI.
Show a summary per file
File Description
sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/ChangeFeedTest.java Tweaks bulk insert retry/error handling and adds a 409-conflict predicate helper.
sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/faultinjection/FaultInjectionServerErrorRuleOnDirectTests.java Adds validation that fault injection was applied (via diagnostics) in the connection-timeout test.
sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/ClientMetricsTest.java Increases per-test timeouts and adds retry analyzer to multiple tests to reduce CI flakiness.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Low

@FabianMeiswinkel

Copy link
Copy Markdown
Member Author

/azp run java - cosmos - tests

@FabianMeiswinkel

Copy link
Copy Markdown
Member Author

/azp run java - cosmos - kafka

@FabianMeiswinkel

Copy link
Copy Markdown
Member Author

/azp run java - cosmos - spark

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

2 similar comments
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12 xinlian12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@FabianMeiswinkel

Copy link
Copy Markdown
Member Author

@microsoft-github-policy-service rerun

@FabianMeiswinkel FabianMeiswinkel merged commit 0d3040f into Azure:main Jul 6, 2026
135 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants