Repository navigation
Enable safe parallelization for installer-related tests - #55997
Conversation
Co-authored-by: Copilot App <[email protected]>
|
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. |
There was a problem hiding this comment.
Copilot review overview
Review tier: Lite
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
test/trustedroots.Tests/trustedroots.Tests.csproj — Opting this assembly into MethodLevel parallelism makes it likely that multiple test constructors… |
What changed in this PR
This PR adjusts MSTest parallelization settings for installer-related test projects in test/ by overriding the repository default (MSTestParallelizeScope=None) on suites claimed to be safe for parallel execution, while keeping the VM-backed MSI installation suite serialized.
Changes:
- Enable method-level MSTest parallelism for
trustedroots.Tests. - Enable method-level MSTest parallelism for
Microsoft.Win32.Msi.Tests. - Explicitly keep
dotnet-MsiInstallation.Testsnon-parallel viaMSTestParallelizeScope=Nonewith an explanatory comment.
| File | Description |
|---|---|
| test/trustedroots.Tests/trustedroots.Tests.csproj | Opts the trusted-roots bundle tests into method-level parallelism. |
| test/Microsoft.Win32.Msi.Tests/Microsoft.Win32.Msi.Tests.csproj | Opts MSI parsing/unknown-product query tests into method-level parallelism. |
| test/dotnet-MsiInstallation.Tests/dotnet-MsiInstallation.Tests.csproj | Explicitly documents/enforces no parallelism for VM-based install tests. |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 9b523ee8-038d-4010-a1d4-2fe7474ca774
🔍 Build Failure AnalysisSummary — The Windows x64 leg failed to compile because the new Root cause:
|
| Code | Project | File:Line | Message |
|---|---|---|---|
CS0029 |
trustedroots.Tests |
AssemblySetup.cs:12 |
Cannot implicitly convert type 'SdkTestContext' to 'TestContext' |
MSTEST0016 |
trustedroots.Tests |
AssemblySetup.cs:7 |
Test class should have a test method or be static with AssemblyInitialize/AssemblyCleanup |
🤖 Generated by the Build Failure Analysis workflow using (a href="(dev.azure.com/redacted) · commit efea4b1
🤖 Automated content by GitHub Copilot. Generated by the Build Failure Analysis workflow. · auto · 89.3 AIC · ⌖ 1.96 AIC · ⊞ 7.5K · [◷]( · ◷)
There was a problem hiding this comment.
🤖 Automated content by GitHub Copilot. Generated by the Build Failure Analysis workflow. · auto · 89.3 AIC · ⌖ 1.96 AIC · ⊞ 7.5K · ◷
Local before/after benchmarkPartial local gain confirmed on my Windows machine using the SDK repo test runner.
Comparable clean total: 0.213s before -> 0.187s after (0.026s saved, 12.2%).
Single local run; timings can vary with machine load, but this gives a direct before/after signal on this machine. |
Co-authored-by: Copilot App <[email protected]>
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. |
|
/azp run dotnet-sdk-public-ci |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |

These test projects currently inherit assembly-wide serialization, even when their tests only perform immutable reads or read-only API queries. This opts the safe suites into method-level execution while preserving serialization where tests share machine-wide state.
Validation is limited to the static resource audit in this change. The consolidated 10-run baseline and changed benchmark will be run after integration.