Skip to content

Tests | Disable Async cancellation tests on Kerberos/Managed Instance pipelines#4311

Merged
cheenamalhotra merged 1 commit into
mainfrom
dev/cheena/disable-async-cancel
May 28, 2026
Merged

Tests | Disable Async cancellation tests on Kerberos/Managed Instance pipelines#4311
cheenamalhotra merged 1 commit into
mainfrom
dev/cheena/disable-async-cancel

Conversation

@cheenamalhotra

Copy link
Copy Markdown
Member

Addresses frequent failures in Kerberos/Managed Instance pipelines due to this test case that's not necessary to be run on all environments.

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

Reduces flakiness in the ManualTests suite by skipping the AsyncCancelledConnectionsTest cancellation-stress scenario on Kerberos and Managed Instance environments where it is known to be unstable, while keeping it enabled for other non-Azure, non-MI runs.

Changes:

  • Expanded the CancelAsyncConnections test’s ConditionalTheory gating to exclude Managed Instance and Kerberos pipeline configurations.
  • Added a DataTestUtility.IsNotKerberosTest convenience condition for use in conditional test attributes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/AsyncTest/AsyncCancelledConnectionsTest.cs Adds conditional exclusions for Managed Instance and Kerberos to avoid environment-specific flakiness.
src/Microsoft.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs Introduces IsNotKerberosTest predicate used by conditional test execution.

@cheenamalhotra cheenamalhotra moved this from To triage to In review in SqlClient Board May 27, 2026
@cheenamalhotra cheenamalhotra marked this pull request as ready for review May 27, 2026 20:39
@cheenamalhotra cheenamalhotra requested a review from a team as a code owner May 27, 2026 20:39
@cheenamalhotra cheenamalhotra added Area\Tests Issues that are targeted to tests or test projects Hotfix 7.0.3 PRs targeting main that should be backported to release/7.0 branch for next release. Hotfix 6.1.7 PRs targeting main that should be backported to release/6.1 branch for future hotfix labels May 28, 2026
@cheenamalhotra cheenamalhotra merged commit 4a4bd9d into main May 28, 2026
301 of 308 checks passed
@cheenamalhotra cheenamalhotra deleted the dev/cheena/disable-async-cancel branch May 28, 2026 16:12
@github-project-automation github-project-automation Bot moved this from In review to Done in SqlClient Board May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Tests Issues that are targeted to tests or test projects Hotfix 6.1.7 PRs targeting main that should be backported to release/6.1 branch for future hotfix Hotfix 7.0.3 PRs targeting main that should be backported to release/7.0 branch for next release.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants