Disable in-process parallel test execution#54943
Merged
Merged
Conversation
This was referenced Jun 24, 2026
Open
7fbe0d0 to
1fb8677
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR disables in-process test parallel execution across the repo to reduce CI flakiness driven by concurrency-sensitive tests and shared process/global resources.
Changes:
- Disable xUnit in-process parallelization via
parallelizeAssembly: falseandparallelizeTestCollections: false. - Disable MSTest in-process parallelization by setting
MSTestParallelizeScope=Nonefor MSTest.Sdk-based test projects. - Apply the same xUnit parallelization settings to TemplateEngine’s custom
xunit.runner.json.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| test/xunit.runner.json | Disables xUnit in-process parallel execution for tests using the shared runner config. |
| test/TemplateEngine/Microsoft.TemplateEngine.Orchestrator.RunnableProjects.UnitTests/xunit.runner.json | Disables xUnit in-process parallel execution for this TemplateEngine unit test project. |
| test/Directory.Build.props | Disables MSTest in-process parallelization repo-wide for MSTest.Sdk projects. |
Concurrency-related intermittent test failures are affecting 63% of PRs. Disabling in-process parallel test execution to address this. Closes #54967 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1fb8677 to
10aba7c
Compare
joeloff
approved these changes
Jun 24, 2026
Evangelink
approved these changes
Jun 25, 2026
Member
|
/ba-g #54921 |
Evangelink
added a commit
that referenced
this pull request
Jun 25, 2026
…ttributes Following #54943 which disabled in-process parallel test execution (MSTestParallelizeScope=None), the remaining [DoNotParallelize] guards are no-ops. Remove them and revert the leftover ClassLevel-era comment edit so the change is a pure attribute cleanup. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Disable in-process parallel test execution to address widespread concurrency-related intermittent test failures.
Changes
test/xunit.runner.json: SetparallelizeAssembly: falseandparallelizeTestCollections: falsetest/TemplateEngine/.../xunit.runner.json: Sametest/Directory.Build.props: SetMSTestParallelizeScope=NoneContext
See #54967 for the full analysis and data supporting this change.
Closes #54967