Skip to content

Stabilize C# large-switch performance guard - #4803

Merged
Widthdom merged 1 commit into
mainfrom
fix-issue4792
Jul 24, 2026
Merged

Stabilize C# large-switch performance guard#4803
Widthdom merged 1 commit into
mainfrom
fix-issue4792

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • widen the dense C# switch-expression regression tripwire from 8 seconds to 15 seconds
  • preserve the 10,000-arm fixture and functional symbol assertions while documenting the full-suite intent in English and Japanese
  • add a bilingual internal changelog fragment

Root cause

The broad wall-clock runaway guard used an 8-second threshold that behaved like a benchmark under full-suite host contention. In the validated Release/net8.0 full suite, the target test took 9 seconds, while isolated runs took 2–4 seconds. The extraction result remained correct; the failure was caused by insufficient load margin.

Validation

  • dotnet run --project tools/CodeIndex.Changelog -- check
  • make lint
  • dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • focused Release/net8.0 target test, followed by five repeated runs (all passed)
  • Release/net8.0 full suite with repository runsettings and VSTest crash/hang blame: 10,240 total, 10,233 passed, 7 skipped, 0 failed in 32.43 minutes; the target test passed in 9 seconds
  • mandatory Codex adversarial review: No blocking/actionable issues found.

Documentation and changelog

  • updated the English and Japanese sections of TESTING_GUIDE.md
  • added changelog.d/unreleased/4792.internal.md

Follow-ups

  • None.

Fixes #4792

@Widthdom
Widthdom marked this pull request as ready for review July 24, 2026 15:19
@Widthdom
Widthdom merged commit c227bf5 into main Jul 24, 2026
11 checks passed
@Widthdom
Widthdom deleted the fix-issue4792 branch July 24, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant