Repository navigation
Quarantine intermittent schema collection theories - #5028
Conversation
Co-authored-by: Copilot App <[email protected]>
Complete quarantine evidence and discovery checkpoint — 2026-11-10 tagging runDecision and exact scopeAdd exactly two The confirmed failing cases are sync/False and async/True. The unchanged InlineData values make method-level quarantine cover both Boolean cases on net462/net10.0, including configurations without an observed failure. This does not quarantine the class: Verified failures and real passing controlsAll rows use PR-SqlClient-Project (2197), build 190611 / 31309, commit The common configuration is net10.0 / AnyCPU build, x64 test process / Native SNI / Debug / Project references / Azure SQL / set 3 / job attempt 1. Pipeline configuration selects the standard Azure SQL stages, with
Every listed row was verified through the permitted single-result REST detail endpoint with Both failures report SQL Server's deadlock-victim error. Their stacks enter The earlier retry repair #4968, merge Unique run/job/task mappingThe run detail endpoints identify definition 2197/build 190611, these stages/phases, and
Authenticated MCP retrieved bounded ranges of ordinary logs 2415 and 2730, quarantine log 2447, publish log 2462 and config-step log 1923. Publish log 2462 explicitly publishes 6,107 results to run 3691596. The ordinary task logs show their framework, configuration, reference mode and package versions. Log 2730 lines 240–295 shows 1 failure / 900 passes / 86 skips in the initial manual invocation, then task retry 1 of 2 with the same command. Task/job timeline attempt stays 1; an internal task retry is not a new job attempt. The ordinary expanded filter is Reconciled authenticated per-run enumerationFor each run, authenticated
ID sets were checked for duplicates within each run. Server runStatistics were preserved as arrays and aggregated by summing, not overwriting, equal outcome keys. These two runs' statistics contain no resultMetadata entries; no Inspected interval, inventory and incomplete coverageNo reliable fully processed tagging checkpoint exists in the live prior records, including #4980, #4996, #5006, #5016, #5020, #5021 and #5024. Fix/probation records do not advance discovery. This run therefore used completed-build finish times in 2026-10-27T14:01:30.831Z through 2026-11-10T14:01:30.831Z, without branch or result exclusions. Definition identities and enabled status were rechecked through authenticated MCP before use:
Definition 2250 / sqlclient-ci-stress was rechecked Disabled and excluded. No other definitions were queried for builds. Authenticated build pagination used the same interval, Completed status and FinishTimeDescending ordering: 25 + 100 + 409 = 534 unique completed builds, terminal page without a continuation token. A subsequent overlapping first-100 refresh independently reconciled the same 534 IDs. An initially shortened timestamp cursor was corrected to the server's exact Build enumeration is complete, but per-test coverage is incomplete. Current-run build-helper failure discovery covered 190611, 190342 and successful build 190612 (the latter returned no Failed results, not proof of per-test passing coverage). Only the two runs above were fully paginated and reconciled. The remaining jobs/runs of these builds and other inventoried builds, including successful and canceled builds, remain unfinished. No whole-build or whole-window per-test completion is claimed. Unconfirmed observations and deduplicationCurrent-run helper observations below are retained for further investigation, not quarantined here:
Build 190342 uses revision Live open PR bodies and exact-identity searches were checked for overlap. Open #5021 quarantines a certificate Fact; open #5000 is the simulator repair/probation workstream, read only for context. Open #4991 backports the earlier schema retry to release/6.1, not main. Merged #4996 already tags simulator disposal; #5006 tags TransactionScope reuse; #5016 tags reclaimed-connection metrics; #5020 tags pool checkout instrumentation; #5024 tags different vector schema methods. Historical #4980 was rechecked Merged at 2026-11-10T01:06:24Z, and #4996 Merged at 2026-11-04T19:16:34Z. These are deduplication/context, not blockers to unrelated tagging. Related durable records: #4980, #4996 evidence, #5006 evidence, #5016 evidence, #5020 evidence, #5021 evidence, #5024 evidence, #5000, #4991. Local category and execution validationOnly this automation's isolated worktree was changed. A session-only, nonsecret JSON configuration selected the already-running local SQL Server using Windows integrated security and Initial discovery with dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --list-tests --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.SqlSchemaInfoTest.&category=flaky' -v:qResult: passed. Without SQL configuration, discovery initially lists the two conditional methods per framework. The following session configuration then expands and executes all four actual cases: $env:TEST_MDS_CONFIG='C:\Users\mdaigle\.copilot\session-state\94554e1c-ccc5-4afc-8934-6f8cb8834260\files\schema-validation.json'
dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --no-build --no-restore --list-tests --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.SqlSchemaInfoTest.&category=flaky' -v:q
dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --no-build --no-restore --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.SqlSchemaInfoTest.&category=flaky' -v:q --logger 'trx;LogFilePrefix=schema-quarantine' --results-directory 'C:\Users\mdaigle\.copilot\session-state\94554e1c-ccc5-4afc-8934-6f8cb8834260\files\validation' --blame-hang-timeout 2m
dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --no-build --no-restore --list-tests --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.SqlSchemaInfoTest.&category!=failing&category!=flaky&category!=interactive' -v:q
dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --no-build --no-restore --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.SqlSchemaInfoTest.&category!=failing&category!=flaky&category!=interactive' -v:q --logger 'trx;LogFilePrefix=schema-ordinary' --results-directory 'C:\Users\mdaigle\.copilot\session-state\94554e1c-ccc5-4afc-8934-6f8cb8834260\files\validation' --blame-hang-timeout 2m
git diff --checkAll commands passed, automatically targeting both net462 and net10.0, Debug / Project / Windows x64:
TRX counters and names were inspected, not inferred from process exit alone. Quarantine executions completed around 2026-11-10T14:11:23Z/net10.0 and 14:11:25Z/net462; ordinary controls around 14:11:56Z/net10.0 and 14:11:57Z/net462. The final tracked diff is one file, 2 insertions / 0 deletions, both flaky attributes. Selection/exclusion has positive controls, not a zero-match or skipped-only coverage claim. Local SQL Server is not the shared Azure SQL contention configuration; passing here is not a repair or stability claim. Errors, publication policy and checkpointThe build-wide Passed helper for build 190611 failed with Public REST was read-only and limited to the authorized run-detail, single-result-detail and build-timeline forms under SqlClientDrivers/public. All relevant responses were HTTP 200 / JSON / matching identities; there were no anonymous bulk run/result-list calls, new credentials, account changes, repository substitutions or REST writes. Enrichment was serial, below the concurrency cap of four. Published category-only proposal: #5028, source Upstream main's canonical Final live verification at 2026-11-10T14:17:36.8443685Z confirmed the description links this single collapsed record, the disclosure/label/milestone remain correct, milestone #99 is still open and matches freshly read upstream main, and the PR head is Checkpoint: NOT ADVANCED. The 534-build inventory is complete, and exactly two relevant 6,107-result run inventories are reconciled. Broader per-test evidence remains unfinished, including other jobs in these builds and successful/canceled builds. The next tagging run must rescan 14 days with deduplication unless a later tagging record establishes a genuinely complete checkpoint. No fix/probation record advances it. Root-cause fixes, fix PRs, probation entry/exit, promotions and flaky-category removals remain outside this automation's scope. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the targeted quarantine of the two intermittently deadlocking schema collection theories.
No open issues 🎉
What changed in this PR
Quarantines two schema collection theories whose intermittent catalog deadlocks persisted after the retry repair in #4968.
Changes:
- Adds
category=flakytoTestGetSchemaandTestGetSchemaAsync, moving all four Boolean cases into the existing quarantine. - Leaves test bodies, predicates, Set 3 membership, and other categories unchanged; no product or pipeline changes.
| File | Description |
|---|---|
| src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/SqlSchemaInfoTest/SqlSchemaInfoTest.cs | Adds method-level quarantine traits to the synchronous and asynchronous schema theories. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5028 +/- ##
==========================================
- Coverage 74.02% 72.07% -1.95%
==========================================
Files 313 313
Lines 45726 70864 +25138
==========================================
+ Hits 33848 51076 +17228
- Misses 11878 19788 +7910
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🤖 This pull request was created by a fully automated workflow.
Description
Add only
[Trait("category", "flaky")]to twoSqlSchemaInfoTesttheories. Their four cases move together into the existing quarantine:Test bodies,
Set=3, other categories and predicates are unchanged. No product, API, dependency, pipeline, repair or probation changes.Both failures and controls below use PR-SqlClient-Project / build 190611, revision
61bca81df201936e6206ed00eacbb04e47157320, .NET 10 / x64 / Native SNI / Debug / Project / Azure SQL / ordinary set 3. Times are UTC on 2026-11-09.TestGetSchema(False), Windows Server 2025TestGetSchemaAsync(True), Windows 11These are isolated
sys.typescatalog deadlocks after the existing #4968 retry repair. Same-revision, same-job passes distinguish intermittent contention from a deterministic OS defect or a later repaired revision. Method-level quarantine also includes the other Boolean case of each theory; no claim is made that every case/platform failed.Complete collapsed evidence record. The 2026-10-27T14:01:30.831Z–2026-11-10T14:01:30.831Z inventory contains 534 completed builds. Two runs were fully enumerated/reconciled; broader per-test inspection is incomplete, so checkpoint not advanced.
Issues
Related: #4968 (merged retry repair), #4991 (release/6.1 backport, not an overlapping main quarantine), #5024 (different schema tests), #5021 (different open quarantine). No equivalent pending main proposal was found. Fixes and all probation lifecycle work are outside this automation's scope.
Testing
Executed against local SQL Server
tempdbwith Windows integrated authentication, Debug / Project / Native SNI. Both target frameworks ran automatically:With the session-only SQL configuration,
--no-build --no-restore --list-testsdiscovered exactly 4 quarantine cases and 2 unaffected ordinary tests per framework. Actual executions with those same filters passed 4/4 quarantine + 2/2 ordinary on each framework, zero failures/skips. Exact discovery/execution commands and results are in the evidence comment.git diff --checkpassed.Local passes validate execution/routing, not stability under Azure SQL cross-job contention. No validation build was manually queued.
Guidelines
Please review the contribution guidelines before submitting a pull request: