Repository navigation
Isolate multithreaded build test from compiler-server mutex race - #56239
Closed
JeremyKuhne with Copilot wants to merge 2 commits into
Closed
JeremyKuhne with Copilot wants to merge 2 commits into
JeremyKuhne with Copilot wants to merge 2 commits into
Conversation
|
Azure Pipelines: 3 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: JeremyKuhne <[email protected]>
Copilot
AI
changed the title
[WIP] Fix flaky test MultiThreadedArgument_BuildsProjectReferencesInProcess
Isolate multithreaded build test from compiler-server mutex race
Sep 10, 2026
JeremyKuhne
approved these changes
Sep 10, 2026
JeremyKuhne
marked this pull request as ready for review
September 11, 2026 13:59
JeremyKuhne
enabled auto-merge (squash)
September 11, 2026 13:59
|
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. |
dsplaisted
approved these changes
Sep 11, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The change is narrowly scoped; the remaining documentation note is non-blocking.
Pull request overview
Isolates a multithreaded build test from Roslyn’s shared-compilation mutex race while preserving its coverage.
Changes:
- Disables shared compilation for the child build.
- Retains multithreaded project-reference and single-process assertions.
File summaries
| File | Description |
|---|---|
test/dotnet.Tests/CommandTests/Run/RunFileTests_BuildOptions.cs |
Adds UseSharedCompilation=false to the targeted build test. |
Review details
Suppressed comments (1)
test/dotnet.Tests/CommandTests/Run/RunFileTests_BuildOptions.cs:896
- This is a test-isolation workaround for the compiler-server mutex race tracked by #56238. Please include the issue URL in the comment so future maintainers can tell when this opt-out can be revisited; otherwise the rationale is easy to lose when the test is updated.
// Shared compilation uses a named mutex, which is unrelated to testing MSBuild's in-process nodes and can fail independently.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
jjonescz
reviewed
Sep 11, 2026
jjonescz
disabled auto-merge
September 11, 2026 14:11
Member
|
Closing as no longer needed: the shared-compilation mutex issue was addressed upstream in dotnet/roslyn#85675 (merged), and that fix is included in the compiler toolset currently referenced by SDK main. The test-specific UseSharedCompilation=false workaround can be reintroduced if the failure recurs. |
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.
MultiThreadedArgument_BuildsProjectReferencesInProcessintermittently failed on Linux when Roslyn shared compilation hit a named-mutex ownership error during concurrent builds.UseSharedCompilationfor this test’s child build.