Skip to content

Disable parallel TFM test execution to prevent stdout contention#14

Merged
Malcolmnixon merged 2 commits into
mainfrom
clang-stdout-parallel-fix
Jun 8, 2026
Merged

Disable parallel TFM test execution to prevent stdout contention#14
Malcolmnixon merged 2 commits into
mainfrom
clang-stdout-parallel-fix

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

This pull request makes a configuration change to the test projects to control how tests are run. Specifically, it disables running tests for different target frameworks in parallel in both the C++ and .NET test projects.

Test configuration updates:

  • Disabled parallel execution of tests across target frameworks by setting <TestTfmsInParallel>false</TestTfmsInParallel> in ApiMark.Cpp.Tests.csproj
  • Disabled parallel execution of tests across target frameworks by setting <TestTfmsInParallel>false</TestTfmsInParallel> in ApiMark.DotNet.Tests.csproj

Malcolm Nixon and others added 2 commits June 8, 2026 06:47
Tests that spawn clang processes must not run across multiple TFMs
simultaneously - the concurrent child processes can cause stdout
contention in the xUnit v3 JSON protocol, producing intermittent
'Test process did not return valid JSON' CI failures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 8, 2026 10:50

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 updates the .NET test project configurations to prevent concurrent execution across target frameworks, reducing the likelihood of stdout contention when running multi-targeted tests.

Changes:

  • Disabled cross-TFM parallel test execution in ApiMark.DotNet.Tests via <TestTfmsInParallel>false</TestTfmsInParallel>.
  • Disabled cross-TFM parallel test execution in ApiMark.Cpp.Tests via <TestTfmsInParallel>false</TestTfmsInParallel>.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/ApiMark.DotNet.Tests/ApiMark.DotNet.Tests.csproj Disables parallel execution across TFMs for the multi-targeted .NET test project.
test/ApiMark.Cpp.Tests/ApiMark.Cpp.Tests.csproj Disables parallel execution across TFMs for the multi-targeted C++-related test project.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Malcolmnixon
Malcolmnixon merged commit fb0bac6 into main Jun 8, 2026
16 checks passed
@Malcolmnixon
Malcolmnixon deleted the clang-stdout-parallel-fix branch June 8, 2026 13:41
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.

2 participants