Skip to content

Disable in-process parallel test execution#54943

Merged
Evangelink merged 2 commits into
mainfrom
michaelsimons/disable-parallel-tests
Jun 25, 2026
Merged

Disable in-process parallel test execution#54943
Evangelink merged 2 commits into
mainfrom
michaelsimons/disable-parallel-tests

Conversation

@MichaelSimons

@MichaelSimons MichaelSimons commented Jun 23, 2026

Copy link
Copy Markdown
Member

Purpose

Disable in-process parallel test execution to address widespread concurrency-related intermittent test failures.

Changes

  • test/xunit.runner.json: Set parallelizeAssembly: false and parallelizeTestCollections: false
  • test/TemplateEngine/.../xunit.runner.json: Same
  • test/Directory.Build.props: Set MSTestParallelizeScope=None

Context

See #54967 for the full analysis and data supporting this change.

Closes #54967

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.

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: false and parallelizeTestCollections: false.
  • Disable MSTest in-process parallelization by setting MSTestParallelizeScope=None for 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.

Comment thread test/Directory.Build.props Outdated
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>
@MichaelSimons MichaelSimons force-pushed the michaelsimons/disable-parallel-tests branch from 1fb8677 to 10aba7c Compare June 24, 2026 19:27
@MichaelSimons MichaelSimons requested review from a team and Evangelink June 24, 2026 19:28
@Evangelink

Copy link
Copy Markdown
Member

/ba-g #54921

@Evangelink Evangelink enabled auto-merge June 25, 2026 05:48
@Evangelink Evangelink merged commit 4e4faf0 into main Jun 25, 2026
23 of 25 checks passed
@Evangelink Evangelink deleted the michaelsimons/disable-parallel-tests branch June 25, 2026 05:48
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>
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.

Disable in-process parallel test execution

4 participants