Skip to content

Quarantine intermittent certificate NIC connection test - #5021

Merged
mdaigle merged 1 commit into
mainfrom
dev/mdaigle/sqlclient-flaky-quarantine-20261108
Nov 10, 2026
Merged

mdaigle merged 1 commit into
mainfrom
dev/mdaigle/sqlclient-flaky-quarantine-20261108

Conversation

@mdaigle

@mdaigle mdaigle commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

🤖 This pull request was created by a fully automated workflow. ## Description Add only [Trait("category", "flaky")] to this unparameterized Fact: Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.OpeningConnectionWithNicTest The method trait applies on net462/net10.0; only net462 is claimed intermittent here. Other certificate tests, existing categories, predicates and test bodies stay unchanged. No product, API, dependency, documentation, pipeline, repair or probation changes. Both builds use main SHA 5aaa9ef090135a9a462f31d2e7945d97baa9e65b, CI-SqlClient, Windows Server 2025 / SQL25 named instance / net462 / Release / Project / native SNI / x64 / Set 1, with identical image versions and different agent allocations. | Outcome | Build / exact result | Observed UTC | | --- | --- | --- | | Passed, independent job | 190082 / 3682495 / 101396 | 2026-11-07T00:02:53.333Z–00:03:27.263Z | | Failed | 190251 / 3685003 / 101376 | 2026-11-08T01:29:07.020Z–01:29:07.023Z | | Passed, same-job task retry | 190251 / 3685003 / 101442 | 2026-11-08T01:33:17.297Z–01:33:30.043Z | The sole failure in the ordinary task was the Fact's constructor timing out after 60 seconds in its test-owned certificate setup process. Exact passes in the retry and independent job support quarantine, not a repair or stability claim. The failed attempt did not reach the test body. Root cause remains unresolved. Complete collapsed evidence record. The 606-build inventory covers 2026-10-25T14:01:27Z–2026-11-08T14:01:27Z; broader per-test processing is incomplete and checkpoint not advanced. ## Issues Related discovery records: #5016 and #5020 previously recorded this Fact as unconfirmed, not an equivalent pending quarantine. Existing unrelated tagging proposals #4980, #5016 and #5020 are preserved. Fixes and all probation lifecycle work are outside this automation's scope. ## Testing powershell dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --no-restore -c Release --list-tests --filter 'FullyQualifiedName~CertificateTest&category=flaky' -v:q Passed: both net462/net10.0 built, each lists exactly the tagged Fact. powershell dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --no-build --no-restore -c Release --list-tests --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.&category!=failing&category!=flaky&category!=interactive' -v:q git diff --check Passed: exactly the two unchanged certificate Facts remain ordinary on each TFM; the tagged Fact is excluded. Initial NETSDK1004 was resolved with a successful configured-feed project restore. Local integration execution was not run: no session SQL configuration, and the fixture modifies machine certificates/restarts SQL Server on this shared host. Selection checks are not execution coverage; actual pre-change CI passes are linked above. No validation build was manually queued. - [x] Tests added or updated (category only) - [x] Public API changes documented (N/A; none) - [ ] Verified against customer repro (N/A; CI evidence) - [x] Ensure no breaking changes introduced Main still targets 8.0.0-preview1; the explicit one-time exception excludes milestone #101, so this PR remains unassigned. Any required missing-milestone failure needs maintainer action, not a bypass. ## Guidelines Please review the contribution guidelines before submitting a pull request: - Contributing - Code of Conduct - Best Practices - Coding Style - Review Process

@mdaigle
mdaigle requested a review from a team as a code owner November 8, 2026 14:17
Copilot AI balanced review requested due to automatic review settings November 8, 2026 14:17
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Nov 8, 2026
@mdaigle mdaigle added the Area\Tests Issues that are targeted to tests or test projects label Nov 8, 2026
@mdaigle

mdaigle commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor Author
Certificate quarantine evidence, category validation and incomplete discovery checkpoint - 2026-11-08

Confirmed identity and category-only scope

Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.OpeningConnectionWithNicTest
is a Fact with no arguments. Add only [Trait("category", "flaky")] to that method in
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ConnectionTestWithSSLCert/CertificateTest.cs.
The existing class Set=1, Windows restriction, ConditionalFact predicates, test body,
constructor, certificate script and other categories are unchanged.

The method-level trait applies on both net462 and net10.0; only net462 is independently
claimed intermittent here. OpeningConnectionWithGoodCertificateTest and
RemoteCertificateNameMismatchErrorTest remain ordinary. No class-wide quarantine,
product change, repair, probation, promotion, pipeline rewrite or category removal is proposed.

Exact failure and passing controls

All three records have the same unparameterized fully qualified identity above.
Both builds are CI-SqlClient definition 1879, branch refs/heads/main, source SHA
5aaa9ef090135a9a462f31d2e7945d97baa9e65b.

Outcome Pipeline / build Exact run / result Observed UTC
Independent job: Passed CI-SqlClient 190082 / 31068 3682495 / 101396 2026-11-07T00:02:53.333Z to 00:03:27.263Z
First ordinary-task execution: Failed CI-SqlClient 190251 / 31224 3685003 / 101376 2026-11-08T01:29:07.020Z to 01:29:07.023Z
Same job, automatic task retry: Passed CI-SqlClient 190251 / 31224 3685003 / 101442 2026-11-08T01:33:17.297Z to 01:33:30.043Z

Each decisive record was individually read through the permitted public single-result REST
endpoint with detailsToInclude=SubResults. HTTP 200 / JSON, result ID, testRun ID, build ID,
exact automatedTestName, outcome and dates were verified. These are standalone results
with no subResults, not mixed grouped-parent outcomes. Passing records are actual passes,
not skipped tests or inferred job success.

Configuration and causal comparison

Both jobs: Win25_Sql25_Named_Instance.net462_AnyCPU_1.__default, job attempt 1,
Windows Server 2025 / 10.0.26100, runner windows-2025-vs2026 version
20261030.294.1, 1ES image ADO-MMS25-SQL25-WITH-NAMED-INSTANCE version 33.0.0,
SKU Standard_D2a_v4, Release / Project / x64 test host / Set 1 / native SNI.
There is no enclave-specific configuration in this named-instance stage.

The independent pass used agent a85ae872c000003; failure and retry used
c1eebba0c000004. The allocations differ, but the source, image, framework,
reference mode, test set and SNI selection agree. Build-derived package suffixes
ci.31068 versus ci.31224 differ; Project mode and identical source mean this is
not a newer repaired package passing an older failing test.

The failure occurs in the test constructor's CreateValidCertificate: its PowerShell
process exceeds the existing 60-second wait and raises
Could not generate certificate. Error output: .... The captured output already reports
certificate creation/export/import; the test body is not reached. The helper invokes the
test-owned certificate script, which changes certificate/service setup and restarts SQL Server.
The exact hanging operation is not established and is not fixed by this PR.

In the failing ordinary ManualTests task, this is the only failure: 46 passed,
1 failed, 1 skipped. Its automatic task retry has 47 passed, 0 failed, 1 skipped,
and the exact Fact's passing result was independently verified. The earlier same-image
job also has 47 passed, 0 failed, 1 skipped in this ordinary task. This supports a localized
intermittent test-owned setup timeout, rather than a deterministic NIC assertion,
changed product code, or a broad SQL/network outage. It does not establish root cause,
repair, stability, or coverage of the failed test body's assertions.

Unique job/task mappings and authenticated logs

The permitted run-metadata and build-timeline REST forms verified build identity,
pipelineReference stage/phase/job names and attempts. Unique Stage -> Phase -> Job
parentId chains were matched; the job identifier in both build timelines is
de1ee859-4887-59f2-071e-3d6d7498592e (identifiers are scoped by build).
The phase parent is c9f21578-669d-5207-1918-42fe8369ae3d.
Both run jobReferences are __default, attempt 1, while the timeline display name is
net462_AnyCPU_1. A task retry is not mislabeled as job attempt 2.

Build Mapped task/log and inspected ranges
190082 Ordinary manual task, log 3876, lines 1-100; Publish Test Results, log 4187, lines 1-80; initialization log 418, lines 1-60
190251 Ordinary manual task, log 3520, lines 1-180, 180-290, command rechecked at 8-16; Publish Test Results, log 3907, lines 1-140; initialization log 469, lines 1-60; Flaky manual task, log 3900, lines 1-18

All log reads used authenticated MCP with bounded ranges. The ordinary command uses
-t:TestSqlClientManual -p:TestFramework=net462 -p:TestSet=1 -p:ReferenceType=Project -p:Configuration=Release. It leaves TestFilters at the existing default exclusion.
The flaky command adds -p:TestFilters=category=flaky -p:TestCodeCoverage=false.
The unchanged common template sets continueOnError: true on the flaky task.
No artifact download was needed: the permitted detail response and mapped logs supplied
the complete decisive error, passing controls and task/configuration mapping.

Reconciled per-run coverage

Deduplication is by (buildId, runId, resultId), never test title.
The following complete result sets were paged through authenticated
testplan_test_run get_results, with SubResults, top 1000 and skip offsets from
0 through the terminal empty page. Totals reconcile with public single-run statistics.
Repeated Passed keys were summed, retaining the separate resultMetadata=flaky counts.
Those metadata counts are not used to infer source-code traits or passing controls.

Build / run Unique results Passed Failed NotExecuted
185703 / 3608229 4730 4531 = 4529 + 2 with flaky metadata 4 195
190082 / 3682495 3685 3663 = 3662 + 1 with flaky metadata 0 22
190251 / 3685003 3734 3710 = 3709 + 1 with flaky metadata 1 23

The first run's failure set contains three schema deadlocks and one already-quarantined
TVP baseline test; it does not supply the certificate passing control. These totals
establish outcome-enumeration completeness for these runs and exact-case completeness
for the enriched certificate records, not recursive enrichment of every unrelated
case or complete coverage of any whole build.

Inspected interval, build inventory and unfinished work

Completed-build finish-time interval:
2026-10-25T14:01:27Z through 2026-11-08T14:01:27Z.
No reliable fully processed tagging checkpoint exists in the prior records, including
#4980, #4996, #5006, #5016 and #5020; the full 14 days were rescanned and deduplicated.
Fix/probation records do not advance this discovery checkpoint.

Five bounded MCP pages (50, 50, 200, 200, 200 maximum items) returned
606 distinct completed builds, including overlapping continuation boundaries.
The first cursor was reconstituted to UTC second precision, producing an overlapping
boundary rather than a gap; all build IDs were deduplicated. Subsequent cursor strings
were preserved exactly. The final page omits continuationToken, with no next page.

Definition Verified enabled name Builds
2281 sqlclient-pr 178
2300 sqlclient-ci-package 28
2309 sqlclient-ci-unit 0
1879 CI-SqlClient 131
1917 CI-SqlClient-Package 75
2197 PR-SqlClient-Project 183
2198 PR-SqlClient-Package 11

Results: 142 Succeeded, 224 PartiallySucceeded, 229 Failed, 11 Canceled.
All seven definition IDs/names and Enabled status were verified live; disabled
sqlclient-ci-stress 2250 was explicitly excluded.

Actual result discovery/processing touched seven builds:
185703, 186273, 190082, 190251, 190265, 190296 and 190308.
The remaining 599 builds have no per-test processing in this run.
Other runs within the seven touched builds remain incompletely processed.

Build Evidence retrieved and limitations
185703 Main e012b3260621083a3f3e0ac94c443d3aea6ff50f; 36 failed results discovered through MCP. Only run 3608229 fully paged/reconciled; its 4 failures were read with details. Other failure runs and passing controls incomplete.
186273 PR merge 374e3a5fcfc870aa1da83470fb30058bc468b14a; failure helper empty. Passed/Aborted/NotExecuted discovery returned 18687 unique records across 26 runs (no Aborted records). Per-run pagination, identity enrichment and statistics reconciliation were not completed; no candidate decision or comprehensive passing claim follows.
190082 Main 5aaa9ef090135a9a462f31d2e7945d97baa9e65b; mapped authenticated publish-result log discovered run 3682495; complete pagination/reconciliation and exact certificate passing enrichment as above. Other runs not processed.
190251 Same main SHA; one failed result discovered; run 3685003 fully paged/reconciled and both exact certificate failure/retry-pass individually enriched. Other runs not processed.
190265 Same main SHA; 6 failures discovered: existing AE/diagnostic quarantine, pending metrics quarantine, and three vector schema cases. No complete per-run passing/control comparison.
190296 release/7.1 e5fe753acb96b72b1cf1ca7869855f7db2f23bb9; 131 failed records discovered. This older/different branch is not substituted for comparable main evidence. No complete per-run controls.
190308 Same release/7.1 SHA; 124 failed records discovered. No complete per-run controls.

Broader per-test coverage is incomplete. Enumerating builds, successful jobs,
empty failure responses, or the terminal empty page is not passing execution evidence.
Expired, missing, skipped, aborted and inaccessible results are never counted as passes.

Other candidates and exclusions

The only newly confirmed, non-overlapping quarantine proposal is the certificate Fact.
The following full identities are retained as unconfirmed, not tagged:

Exact identity Discovered failure reference Why no quarantine decision
Microsoft.Data.SqlClient.ManualTesting.Tests.SQL.VectorTest.VectorColumnMetadataTests.SchemaCollectionIncludesVectorType 190265 / 3685741 / 102068 SQL deadlock 1205; shared DDL/server contention has not been excluded and comparable exact passes were not established.
Microsoft.Data.SqlClient.ManualTesting.Tests.SQL.VectorTest.VectorColumnMetadataTests.SchemaCollectionOmitsVectorTypeWhenItIsNotNegotiated 190265 / 3685741 / 102158 Same unresolved contention/control limitations.
Microsoft.Data.SqlClient.ManualTesting.Tests.SQL.VectorTest.VectorColumnMetadataTests.V2CreationFormatIncludesBaseType(baseType: "float16") 190265 / 3685741 / 101942 Same unresolved contention/control limitations; no claim about float32.
Microsoft.Data.SqlClient.UnitTests.ManagedSni.SniReceiveTests.MarsReceive_PendingRead_DisposeCompletesAndReportsError 190296 / 3686843 / 103237 Timeout on release/7.1; no comparable main-revision exact passing control, full run enrichment or configuration mapping.
Microsoft.Data.SqlClient.UnitTests.SimulatedServerTests.ParserPrerequisiteTests.ParserFailure_DoesNotPoisonPool 190296 / 3686952 / 102782, 190308 / 3687189 / 102674 Count assertion failures on release/7.1; comparable exact controls and full configuration/source-change comparisons incomplete.

Already covered: MetricsTest.ReclaimedConnections_BalanceSoftConnectionCounters
by #5016, DbConnectionPoolInstrumentationTest.ConcurrentCheckoutAndReturn_SettlesAllGaugesToZero
by #5020, and the Azure pool-blocking theory by #4980.
Existing source traits cover AlwaysEncrypted.ApiShould.TestSqlCommandCancel,
DiagnosticTest, TVP baseline and the discovered failover test families. Truncated AE
connection arguments were not merged into a new exact-case intermittency claim.

The run 3608229 schema identities are
Microsoft.Data.SqlClient.ManualTesting.Tests.SqlSchemaInfoTest.TestGetSchema(openTransaction: True)
(101463), .TestGetSchema(openTransaction: False) (101596) and
.TestGetSchemaAsync(openTransaction: False) (101687).
They precede merged schema-retry #4968 (f8ededdbe) and are not new quarantine.
TVP baseline failures precede or occur on a different branch from #4967 (74a1cb743).
Release/7.1 distributed-transaction setup failures and grouped
TransactionPoolTest.TransactionCleanupTest records have no established same-case
controls; grouped outcomes and deterministic setup policy errors are not evidence of flakiness.
MarsReceiveTeardownTest.FatalError_WhileMarsReaderStreams_DoesNotFaultReceivePump
at 190308 / 3687191 / 101378 is different-branch evidence and has related merged
main repair #4970; no new tag or repair is proposed.

Category/build validation and execution limitation

Local Windows / Release / Project, .NET SDK 10.0.403; both target frameworks compiled.
The following exact commands were run:

dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --no-restore -c Release -f net462 --list-tests --filter 'FullyQualifiedName~CertificateTest&category=flaky' -v:q

Initially failed, NETSDK1004: this fresh isolated worktree lacked project.assets.json.

dotnet restore 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' -v:q

Passed. Used configured feeds/accounts, no account or repository switch.

dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --no-restore -c Release --list-tests --filter 'FullyQualifiedName~CertificateTest&category=flaky' -v:q

Passed. Both net462 and net10.0 built; each lists exactly the quarantined Fact,
Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.OpeningConnectionWithNicTest.

dotnet test 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj' --no-build --no-restore -c Release --list-tests --filter 'FullyQualifiedName~CertificateTest&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 -c Release --list-tests --filter 'FullyQualifiedName~Microsoft.Data.SqlClient.ManualTesting.Tests.CertificateTest.&category!=failing&category!=flaky&category!=interactive' -v:q
git diff --check

Passed. The broader first filter also lists similarly named neighboring classes.
The precise second filter lists exactly two unchanged CertificateTest Facts on each
TFM, OpeningConnectionWithGoodCertificateTest and RemoteCertificateNameMismatchErrorTest;
the tagged Fact is absent. These positive control lists validate selection/exclusion,
not execution inferred from zero matches.

