Repository navigation
Quarantine intermittent good-certificate setup test - #5038
Conversation
Co-authored-by: Copilot App <[email protected]>
Quarantine evidence, category validation and incomplete discovery checkpoint - 2026-11-11Exact test, reason and scope
The failure occurs in The same exact named-instance case passed immediately on the same job/task retry without a code/configuration change. A separate default-instance job at the same revision also passed. This is stronger than contrasting platforms or treating job success as a test pass. The method is quarantined, not declared stable or fixed. Verified results and configurationsAll three observations are in PR-SqlClient-Project / definition 2197, build 191140 / 31501, revision
Authenticated MCP discovered the failed run/result. The build-wide Passed helper failed with
Unique timeline/job/task mappingRun details identify stage/phase/job names and attempts. Build 191140's timeline uniquely matches the following ancestry; every stage, phase and job attempt is 1:
Mapped, bounded authenticated MCP log reads:
Ordinary expanded selector: Reconciled per-run coverageAuthenticated
Short final pages terminate enumeration. IDs were checked for uniqueness. Stored runStatistics arrays reconcile to these totals; duplicate outcome keys are summed rather than overwritten, and neither run has resultMetadata entries to discard. The 63 NotExecuted results are not passes. Complete enumeration of these two run inventories does not imply causal investigation of every noncandidate result or complete coverage of either build. Inspected interval and incomplete coveragePrior tagging records, including #4980, #4996, #5021 and #5028's discovery record, do not establish a reliable fully processed discovery checkpoint. Therefore this run rescanned completed-build finish times 2026-10-28T15:52:36Z through 2026-11-11T16:52:36Z (the previous 14 days plus one additional hour). No branch/result exclusions. Live authenticated definition identity/queue status checks preceded discovery:
Definition 2250 / sqlclient-ci-stress / Disabled was rechecked and excluded. No unscoped pipelines were used. Build pagination used Completed / FinishTimeAscending, bounded pages 50 + 100 + 100 + 100 + 100 + 69 = 519 unique builds, terminal page without a continuation token. Totals: 135 Succeeded, 199 Failed, 176 PartiallySucceeded, 9 Canceled. Earliest returned finish: 186745, 2026-10-28T15:58:18.8618006Z; latest: 191140, 2026-11-11T15:07:16.1680458Z. The first cursor was initially passed at whole-second precision; replay with the exact server cursor Build enumeration is complete; whole-window per-test coverage is incomplete. Current-run failure/aborted/error/timeout discovery used build helpers for 191140 (two failures) and 191146 (empty). Empty failure discovery for 191146 does not establish passing or no-test coverage. Only the two run inventories above are fully paginated/reconciled. Other jobs/runs of 191140, every run of the remaining 518 inventoried builds, and successful/canceled build per-test controls remain unfinished. No whole-build completion or complete list of intermittent tests is claimed. Unconfirmed candidate and deduplication
All open PR titles/branches and relevant bodies were inspected, and exact candidate-file overlap was rechecked immediately before publication: no equivalent open category/fix proposal for this method. #5021 is merged and tags only Local category validation and limitationsInitial exact command: dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' -c Debug -f net10.0 --no-restore --list-tests --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.' --verbosity quietFirst attempt failed NETSDK1004, missing this isolated worktree's dotnet restore 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --verbosity quietPassed. Retrying the first command passed, compiled net10.0 and discovered the three CertificateTest methods. dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' -c Debug -f net10.0 --no-build --no-restore --list-tests --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.&category=flaky' --verbosity quiet
dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' -c Debug -f net10.0 --no-build --no-restore --list-tests --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.&category!=failing&category!=flaky&category!=interactive' --verbosity quiet
dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' -c Debug -f net462 --no-restore --list-tests --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.&category=flaky' --verbosity quiet
dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' -c Debug -f net462 --no-build --no-restore --list-tests --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.&category!=failing&category!=flaky&category!=interactive' --verbosity quietAll four commands passed. Both quarantine selections contain exactly These are actual runner discovery/category-routing checks, not local passing executions. No skipped-only or zero-match run is counted as coverage. Local certificate execution was deliberately not attempted because its administrative setup changes machine certificate stores/registry and restarts SQL Server in a shared environment. CI provides the verified actual test executions above. No repair, stability or broad integration-coverage claim. An optional local Git signing-configuration probe initially exited 1 because values were unset; corrected reads with explicit defaults succeeded ( Publication policy and checkpointUpstream main Published PR #5038, commit Final live verification rechecked the evidence link and exact single-comment contents, disclosure, label, open milestone and one-insertion diff. Upstream's canonical version remained Checkpoint: NOT ADVANCED. The next tagging run must rescan at least the previous 14 days with deduplication unless a later tagging record establishes genuine complete coverage. Fixes, fix PRs, all probation lifecycle work, promotions and flaky-category removals remain outside this automation's scope. |
There was a problem hiding this comment.
🔵 Needs a closer look
The required review quorum could not be verified because trusted review-policy references and current PR discussion/review threads were unavailable.
No open issues 🎉
What changed in this PR
Quarantines OpeningConnectionWithGoodCertificateTest after an intermittent certificate-setup timeout, using the existing flaky-test mechanism. This isolates the test from ordinary runs without claiming to fix the underlying timeout.
Changes:
- Adds method-level
[Trait("category", "flaky")], alongside the previously quarantined NIC test. - Leaves test bodies, sibling methods, existing conditions, and pipelines unchanged.
| File | Description |
|---|---|
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ConnectionTestWithSSLCert/CertificateTest.cs |
Marks the good-certificate connection test as flaky for existing quarantine selection. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5038 +/- ##
==========================================
- Coverage 74.02% 69.12% -4.91%
==========================================
Files 313 314 +1
Lines 45726 69726 +24000
==========================================
+ Hits 33848 48195 +14347
- Misses 11878 21531 +9653
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:Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.OpeningConnectionWithGoodCertificateTestIts certificate setup exceeded the existing 60-second timeout, then the exact test passed on the same-revision, same-job retry and in another job. This method-level category moves one fact into existing quarantine; all bodies, other categories, sibling methods and pipelines remain unchanged.
27b419c7cf39Quarantine isolates an intermittent test-owned certificate/service setup timeout, not a confirmed driver defect or repair. The same named-instance retry passing rules out treating the instance difference alone as a deterministic failure.
Full evidence, exact validation commands/results and unfinished coverage: collapsed run record.
Issues
Related: #5021 quarantined the distinct
OpeningConnectionWithNicTest; #4980, #4996 and #5028 are prior discovery records, not duplicate proposals. No issue is closed.Testing
Both
net10.0andnet462compiled. Actual xUnit/VSTest discovery selected this fact plus the existing NIC quarantine control withcategory=flaky; the ordinary filter selected only the unquarantinedRemoteCertificateNameMismatchErrorTestcontrol. Exact commands and outputs are in the linked evidence record.No certificate test body was executed locally: its administrative setup writes machine certificate stores/registry and restarts SQL Server in this shared environment. Discovery is category validation, not passing execution or stability evidence. Two CI run inventories (7,955 results) were reconciled; broader per-test coverage remains incomplete after a build-wide Passed query transport failure. The discovery checkpoint is not advanced.
Guidelines
Please review the contribution guidelines before submitting a pull request: