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
[6.1] Tests: Backport quarantine categories and filters - #5133
Adapt the existing release-specific filter property names (TestFilters or legacy Filter) without changing tasks, arguments, ordinary selection, or continue-on-error behavior.
Add focused Pester regressions and their test inventory documentation.
All 9 quarantine expressions in this release were checked; each includes both category=flaky and category!=failing. Verified the YAML edits are exactly this substitution with no other template changes.
Focused Pester negative control: all affected template cases failed before the repair. Repaired run: 1 passed, zero failures/skips on this release; seven cases passed across the three backports.
Whitespace checks passed. Earlier category-only compilation/discovery checks remain recorded; the new changes are pipeline expressions, a static Pester regression, and its documentation, with no C# changes.
Full Azure DevOps pipeline execution, Windows/native-SNI/.NET Framework execution, and live-SQL execution are not claimed.
TransactionCleanupTest is netfx-only on this release; its category was verified in source, but Windows discovery remains unverified.
Consolidate applicable main quarantines, simulator lifecycle and fault scheduling fixes, MARS teardown assertions, and the pool checkout scheduler regression. Preserve older simulator and certificate APIs and avoid absent feature tests and pending backport work.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The exception filter swallows handler-originated IOExceptions even without a shutdown request, leaving ProcessingException unset and allowing disposal to succeed despite a handler failure.
Backports applicable test quarantines and stability fixes to release/6.1, adapting them to the branch’s older test infrastructure. No production driver, public API, dependency, or pipeline changes are included.
Changes:
Adds applicable flaky-test markings while preserving existing quarantines and adding probation metadata for repaired cases.
Stabilizes simulator workers, shutdown, fault handling, pool isolation, and certificate scenarios, with controlled regression tests.
Repairs pool-checkout scheduling and MARS fatal-error assertions without importing unsupported newer test scenarios.
File
Description
TESTGUIDE.md
Documents simulator lifecycle, pool isolation, and certificate testing.
paulmedynski
changed the title
Tests: Backport recent quarantines and stability fixes to 6.1
[6.1] Tests: Backport recent quarantines and stability fixes
Nov 23, 2026
Report handler and diagnostic I/O failures and prove physical failure followed by an observed configurable retry. Abort the first TLS transport only after ClientHello to avoid the older Debug EOF formatter without suppressing driver assertions.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved shutdown races, unreported logging failures, and overly broad constructor-failure cleanup can cause unexpected worker failures or alter unrelated SQL Server settings.
This new constructor-failure path calls the full fixture disposal routine, which also clears the real SQL Server's encryption registry settings and stops/restarts its service on Windows. At this point setup has only attempted to generate a simulator certificate, so a missing PowerShell executable or script timeout now changes an unrelated server configuration; a service-control failure can also replace the original setup exception. Restrict partial-construction cleanup to the generated certificate/files and preserve the original failure.
Record connection-close logging failures during teardown
If the connection-close log write throws after the connection is removed, the exception faults the worker task without entering _errors. When this happens before Stop() takes its snapshot, disposal can succeed without reporting the failure. Catch and record the logging exception under the existing lock so teardown reports it.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The new certificate fixture leaves persisted private keys on Windows, and the updated PowerShell wrapper no longer matches the existing Pester assertion, causing an orchestration test failure.
On modern .NET, CertificateFixtureBase.CreateCertificate imports the PFX with PersistKeySet (Common/Fixtures/CertificateFixtureBase.cs:108–122), so disposing the returned certificate leaves its private key on disk on Windows. This new fixture does not delete that key, so repeated quarantine runs accumulate persisted keys. Add an import option that omits PersistKeySet for this socket-only fixture, or explicitly delete its generated key during cleanup.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
A critical unpublished finding indicates that listener error logging can let an exception escape and terminate the test host, requiring human assessment.
Restore release baseline test bodies and infrastructure, retaining applicable flaky categories and adding the remaining split-packet quarantines from #5143. Defer behavioral repairs to separate backports.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
paulmedynski
changed the title
[6.1] Tests: Backport recent quarantines and stability fixes
[6.1] Tests: Backport quarantine categories only
Nov 27, 2026
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The new flaky annotations allow Windows-only certificate tests to run in Linux quarantine jobs and reach unsupported setup, so the dependent filter correction must land first or both annotations must be deferred.
Backport the quarantine-filter portion of #5147, already included in release/8.0 through #5148. Adapt legacy MSBuild Filter properties without importing the scheduler fixes. Add focused Pester regression coverage.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
paulmedynski
changed the title
[6.1] Tests: Backport quarantine categories only
[6.1] Tests: Backport quarantine categories and filters
Nov 27, 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\TestsIssues that are targeted to tests or test projects
4 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
Backport applicable flaky-test categories and quarantine pipeline filters to release/6.1.
category!=failingto all 9 quarantine filter expressions so tests marked both flaky and failing are excluded. This is the filter-only portion of SNI: Fix managed networking deadlocks on single-worker schedulers #5147, already included in release/8.0 through [8.0.0 Cherry-pick] SNI: Fix managed networking deadlocks on single-worker schedulers #5148; no scheduler/product fixes are imported.TestFiltersor legacyFilter) without changing tasks, arguments, ordinary selection, or continue-on-error behavior.Validation
category=flakyandcategory!=failing. Verified the YAML edits are exactly this substitution with no other template changes.Checklist