Local certificate integration execution was not run. There is no configured
session SQL connection, and this fixture creates machine certificates and restarts
SQL Server. Doing that on the shared local machine is not a safe worktree-only
validation. No skip-only run is counted as coverage. The actual passes above are
pre-change CI controls, not a claim that the category change fixes or stabilizes execution.
No validation pipeline was manually queued.

Retrieval errors, related PRs, publication policy and checkpoint

Authenticated MCP initially returned
MCP server 'azure-devops': MCP request failed: Transport closed
for build 185703 result discovery; a finite failure-only retry succeeded.
The large passing-result helper for build 190251 failed with the same exact error
twice. Mapped MCP publish logs and authenticated per-run pagination supplied the
decisive controls instead; no anonymous bulk endpoints, token extraction or account
switching was used. Two local summary-only Python commands failed (raw-string
quoting, then absent continuationToken key) and were corrected; neither was used
as successful evidence.

Prior records were rechecked live:
#4980 open tagging,
#4996 merged tagging,
#5006 merged tagging,
#5016 open tagging,
#5020 open tagging, and
#5000 open fixes/probation automation
repair, read for context/deduplication only. #5016 had recorded this certificate
Fact as unconfirmed, not as an equivalent category proposal.
Paginated open PR bodies, exact-identity searches, merged history and relevant
human proposals were inspected. #4556 does not change CertificateTest.cs.
Pending unrelated proposals do not block this single-method tagging batch.

Live upstream main still declares SqlClientNextVersion=8.0.0-preview1.
The existing open exact-title milestone is #101. Per the explicit one-time
preview exception, this new PR is unassigned, not assigned to #101 or a guessed
replacement. The own open tagging PRs #4980, #5016 and #5020 already have no milestone,
the exact Area\Tests label and the required automated-disclosure first line; no
unrelated PR metadata was changed. A required missing-milestone check remains a
maintainer-action blocker if reported by CI; it will not be bypassed.

Publication verification: tagging PR #5021
contains commit f574b18f87306df90d30f7236e739201bad2d2ed, exactly one added trait,
with source dotnet/SqlClient:dev/mdaigle/sqlclient-flaky-quarantine-20261108
and target dotnet/SqlClient:main. Live metadata verifies the exact visible
automated-disclosure first line, the existing literal Area\Tests label,
no milestone assignment, and exactly one run-owned collapsed evidence comment
linked from the preserved-template description. The worktree is clean.

The required Validate milestone check
failed at 2026-11-08T14:18:22.3482095Z:
This PR does not have a milestone set. Please assign a milestone before merging.
This is an explicit maintainer-action blocker resulting from the authorized
preview exception, not a reason to assign excluded #101, guess a replacement,
merge or bypass a check. Automatically triggered PR builds 190315/190316 and
CodeQL were queued/in progress at verification; no pass is claimed for them.
They are outside the fixed completed-build discovery interval, and no build
was manually queued by this run.

Checkpoint: NOT ADVANCED. The 606-build inventory is complete, but the 599
untouched builds and unprocessed runs in touched builds remain unfinished per-test
evidence. The next tagging run must rescan 14 days and deduplicate unless a later
tagging record establishes a genuinely fully processed checkpoint. Fixes and all
probation lifecycle work remain outside this automation's scope.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the targeted flaky-test quarantine change.

No open issues 🎉

What changed in this PR

Quarantines CertificateTest.OpeningConnectionWithNicTest after an intermittent certificate-setup timeout, without changing test behavior or product code.

Changes:

  • Adds [Trait("category", "flaky")] to the single Fact on net462 and net10.0; intermittency is confirmed only on net462.
  • Preserves existing predicates, categories, test bodies, and neighboring certificate tests.
File Description
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​SQL/​ConnectionTestWithSSLCert/​CertificateTest.cs Marks the NIC connection Fact as flaky for quarantine selection.

Review effort: Balanced

@codecov

codecov Bot commented Nov 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.13%. Comparing base (5aaa9ef) to head (f574b18).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5021      +/-   ##
==========================================
- Coverage   68.74%   67.13%   -1.61%     
==========================================
  Files         313      307       -6     
  Lines       45726    68934   +23208     
==========================================
+ Hits        31434    46279   +14845     
- Misses      14292    22655    +8363     
Flag Coverage Δ
CI-SqlClient ?
PR-SqlClient-Project 67.13% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paulmedynski paulmedynski self-assigned this Nov 9, 2026
@paulmedynski paulmedynski moved this from To triage to In review in SqlClient Board Nov 9, 2026
@paulmedynski paulmedynski added this to the 8.0.0 milestone Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Tests Issues that are targeted to tests or test projects

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants