Skip to content

[8.0] Tests: Backport quarantine categories only - #5132

Open
paulmedynski wants to merge 1 commit into
release/8.0from
dev/automation/quarantine-backports-8.0
Open

paulmedynski wants to merge 1 commit into
release/8.0from
dev/automation/quarantine-backports-8.0

Conversation

@paulmedynski

@paulmedynski paulmedynski commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Backport applicable test quarantine categories from dotnet/SqlClient main to release/8.0. The net PR diff is now category-only: 14 standalone [Trait("category", "flaky")] additions across 8 existing test files, with zero deletions.

Validation

  • Verified the complete PR diff against its release merge-base: only flaky-category additions, no other changed source lines or added/deleted files; whitespace check passed against that baseline.
  • Affected test projects compiled with dotnet test --no-restore --framework net10.0 --list-tests. Exact-name/category discovery selected 27 affected cases; the corresponding category!=flaky selection excluded all of them.
  • These are compilation and discovery checks, not test execution or proof of repaired stability. Windows/native SNI, .NET Framework discovery/execution, and live-SQL execution are not claimed.

Checklist

  • Tests added or updated (categories only)
  • Public API changes documented (none)
  • Verified against customer repro (not applicable)
  • Ensure no breaking changes introduced

Copilot AI balanced review requested due to automatic review settings November 23, 2026 18:11
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Nov 23, 2026
@paulmedynski paulmedynski added this to the 8.0.0 milestone Nov 23, 2026
@paulmedynski paulmedynski added the Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. label Nov 23, 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.

🟡 Changes recommended

The regression test can pass with the incorrect 15 ms timeout because the default switch uses the caller’s 30-second budget, while the early start signal does not guarantee actual pool-wait contention.

1 open issue
What changed in this PR

Backports recent test quarantines and stability fixes to release/8.0, improving SqlClient test reliability without changing production behavior, public APIs, dependencies, or pipelines.

Changes:

  • Quarantines selected manual tests and the pooled-reset budget theory while preserving their assertions, inputs, and platform conditions.
  • Aligns instrumentation checkout timeouts and adds a held-slot regression test.
  • Waits for virtual timer registration before advancing time; repaired tests retain flaky and gain probation.
File Description
src/​Microsoft.Data.SqlClient/​tests/​UnitTests/​Utilities/​NotifyingTimeProvider.cs Adds notification after virtual timer registration.
src/​Microsoft.Data.SqlClient/​tests/​UnitTests/​SimulatedServerTests/​IsolationLevelResetTests.cs Quarantines the pooled-reset budget theory.
src/​Microsoft.Data.SqlClient/​tests/​UnitTests/​ConnectionPool/​DbConnectionPoolInstrumentationTest.cs Aligns checkout budgets, adds held-slot coverage, and marks probation.
src/​Microsoft.Data.SqlClient/​tests/​UnitTests/​ConnectionPool/​ChannelDbConnectionPoolTest.cs Synchronizes timer registration and bounds waits; adds cleanup and probation.
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​TracingTests/​EventSourceTest.cs Quarantines listener enumeration failures.
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​SQL/​SqlSchemaInfoTest/​SqlSchemaInfoTest.cs Quarantines synchronous and asynchronous schema theories.
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​SQL/​SplitPacketTest/​SplitPacketTest.cs Quarantines four split-packet tests.
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​SQL/​MARSTest/​MARSTest.cs Quarantines shared-connection concurrency coverage.
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​SQL/​ConnectivityTests/​ConnectivityTest.cs Quarantines the asynchronous no-retry timing test.
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​SQL/​ConnectionTestWithSSLCert/​CertificateTest.cs Quarantines the good-certificate connection test.
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​DDBasics/​DDAsyncTest/​DDAsyncTest.cs Quarantines the test with concurrent shared-list writes.

Review effort: Balanced

@paulmedynski paulmedynski changed the title Tests: Backport recent quarantines and stability fixes to 8.0 [8.0 Backport recent quarantines and stability fixes Nov 23, 2026
@paulmedynski paulmedynski changed the title [8.0 Backport recent quarantines and stability fixes [8.0] Backport recent quarantines and stability fixes Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.56%. Comparing base (4523605) to head (b19ce46).
⚠️ Report is 1 commits behind head on release/8.0.

Additional details and impacted files
@@               Coverage Diff               @@
##           release/8.0    #5132      +/-   ##
===============================================
+ Coverage        70.41%   72.56%   +2.15%     
===============================================
  Files              313      313              
  Lines            45808    71004   +25196     
===============================================
+ Hits             32255    51527   +19272     
- Misses           13553    19477    +5924     
Flag Coverage Δ
CI-SqlClient ?
sqlclient-pr 72.56% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI balanced review requested due to automatic review settings November 24, 2026 12:15

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.

🟡 Changes recommended

The summary, backport provenance, and validation scope omit expanded sync/async retry coverage and simulator transport/TLS and lifecycle repairs, whose results need distinguishing from the five reported pool cases.

1 open issue
1 resolved since last review

Review effort: Balanced

paulmedynski added a commit that referenced this pull request Nov 24, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 13:37

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.

🔵 Needs a closer look

Shutdown does not drain and observe both waiter tasks, allowing them to outlive owner disposal and leaving a late successful checkout unreturned.

1 open issue
1 previously missed issue

In code that hasn't changed since last review

Medium severity Drain caller tasks and return late successful checkout on shutdown

src/​Microsoft.Data.SqlClient/​tests/​UnitTests/​ConnectionPool/​ChannelDbConnectionPoolTest.cs:2561

Shutdown() wakes waiters but does not wait for callerATask or callerBTask to finish, so a failed readiness/completion bound can leave them running past owner disposal. If caller B succeeds just after its bound, resultB is still null and its checkout is never returned. After shutdown, boundedly drain both tasks, observe their faults, and return any successful result from callerBTask before clearing the pool.

Review effort: Balanced

@paulmedynski paulmedynski changed the title [8.0] Backport recent quarantines and stability fixes [8.0] Tests: Backport recent quarantines and stability fixes Nov 24, 2026
paulmedynski added a commit that referenced this pull request Nov 24, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 13:56

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.

🔵 Needs a closer look

Human assessment is needed because the combined synchronous and asynchronous retry coverage conflicts with mandatory test-authoring rules.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@paulmedynski paulmedynski changed the title [8.0] Tests: Backport recent quarantines and stability fixes [8.0] Tests: Backport quarantine categories only Nov 27, 2026
Copilot AI balanced review requested due to automatic review settings November 27, 2026 13:01

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.

🔵 Needs a closer look

Required review-policy references lack immutable-base or protected-host provenance, and the available worktree paths cannot substitute for trusted policy.

No open issues 🎉

Review effort: Balanced

@paulmedynski paulmedynski modified the milestone: 8.0.1 Nov 27, 2026
@paulmedynski paulmedynski moved this from To triage to In progress in SqlClient Board Nov 27, 2026
Add applicable flaky-category annotations, including the remaining
split-packet quarantines from #5143. Preserve release test bodies and
infrastructure; defer behavioral repairs to separate backports.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@paulmedynski
paulmedynski force-pushed the dev/automation/quarantine-backports-8.0 branch from e3044ac to b19ce46 Compare November 27, 2026 18:35
Copilot AI balanced review requested due to automatic review settings November 27, 2026 18:35

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.

🔵 Needs a closer look

Required review-policy references were available only as checkout paths without an established trusted immutable source, preventing a policy-complete review despite no actionable defects found in diff and routing inspection.

No open issues 🎉

Review effort: Balanced

@paulmedynski
paulmedynski marked this pull request as ready for review November 27, 2026 18:43
@paulmedynski
paulmedynski requested a review from a team as a code owner November 27, 2026 18:43
@paulmedynski
paulmedynski enabled auto-merge (squash) November 27, 2026 18:43
@paulmedynski paulmedynski moved this from In progress to In review in SqlClient Board Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems.

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

4 participants