Skip to content

Conversation

@chsienki
Copy link
Member

While working on #12477 I noticed that RazorSourceGeneratorTagHelperTests.ViewImports tests were taking over 30 seconds per run (and thanks to the theory we run it 11 times) seriously slowing down the tests.

After some investigation I discovered it's actually the generator tracking infrastructure that was causing the slowness. Disabling tracking makes them take around 500ms. I'll open an issue on roslyn to address that, but we only actually use tracking for a single test, so I've just disabled it for all the other tests in the assembly.

I also included a fix to the baseline generation that occurs due to #12477

@chsienki chsienki requested a review from a team as a code owner November 12, 2025 02:03
@chsienki chsienki merged commit a394895 into dotnet:main Nov 12, 2025
11 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Nov 12, 2025
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.

2 participants