Repository navigation
Revert "Scope compiler server mutexes per-user (#86056)" - #86180
Merged
Merged
Conversation
This reverts commit 5ef5dd9.
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
jaredpar
approved these changes
Oct 22, 2026
333fred
enabled auto-merge (squash)
October 22, 2026 18:17
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Maintainer review is needed to confirm the rationale and acceptable risk of rolling back mutex access controls.
1 open issue
What changed in this PR
This PR reverts the per-user compiler-server mutex changes from #86056, restoring the previous mutex creation and discovery behavior.
Changes:
- Removes explicit per-user mutex options and access-control validation.
- Updates cache-lock callers and existing tests, and deletes the dedicated mutex-scope tests.
- Reverts the documented default cache location without changing runtime path selection.
The rollback is focused, but its access-control implications need maintainer confirmation because the description does not explain the mitigation rationale.
| File | Description |
|---|---|
src/Compilers/Shared/BuildServerConnection.cs |
Restores mutex APIs without explicit per-user restrictions. |
src/Compilers/Server/VBCSCompilerTests/ServerNamedMutexTests.cs |
Deletes tests for mutex scope and access controls. |
src/Compilers/Server/VBCSCompilerTests/CompilationCacheTests.cs |
Removes the explicit cross-user constructor argument. |
src/Compilers/Server/VBCSCompilerTests/BuildServerConnectionTests.cs |
Restores direct mutex use in ownership tests. |
src/Compilers/Server/VBCSCompiler/CompilationCache.cs |
Updates cache-lock calls to the restored API. |
docs/compilers/Design/compiler-output-cache-experiment.md |
Changes the documented default cache directory. |
Review effort: Balanced
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.

This reverts commit 5ef5dd9.
Microsoft Reviewers: Open in CodeFlow