Repository navigation
Quarantine intermittent reclaimed-connection metrics theory - #5016
Conversation
Co-authored-by: Copilot App <[email protected]>
Quarantine evidence, validation and incomplete discovery checkpoint - 2026-11-06Exact test and category-only scopeOnly that case is individually confirmed intermittent. Adding one method-level There are no assertion, body, other-category, public API, product, documentation, dependency, The source is Verified failure and actual passing controlBoth observations belong to definition 1917, CI-SqlClient-Package, build
Authenticated MCP failure discovery supplied The run's verified pipeline reference identifies stage Both ran Windows Server 2025 / local SQL Server 2025, net10.0, x86, native SNI, Mapped logs were read through authenticated MCP in bounded ranges:
The failure is Reconciled per-test coverageAuthenticated per-run pages,
Duplicate outcome-statistic keys were summed, not overwritten, and the metadata entry was Inspected interval, inventory and explicit gapsRun start: 2026-11-06T14:01:35.492Z. Prior tagging records #4980, All specified definition identities and queue states were rechecked with authenticated MCP.
Actual build-helper result discovery, beyond the reconciled run above:
The other 593 builds did not receive build-helper per-test discovery in this run. The additional inspected builds retain these exact discovery identities. Timestamps here
Failed helper-result pairs, preserved as unconfirmed discovery rather than passing-control
Unconfirmed or already-covered observationsThese are not new quarantine proposals:
No evidence from different revisions/platforms was silently substituted. Pending fix and Local category validation and executionSDK 10.0.403; isolated worktree only. Local configuration used process-local Exact successful command lines (repository-relative project paths): dotnet test src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj -f net10.0 --list-tests --filter "FullyQualifiedName~MetricsTest&category=flaky" --verbosity quietPassed after restoring existing dependencies. Once both required connection strings were dotnet test src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj -f net10.0 --no-build --no-restore --list-tests --filter "FullyQualifiedName~MetricsTest&category=flaky" --verbosity quiet
dotnet test src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj -f net10.0 --no-build --no-restore --list-tests --filter "FullyQualifiedName~MetricsTest&category!=failing&category!=flaky&category!=interactive" --verbosity quietBoth passed: quarantine = the four exact cases above + two pre-existing flaky methods; dotnet test src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj -f net10.0 --no-build --no-restore --filter "FullyQualifiedName~MetricsTest.ReclaimedConnections_BalanceSoftConnectionCounters&category=flaky" --verbosity quiet --logger "trx;LogFileName=metrics-quarantine-net10.trx" --results-directory 'C:\Users\mdaigle\.copilot\session-state\ae155d1a-947c-4fb0-8c82-6489167b7713\files\validation' --blame-hang-timeout 2mPassed: 4 passed, 0 failed, 0 skipped, six-second reported duration. This was Windows dotnet test src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj -f net462 --no-restore --list-tests --filter "FullyQualifiedName~MetricsTest&category=flaky" --verbosity quiet
dotnet test src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj -f net462 --no-build --no-restore --list-tests --filter "FullyQualifiedName~MetricsTest&category!=failing&category!=flaky&category!=interactive" --verbosity quiet
git diff --checkAll passed. net462 retains the existing two quarantined and three ordinary methods; the Recovered local errors/limitations: initial Related records, boundaries and checkpoint
All open PRs were enumerated (page size 100, empty second page), and open Checkpoint: NOT ADVANCED. The 600-build inventory is complete for the fixed interval, but Fixes, fix PRs and all probation lifecycle actions are outside this run's scope. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the change to quarantine the reclaimed-connection metrics theory as flaky.
No open issues 🎉
What changed in this PR
Quarantines the reclaimed-connection metrics regression theory introduced in #4725 using the existing flaky-test category. This changes test selection only; it does not repair the intermittent failure.
Changes:
- Adds
[Trait("category", "flaky")]toReclaimedConnections_BalanceSoftConnectionCounters, covering all four theory cases. - Leaves test logic, existing categories, other methods, and product code unchanged.
| File | Description |
|---|---|
src/Microsoft.Data.SqlClient/tests/ManualTests/TracingTests/MetricsTest.cs |
Adds a method-level flaky trait to quarantine the reclaimed-connection metrics theory. |
Review effort: Balanced
🤖 This pull request was created by a fully automated workflow.
Description
Quarantine
Microsoft.Data.SqlClient.ManualTesting.Tests.MetricsTest.ReclaimedConnections_BalanceSoftConnectionCounterswith one[Trait("category", "flaky")]. Test bodies and existing categories are unchanged. There are no product, API, documentation, dependency or pipeline changes.The exact
(usePoolV2: False, async: True)case failed and then passed on an ordinary-task retry in CI-SqlClient-Package build 189827, revisionb87ca6e7643611ddc3273324de346d09e8ff2c43:The failure is a pool-acquisition timeout while reclaiming an abandoned connection in the test's isolated one-slot pool. The unchanged retry passed; no shared SQL outage was identified in this run. This is quarantine, not a root-cause repair or stability claim. The method-level trait moves all four Boolean cases to existing quarantine selection, not the entire class. Only the case above is individually confirmed intermittent.
Issues
No issue is closed. Related: #4725 introduced this regression test; #4980 is an unrelated open category proposal; #4996 and #5006 are already merged quarantines. Fixes and probation are outside this automation's scope.
Testing
Local net10.0 execution: 4 passed, 0 failed, 0 skipped. Quarantine discovery selects all four cases; ordinary discovery excludes them and retains three other
MetricsTestmethods. The net462 theory is absent under its existing#if NET; both selection lists are unchanged.git diff --checkand an upstream source comparison passed.Complete collapsed evidence record and exact validation commands/results. Local execution was Windows x64 / Debug / Project, not the failing CI x86 / Release / Package configuration. The 14-day build inventory is complete, but broader per-test processing is incomplete; the discovery checkpoint is not advanced.
Guidelines
Please review the contribution guidelines before submitting a pull request: