Skip to content

Parallelize ILLink tests by class - #56026

Merged
Evangelink merged 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/illink-parallel-tests
Sep 9, 2026
Merged

Evangelink merged 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/illink-parallel-tests

Conversation

@Evangelink

@Evangelink Evangelink commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Opt Microsoft.NET.ILLink.Tests into MSTest ClassLevel parallelization after auditing the assembly for shared test resources.
  • Ownership: @dotnet/illink.

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.

Project median: Microsoft.NET.ILLink.Tests improved from 2,509.241s to 757.878s (69.80%).

@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.

@Evangelink
Evangelink marked this pull request as ready for review August 31, 2026 17:01
@Evangelink
Evangelink requested a review from a team as a code owner August 31, 2026 17:01
Copilot AI lite review requested due to automatic review settings August 31, 2026 17:01
@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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Review tier: Lite
Findings: None

What changed in this PR

This PR opts the Microsoft.NET.ILLink.Tests test assembly into MSTest ClassLevel parallelization by overriding the repository default (MSTestParallelizeScope=None) set in test/Directory.Build.props.

Changes:

  • Enable MSTest ClassLevel parallelization for Microsoft.NET.ILLink.Tests via project-level MSTestParallelizeScope.
File Description
test/​Microsoft.NET.ILLink.Tests/​Microsoft.NET.ILLink.Tests.csproj Overrides the repo-default MSTest parallelization scope to run ILLink test classes in parallel.

@Evangelink

Copy link
Copy Markdown
Member Author

Local before/after benchmark

Local gain confirmed on my Windows machine using the SDK repo test runner.

  • Machine: Microsoft Windows 11 Enterprise, AMD RYZEN AI MAX+ 395 w/ Radeon 8060S , 32 logical processors
  • Baseline: origin/main (890dd7f)
  • PR head: dev/amauryleve/illink-parallel-tests (834f2b6)
  • Command shape: .\.dotnet\dotnet.exe scripts\RunTests.cs -- --project <project>
  • Reported numbers use the test run duration from the runner output; build/setup wall-clock is excluded.

Comparable clean total: 37m 05.7s before -> 10m 59.6s after (26m 06.1s saved, 70.4%).

Project Before After Delta Result
Microsoft.NET.ILLink.Tests 37m 05.7s 10m 59.6s 26m 06.1s passed

Single local run; timings can vary with machine load, but this gives a direct before/after signal on this machine.

@Evangelink
Evangelink merged commit df07127 into dotnet:main Sep 9, 2026
24 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 10, 2026

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — 834f2b64 Deployed Sep 9, 2026 by Evangelink via pre_activation #3606
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants