Skip to content

[Internal] Gates: Fixes bug where CosmosOperaitonCancellationException is now thrown in CancellationTokenTests#5076

Merged
kirankumarkolli merged 24 commits intomasterfrom
users/nalutripician/gatesCancellationTokenFix
Jun 20, 2025
Merged

[Internal] Gates: Fixes bug where CosmosOperaitonCancellationException is now thrown in CancellationTokenTests#5076
kirankumarkolli merged 24 commits intomasterfrom
users/nalutripician/gatesCancellationTokenFix

Conversation

@NaluTripician
Copy link
Copy Markdown
Contributor

@NaluTripician NaluTripician commented Mar 20, 2025

Pull Request Template

Description

In our pipelines, the most common flaky test is related to the CosmosOperationCanceledExceptionTests class. Here, about 50% of the time, an OperationCancelledException is thrown when the correct exception is CosmosOperationCanceledException. This PR makes sure that the correct exception is thrown in the AbstractRetryHandler class where the exceptions originate from.

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)

Closing issues

To automatically close an issue: closes #5208

@NaluTripician
Copy link
Copy Markdown
Contributor Author

This change will actually be covered in: #5063

@NaluTripician NaluTripician self-assigned this Jun 2, 2025
@NaluTripician NaluTripician added the auto-merge Enables automation to merge PRs label Jun 19, 2025
@kirankumarkolli kirankumarkolli merged commit 80924ef into master Jun 20, 2025
27 checks passed
@kirankumarkolli kirankumarkolli deleted the users/nalutripician/gatesCancellationTokenFix branch June 20, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Enables automation to merge PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fundamentals: Troubleshoot, Identify and Fix .NET SDK Flakey Tests

3 participants