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
[7.0] Tests: Backport recent quarantines and stability fixes - #5134
Consolidated backport of applicable recent main quarantines and flaky-test improvements to release/7.0, reviewed through 51da3ab3483ab9f5fa3442d4193ae82c1e1c2d24 (November 23). Companion 8.0 backport: #5132.
Adapt Fix quarantined pool checkout worker scheduling #5119's checkout scheduling repair to the existing synchronous method and one-argument connection-string provider. Keep the original test quarantined with probation metadata and add the ordinary single-worker scheduler regression.
Keep the older manual transaction-cleanup test quarantined instead of importing Flaky tests / lighter test queries #4344's absent transaction-pool unit harness.
Applicability and duplication
Do not import absent isolation-reset, isolation-leak, reclaimed-connection reuse, vector metadata, pool instrumentation, transaction-pool unit, or virtual-time timeout scenarios. Earlier failover quarantines and schema deadlock retries are already present and are not duplicated. Inspected all open release backports: #4979, #5082, #5097, #5103, and #5124; their work is excluded.
No production driver, public API, dependency, or pipeline changes. Preserve release-specific APIs, platform conditions, test inputs, and quarantines. Probation is tracking metadata and starts independently on this branch only when the repair and both traits merge; it does not route tests into the ordinary suite.
Validation
Focused simulator execution passed all 123 selected cases on each of net8.0, net9.0, and net10.0, with zero failures/skips in the final runs. Integrated-auth simulator execution is excluded because this Linux environment lacks the required Kerberos context.
ManualTests compiled on net8.0 with zero warnings/errors. Discovery verified affected manual quarantines and confirmed the scheduler regression stays outside quarantine.
Certificate scripts passed PowerShell syntax checks; they were not executed. git diff --check passed.
net462 compilation could not be completed on this Linux host: after restoring explicit framework assets and using cached reference assemblies, referenced projects still omit net462 in host-based framework selection. No build files or dependencies were changed to bypass that limitation.
Live-SQL manual tests, Windows/.NET Framework builds/execution, and long-term quarantine stability remain for CI.
Tests added or updated
Public API changes documented (not applicable)
Verified against customer repro (not applicable; test-maintenance backport)
Ensure no breaking changes introduced
Review follow-up
Addressed both Copilot comments in bcf4663; the inherited main fixes are in #5137.
Restore the release-specific class-level flaky trait on ConnectionFailoverTests. Discovery confirms all six identified cases remain selected by category=flaky, with no ConnectionFailoverTests cases selected by category!=flaky. Removing that trait was a backport error, not an upstream quarantine change.
Replace the delayed-open retry scenario with a first physical abort, exactly one observed retry event, and a distinct second-session pre-login gate before success. Cover sync/async opens and both MultiSubnetFailover settings. Use an explicit configurable network-error policy because ConnectRetryCount does not retry a pre-login reset; retain flaky and add probation. Removing the first abort fails all four retry cases.
Propagate simulator handler and diagnostic I/O failures, retaining tolerance only for marked physical failures and explicitly expected TLS rejection.
Final net8.0 validation: 31 focused cases and all 528 selected broader simulator cases passed, with zero failures/skips. Existing Windows/net462, Kerberos, and live-SQL validation gaps remain as documented above.
Consolidate applicable main quarantines, simulator lifecycle and fault scheduling fixes, MARS teardown assertions, and the pool checkout scheduler regression. Adapt to existing release APIs without importing absent feature tests or overlapping pending backports.
Co-authored-by: Copilot <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The changes remove required flaky-test quarantines and weaken connection regression coverage by allowing the test to pass without exercising a failed attempt or retry.
Backports test quarantines and stability fixes to release/7.0, adapting upstream changes to the branch’s existing test APIs. No production driver, public API, dependency, or pipeline changes are included.
Changes:
Adds targeted manual-test quarantines and probation metadata for repaired tests.
Stabilizes simulator workers, fault quotas, transport lifecycle, failover setup, and certificate handling.
Repairs pool-checkout scheduling and MARS teardown assertions, with focused regression coverage.
File
Description
TESTGUIDE.md
Documents simulator ownership, isolation, and certificate practices.
paulmedynski
changed the title
Tests: Backport recent quarantines and stability fixes to 7.0
[7.0] Tests: Backport recent quarantines and stability fixes
Nov 23, 2026
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.34%. Comparing base (75ec803) to head (b16bb89). ⚠️ Report is 5 commits behind head on release/7.0.
❗ There is a different number of reports uploaded between BASE (75ec803) and HEAD (b16bb89). Click for more details.
Restore the release-specific failover class quarantine, propagate simulator handler I/O failures, and prove physical failure followed by an observed configurable retry on sync and async opens.
Co-authored-by: Copilot <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved issues allow certificate-generation failures to bypass cleanup, connection-close logging exceptions to go unreported, and endpoint disposal races to turn normal teardown into simulator failures.
This new cleanup path does not run for certificate-generation failures: makepfxcert.ps1 catches errors and only writes a message, and RunPowershellScript checks for a timeout but never checks the process exit code. A failed generation therefore returns normally, leaving partial setup behind and allowing the test to load a missing or stale PFX. Propagate script failures and reject unsuccessful exit codes so this catch actually performs the intended cleanup.
Connection-close logging failures are not recorded
If the connection-closed log writer throws after this removal, the worker task faults without recording the error, and a later Stop() can succeed without reporting it. Catch the logging exception under the existing collection lock and add it to _errors; add a regression with a writer that fails specifically on the connection-closed message.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The supplied Linux runs and script syntax checks leave transport/TLS and certificate changes unvalidated on Windows/native-SNI, net462, and live-SQL paths, including actual certificate-script execution.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because the test’s synchronization can let it pass without blocking on a full pool, leaving the new scheduler regression’s coverage uncertain.
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\TestsIssues that are targeted to tests or test projects
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 backport of applicable recent
mainquarantines and flaky-test improvements torelease/7.0, reviewed through51da3ab3483ab9f5fa3442d4193ae82c1e1c2d24(November 23). Companion 8.0 backport: #5132.Applicability and duplication
Do not import absent isolation-reset, isolation-leak, reclaimed-connection reuse, vector metadata, pool instrumentation, transaction-pool unit, or virtual-time timeout scenarios. Earlier failover quarantines and schema deadlock retries are already present and are not duplicated. Inspected all open release backports: #4979, #5082, #5097, #5103, and #5124; their work is excluded.
No production driver, public API, dependency, or pipeline changes. Preserve release-specific APIs, platform conditions, test inputs, and quarantines. Probation is tracking metadata and starts independently on this branch only when the repair and both traits merge; it does not route tests into the ordinary suite.
Validation
Focused simulator execution passed all 123 selected cases on each of net8.0, net9.0, and net10.0, with zero failures/skips in the final runs. Integrated-auth simulator execution is excluded because this Linux environment lacks the required Kerberos context.
ManualTests compiled on net8.0 with zero warnings/errors. Discovery verified affected manual quarantines and confirmed the scheduler regression stays outside quarantine.
Certificate scripts passed PowerShell syntax checks; they were not executed.
git diff --checkpassed.net462 compilation could not be completed on this Linux host: after restoring explicit framework assets and using cached reference assemblies, referenced projects still omit net462 in host-based framework selection. No build files or dependencies were changed to bypass that limitation.
Live-SQL manual tests, Windows/.NET Framework builds/execution, and long-term quarantine stability remain for CI.
Tests added or updated
Public API changes documented (not applicable)
Verified against customer repro (not applicable; test-maintenance backport)
Ensure no breaking changes introduced
Review follow-up
Addressed both Copilot comments in bcf4663; the inherited main fixes are in #5137.