Repository navigation
Description
Build Information
- Current build: 20260904.25
- Branch:
refs/heads/main - Failing task/test area:
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests.dll.16onMac x64 - osx.15.amd64.open - Phase:
test-execution - Failure types:
compiler-errorandtimeout - Evidence sources:
helix-trx - Failure fingerprint:
test-execution|compiler-error|microsoft.netcore.analyzers.runtime.unittests.preferconstcharoverconstunitstringforstringbuilderappendtests.testmultipledeclarationsasync|test-method-microsoft.netcore.analyzers.runtime.unittests.preferconstcharoverconstunitstringforstringbuilderappendtests.testmultipledeclarationsasync-threw-exception-system.invalid
Failure History
The supplied evidence contains 14 named analyzer tests failing with the same shared compiler diagnostic mechanism in one Mac work item, plus a work-item timeout candidate for the same test DLL. The current dossier does not provide matching prior builds for these candidates. This is an observation from the supplied run, not evidence of a recurring product regression.
Error Details
The named tests expected no diagnostics but received CS9103:
// error CS9103: 'UnverifiableCodeAttribute.UnverifiableCodeAttribute()' is defined in a module with an unrecognized System.Runtime.CompilerServices.MemorySafetyRulesAttribute version, expecting '2'.
The work-item candidate reports a timeout in TestMethodInfo.ExecuteInternalAsync; its named test results, exit code, console URL, dump link, and separate result links were unavailable in the supplied evidence. The work-item summary was 1850 total, 1846 executed, 1831 passed, and 15 failed.
Root Cause Analysis
Observed: Multiple unrelated analyzer tests fail during compiler diagnostic verification because the compiler reports CS9103 concerning MemorySafetyRulesAttribute version 2. The failures are concentrated in one Mac x64 test work item, which also has a timeout candidate.
Assessment: This is most consistent with a shared test compilation/reference/runtime mismatch involving the compiler or framework assemblies that define UnverifiableCodeAttribute and MemorySafetyRulesAttribute, rather than 14 independent analyzer rule regressions. The timeout may be a secondary effect of the same work-item instability, but that relationship is not established.
Confidence: High that the failures share the CS9103 compilation mechanism; medium that the cause is a Mac test-environment or dependency-version mismatch; low regarding the timeout’s relationship.
Alternatives / Unknowns: The evidence lacks the full compiler command lines, resolved reference paths, SDK/runtime versions, and timeout console output. A recent compiler/runtime change, stale test assets, or host-specific test infrastructure issue remains possible.
Suggested Investigation
First obtain the Mac work-item console and diagnostic artifacts and identify the exact compiler/runtime/reference assembly versions used by the failing tests. Compare those paths and versions with a passing analyzer run, then inspect the test project restore graph and the first build introducing MemorySafetyRulesAttribute version 2. Finally determine whether the timeout is an independent test-host issue or follows the compiler failures.
Generated by 🕵️ CI Quality Investigator · gpt56 · 2.57 AIC · ⌖ 1.15 AIC · ⊞ 17.6K · ◷
Activity
github-actions commentedon Sep 4, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent (base branch:
main).If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
Youssef1313 commentedon Sep 5, 2026
This looks like it's fixed in dotnet/roslyn#85131 and SDK should just wait for codeflow containing the fix.