Skip to content

[6.1] Disable flaky CancelAsyncConnections test on kerberos#4333

Open
mdaigle wants to merge 3 commits into
release/6.1from
dev/automation/pr-4311-to-6.1.6
Open

[6.1] Disable flaky CancelAsyncConnections test on kerberos#4333
mdaigle wants to merge 3 commits into
release/6.1from
dev/automation/pr-4311-to-6.1.6

Conversation

@mdaigle
Copy link
Copy Markdown
Contributor

@mdaigle mdaigle commented Jun 2, 2026

Ports #4311

Test utility improvements:

  • Added a new property IsNotKerberosTest to DataTestUtility to simplify checking for non-Kerberos environments.

Test attribute updates:

  • Updated the AsyncCancelledConnectionsTest to use [ConditionalTheory] and skip execution on Azure, Kerberos, and Managed Instance pipelines by including IsNotKerberosTest and IsNotManagedInstance in the test conditions.

Copilot AI review requested due to automatic review settings June 2, 2026 20:44
@mdaigle mdaigle requested a review from a team as a code owner June 2, 2026 20:44
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Jun 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 manual test gating to avoid running a flaky CancelAsyncConnections scenario in certain environments (Azure, Kerberos, and Managed Instance) by introducing a reusable Kerberos-negative condition in DataTestUtility.

Changes:

  • Added DataTestUtility.IsNotKerberosTest as the inverse of IsKerberosTest.
  • Updated AsyncCancelledConnectionsTest.CancelAsyncConnections conditional execution to also exclude Kerberos and Managed Instance environments (in addition to Azure).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/AsyncTest/AsyncCancelledConnectionsTest.cs Adjusts test attribute conditions intended to skip the flaky test in more environments.
src/Microsoft.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs Adds a helper property to simplify “non-Kerberos” conditional checks.

Comment on lines +26 to +29
// Disabled on Azure, Kerberos, and Managed Instance pipelines due to environment-specific instability.
[ConditionalTheory(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringsSetup),
nameof(DataTestUtility.IsNotAzureServer), nameof(DataTestUtility.IsNotManagedInstance),
nameof(DataTestUtility.IsNotKerberosTest))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To triage

Development

Successfully merging this pull request may close these issues.

4 participants