Skip to content

Parallelize workload manifest reader tests - #56034

Merged
Evangelink merged 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/parallelize-workload-tests
Sep 1, 2026
Merged

Evangelink merged 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/parallelize-workload-tests

Conversation

@Evangelink

@Evangelink Evangelink commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Summary

Opts Microsoft.NET.Sdk.WorkloadManifestReader.Tests into MSTest ClassLevel parallelization after auditing the assembly's isolation model. Test classes use immutable inputs or isolated TestAssetsManager directories, so no shared mutable resource was identified that requires serialization.

Ownership: @dotnet/net-sdk-workload-contributors

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 workload manifest reader project median changed from 10.882s to 14.672s (3.790s slower) in the complete benchmark.

@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 16:55
@Evangelink
Evangelink requested a review from a team as a code owner August 31, 2026 16:55
Copilot AI lite review requested due to automatic review settings August 31, 2026 16:55
@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

🟢 Approval recommended

Review tier: Lite
Findings: None

What changed in this PR

This PR opts the Microsoft.NET.Sdk.WorkloadManifestReader.Tests test project into MSTest class-level parallelization, overriding the repo-wide default of non-parallel execution for MSTest projects.

Changes:

  • Set MSTestParallelizeScope to ClassLevel for Microsoft.NET.Sdk.WorkloadManifestReader.Tests.
  • Added a brief comment in the project file documenting the intended isolation model behind enabling parallelism.
File Description
test/​Microsoft.NET.Sdk.WorkloadManifestReader.Tests/​Microsoft.NET.Sdk.WorkloadManifestReader.Tests.csproj Enables MSTest class-level parallel execution for this test assembly.

@Evangelink
Evangelink merged commit 37e1660 into dotnet:main Sep 1, 2026
23 checks passed
@Evangelink
Evangelink deleted the dev/amauryleve/parallelize-workload-tests branch September 1, 2026 08:08
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 2, 2026

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — de320141 Deployed Sep 1, 2026 by Evangelink via pre_activation #2188
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.

3 participants