Skip to content

[6.1] Disable flaky CancelAsyncConnections test on kerberos#4333

Merged
mdaigle merged 3 commits into
release/6.1from
dev/automation/pr-4311-to-6.1.6
Jun 5, 2026
Merged

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

Conversation

@mdaigle

@mdaigle mdaigle commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

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

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 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.

@mdaigle mdaigle merged commit eb143b9 into release/6.1 Jun 5, 2026
276 checks passed
@mdaigle mdaigle deleted the dev/automation/pr-4311-to-6.1.6 branch June 5, 2026 18:16
@github-project-automation github-project-automation Bot moved this from To triage to Done in SqlClient Board Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants