You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[8.0] Tests: Backport recent quarantines and stability fixes - #5132
Consolidated test-maintenance backport for release/8.0, covering applicable recent main quarantines and pool stability fixes reviewed through 51da3ab3483ab9f5fa3442d4193ae82c1e1c2d24 (November 23), plus the review-driven simulator and retry-regression repairs described below.
Shared simulator transport/TLS/lifecycle repairs: distinguish physical transport failures and explicitly expected TLS rejection from handler errors; report handler and diagnostic I/O failures; adapt the TLS-stalling fixture to the stricter contract; record connection-close logging failures even after the session leaves the active collection.
Retry coverage: replace the original two async delayed-open cases with four configurable network-error retry cases covering sync/async open and both MultiSubnetFailover settings. Abort the first physical connection, observe exactly one retry event, and hold the distinct second session at pre-login until the assertions complete. This deliberately tests an explicit retry policy: ConnectRetryCount does not retry a pre-login reset.
Repaired pool/retry cases retain flaky and gain probation; they are not promoted into the ordinary suite. Existing platform conditions and release-specific quarantine routing are preserved. No production behavior, public API, dependency, or pipeline changes.
Provenance, duplication, and applicability
The initial quarantine/pool backport omitted work already present on release/8.0, including simulator stabilization/startup fixes, earlier quarantines, schema deadlock retries, #4970, #5094, #5105, and #5119. The later shared simulator failure-contract and retry-regression repairs are additional review follow-ups, not another backport of that already-present stabilization; their inherited main equivalents are tracked in #5137.
Inspected open release backports #4979, #5082, #5097, #5103, and #5124; no pending backport work is included here. In particular, this PR does not include the connection-encryption feature in #5103 or the pipeline/data-source-enumerator work in #5082.
Review repairs are in a44bd22dd (pool-wait, transport/TLS failure tracking, and four-case retry coverage) and d6345dbcf (connection-close logging failure tracking and regression).
Validation
Initial backport validation: UnitTests and ManualTests builds passed for net10.0 and net462; the original focused pool selection passed five cases with zero failures/skips. Discovery verified those five pool cases and eleven affected manual-test identities under category=flaky. Those five pool cases are distinct from the four retry cases added during review.
Earlier expanded review validation: 37 focused net10.0 cases passed with zero failures/skips; net462 compilation passed. Restoring the old 15 ms harness budget fails the WaitHandle held-slot case; removing the first physical abort fails all four retry cases.
Latest review validation: 31 focused net10.0 cases passed with zero failures/skips: 27 lifecycle cases, including the new connection-close logging regression, plus all four configurable retry cases. UnitTests compilation for net462 passed with zero warnings/errors. This focused selection does not rerun the original five pool cases.
The shared close-log and endpoint-drain regressions were also exercised as negative controls on 7.1: both failed without their respective repairs and passed after restoration.
git diff --check passed. Windows/native-SNI execution and live-SQL manual tests were not run locally; CI remains required. Compilation is not execution evidence.
Broader prior validation is not claimed clean: separate 754-case runs had one close-race or routing-delay failure, while isolated two-case reruns passed. The failover-partner regression's identical connection-reset failure was reproduced on pristine main at 329df05d7 and excluded from those later runs.
Probation starts independently on this release only when the fix and both traits merge. PR creation and review fixes are not stability evidence.
Tests added or updated
Public API changes documented (not applicable)
Verified against customer repro (not applicable; test-maintenance backport)
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.
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.
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
changed the title
[8.0 Backport recent quarantines and stability fixes
[8.0] Backport recent quarantines and stability fixes
Nov 23, 2026
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.95%. Comparing base (3702b3f) to head (8c6fbe1). ⚠️ Report is 4 commits behind head on release/8.0.
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.
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
changed the title
[8.0] Backport recent quarantines and stability fixes
[8.0] Tests: Backport recent quarantines and stability fixes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Area\EngineeringUse this for issues that are targeted for changes in the 'eng' folder or build systems.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidated test-maintenance backport for
release/8.0, covering applicable recentmainquarantines and pool stability fixes reviewed through51da3ab3483ab9f5fa3442d4193ae82c1e1c2d24(November 23), plus the review-driven simulator and retry-regression repairs described below.MultiSubnetFailoversettings. Abort the first physical connection, observe exactly one retry event, and hold the distinct second session at pre-login until the assertions complete. This deliberately tests an explicit retry policy:ConnectRetryCountdoes not retry a pre-login reset.flakyand gainprobation; they are not promoted into the ordinary suite. Existing platform conditions and release-specific quarantine routing are preserved. No production behavior, public API, dependency, or pipeline changes.Provenance, duplication, and applicability
The initial quarantine/pool backport omitted work already present on
release/8.0, including simulator stabilization/startup fixes, earlier quarantines, schema deadlock retries, #4970, #5094, #5105, and #5119. The later shared simulator failure-contract and retry-regression repairs are additional review follow-ups, not another backport of that already-present stabilization; their inherited main equivalents are tracked in #5137.Inspected open release backports #4979, #5082, #5097, #5103, and #5124; no pending backport work is included here. In particular, this PR does not include the connection-encryption feature in #5103 or the pipeline/data-source-enumerator work in #5082.
Review repairs are in
a44bd22dd(pool-wait, transport/TLS failure tracking, and four-case retry coverage) andd6345dbcf(connection-close logging failure tracking and regression).Validation
net10.0andnet462; the original focused pool selection passed five cases with zero failures/skips. Discovery verified those five pool cases and eleven affected manual-test identities undercategory=flaky. Those five pool cases are distinct from the four retry cases added during review.net10.0cases passed with zero failures/skips;net462compilation passed. Restoring the old 15 ms harness budget fails the WaitHandle held-slot case; removing the first physical abort fails all four retry cases.net10.0cases passed with zero failures/skips: 27 lifecycle cases, including the new connection-close logging regression, plus all four configurable retry cases. UnitTests compilation fornet462passed with zero warnings/errors. This focused selection does not rerun the original five pool cases.git diff --checkpassed. Windows/native-SNI execution and live-SQL manual tests were not run locally; CI remains required. Compilation is not execution evidence.329df05d7and excluded from those later runs.Probation starts independently on this release only when the fix and both traits merge. PR creation and review fixes are not stability evidence.