[AI discovered CI] Microsoft.CodeAnalysis.NetAnalyzers net11 work item intermittently times out on Windows
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
## Build Information
- **Current build:** [dotnet-sdk-public-ci 20260908.23 (1587819)](https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1587819)
- **Branch:** `refs/heads/main`
- **Failing task/test:** Helix work item `Microsoft.CodeAnalysis.NetAnalyzers.UnitTests.dll.11` in `Windows x64 - windows.amd64.vs2026.pre.scout.open`; no individual active test was identified by the timeout evidence.
- **Phase:** `test-execution`
- **Failure type:** `timeout`
- **Evidence sources:** `helix-console`, `process-exit-code`, `helix-trx`
- **Failure fingerprint:** `test-execution|timeout|microsoft.codeanalysis.netanalyzers.unittests.dll.|at-microsoft.visualstudio.testplatform.mstest.testadapter.execution.testmethodinfo.executeinternalasync-object-arguments-cancellationtokensource-timeouttokensource`
- Matching prior builds: [1585903](https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1585903), [1585595](https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1585595), and [1583447](https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1583447).
## Failure History
The exact timeout fingerprint occurs 4 times in the supplied evidence: current build 1587819 plus prior builds 1585903, 1585595, and 1583447. The recent overall CI sequence was fail (1587819), fail (1587590), pass (1587367), pass (1586765), fail (1585903), fail (1585595), pass (1585309), fail (1583620), fail (1583447), pass (1583020). The exact fingerprint was not present in every failed build; the sequence is therefore evidence of intermittent recurrence, not proof that all failures share one cause.
## Error Details
Exact excerpt from the Helix console evidence:
```text
at Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Execution.TestMethodInfo.ExecuteInternalAsync(Object[] arguments, CancellationTokenSource timeoutTokenSource)
```
The work item exited with code `2` after `00:02:51.7370000`. Its TRX summary reports 1,678 total, 1,676 executed, 1,672 passed, and 4 failed; no individual named test was available from the timeout observation, and the console reported no active test or dump failure. Console: [console.98b38fdc.log](https://helix.dot.net/api/jobs/6452545c-430d-421f-aa9d-3aa887e74274/workitems/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests.dll.11/files/console.98b38fdc.log?api-version=2019-06-17). TRX: [Microsoft.CodeAnalysis.NetAnalyzers.UnitTests_net11.0_x64.trx](https://helix.dot.net/api/jobs/6452545c-430d-421f-aa9d-3aa887e74274/workitems/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests.dll.11/files/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests_net11.0_x64.trx?api-version=2019-06-17).
## Root Cause Analysis
- **Observed:** The MSTest adapter remained in `TestMethodInfo.ExecuteInternalAsync` when the Windows net11 work item failed with exit code 2. The same normalized timeout fingerprint appears in three earlier supplied builds.
- **Assessment:** A test-host or individual test execution became stuck or exceeded the Helix work-item timeout. The available evidence does not identify the active test or distinguish a product/test hang from an environmental stall.
- **Confidence:** Medium that this is a recurring test-execution timeout; low for the underlying cause.
- **Alternatives / Unknowns:** The timeout may be caused by a specific analyzer test, a test-host/MSTest issue, resource contention on the Windows queue, or transient infrastructure. The supplied evidence has no active-test name, dump, or stack beyond the adapter frame.
## Suggested Investigation
1. Inspect the linked console and TRX artifacts for the last test started and any per-test timing before the adapter timeout.
2. Compare those artifacts with the matching timeout work items in builds 1585903, 1585595, and 1583447 to determine whether the same test or phase recurs.
3. Re-run `Microsoft.CodeAnalysis.NetAnalyzers.UnitTests.dll.11` on the Windows net11 queue with test-host diagnostics and a hang dump enabled; if the same test is identified, run it repeatedly in isolation and in the full shard.
4. If no test-specific pattern emerges, compare queue machine/resource telemetry and MSTest adapter/test-platform versions across the four occurrences.
> Generated by [🕵️ CI Quality Investigator](https://github.com/dotnet/sdk/actions/runs/34278314093) · gpt56 · 2.11 AIC · ⌖ 0.649 AIC · ⊞ 17.6K · [◷](https://github.com/search?q=repo%3Adotnet%2Fsdk+is%3Aissue+%22gh-aw-workflow-call-id%3A+dotnet%2Fsdk%2Fci-quality-monitor%22&type=issues)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.