Skip to content

CI build and CodeQL fail on existing AOT analyzer IL3050 diagnostics #2796

Description

@Widthdom

Summary:
CI currently runs formatting and build paths with AOT/trim analyzers enabled. Existing IL3050 diagnostics across the codebase are promoted to errors before tests run, causing PR build and CodeQL jobs to fail even when the PR does not touch those call sites.

Evidence:

  • PR Fix MCP index concurrency guard #2789 build ubuntu-latest net8.0 fails in Verify formatting while running dotnet format.
  • PR Fix MCP index concurrency guard #2789 Analyze csharp fails during dotnet build CodeIndex.sln --configuration Release --no-restore.
  • Representative errors include ActiveWorkspace.cs, McpServer.cs, QueryCommandRunner.cs, JsonEnvelopeWrapper.cs, GitHubIssueReporter.cs, and IndexCommandRunner.FullScan.cs using APIs that trigger IL3050 under AOT analysis.

Proposed direction:
Track the analyzer debt separately from ordinary issue-fix PRs. Either migrate the affected JSON paths to source-generation/AOT-safe APIs, or split CI so ordinary build/format checks do not fail on known AOT analyzer debt while a dedicated analyzer job reports it separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions