Skip to content

Make dotnet test parser tests parallel-safe - #56031

Closed
Evangelink wants to merge 2 commits into
dotnet:mainfrom
Evangelink:dev/amauryleve/dotnet-test-parallel-safety
Closed

Evangelink wants to merge 2 commits into
dotnet:mainfrom
Evangelink:dev/amauryleve/dotnet-test-parallel-safety

Conversation

@Evangelink

@Evangelink Evangelink commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Note

Superseded by #56036. The six TestCommandParserTests environment-variable resource locks are required by, and were transferred into, that PR's dotnet.Tests project-level parallel opt-in. This independent split was emptied and closed to avoid duplicate ownership.

Summary

This is the independent @dotnet/dotnet-testing CODEOWNERS split from #56015.

It adds the narrowest process-global isolation needed by applying ResourceLock(WellKnownResources.EnvironmentVariables) only to parser tests that mutate environment variables, while leaving unrelated tests eligible for parallel execution.

10× benchmark results

The combined Razor-fixed branch was measured on the same machine under an exclusive benchmark lock. Each iteration ran the identical 54 affected projects sequentially through scripts/RunTests.cs, with the same 90-minute per-project timeout and the same exclusion for the pre-existing hanging interruption test.

Fleet statistic Baseline Changed Improvement
Mean 14,773.837s 7,341.516s 50.31%
Median 14,276.260s 6,742.966s 52.77%
Min 14,193.833s 5,426.805s —
Max 18,277.595s 10,443.242s —

All 10 changed iterations completed with zero timeouts and retained exactly the same 10-project local-environment/prerequisite failure set as all 10 baseline iterations; there were no new or resolved failing projects. These combined-branch measurements provide performance and stability context, not isolated attribution or a per-slice tests-passed claim.

The affected parser tests run within broader assemblies, so the fleet result is reported without assigning an isolated per-project speedup to this narrow resource-lock slice.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

The dotnet.Tests parallelism opt-in and these analyzer-required locks now live together in dotnet#56036.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b626e1af-2a85-4181-9294-76d18d1515bc

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — 0604f65c Deployed Aug 31, 2026 by Evangelink via pre_activation #2048
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.

1 participant