Skip to content

C# large-switch performance guard exceeds 8s under full-suite load #4792

Description

@Widthdom

Summary

SymbolExtractorTests.Extract_CSharp_LargeSwitchExpression_CompletesWithinPracticalBudget can exceed its 8-second runaway guard during a Release/net8 full-suite run.

Evidence

A full-suite run failed after 8.07 seconds with:

Dense C# switch-expression extraction took 8.07s, expected < 8s runaway guard budget.

The same test passed when rerun alone, and the failure did not recur in the second full-suite run. This points to a load-sensitive timing budget rather than a deterministic extraction failure.

Expected behavior / direction

Keep the runaway guard meaningful while making it robust to full-suite host load, or replace wall-clock coupling with a deterministic work/budget assertion where practical.

Environment

Release/net8.0 on macOS arm64 using the repository runsettings and VSTest crash/hang blame collection, from origin/main commit 0736e6282349c7d94dfcc0ff65b4a6cd3d3d6f5f plus the unrelated issue-4752 test-only changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .NET codebugSomething isn't workingtests

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions