Skip to content

[AI discovered CI] Analyzer Mac test work item reports shared CS9103 failures and timeout #56139

Closed

Description

@github-actions

Build Information

  • Current build: 20260904.25
  • Branch: refs/heads/main
  • Failing task/test area: Microsoft.CodeAnalysis.NetAnalyzers.UnitTests.dll.16 on Mac x64 - osx.15.amd64.open
  • Phase: test-execution
  • Failure types: compiler-error and timeout
  • 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

  1. added
    cookie
    live-build-incident
    on Sep 4, 2026
  2. added
    untriaged
    on Sep 4, 2026
  3. github-actions commented on Sep 4, 2026

    @github-actions
    ContributorAuthor

    🍪 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! 🍪

    🍪 Om nom nom by Issue Monster Orchestrator · auto · 10.9 AIC · ⌖ 0.443 AIC · ⊞ 12K · ◷

  4. linked a pull request that will close this issueAvoid CS9103 race in NetAnalyzers tests #56144on Sep 4, 2026
  5. Youssef1313 commented on Sep 5, 2026

    @Youssef1313
    Member

    This looks like it's fixed in dotnet/roslyn#85131 and SDK should just wait for codeflow containing the fix.

  6. removed
    untriaged
    on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agentic-workflowscookielive-build-incident

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions