Skip to content

Revert "Scope compiler server mutexes per-user (#86056)" - #86180

Merged
333fred merged 1 commit into
mainfrom
revert-86056-local-mutex
Oct 22, 2026
Merged

333fred merged 1 commit into
mainfrom
revert-86056-local-mutex

Conversation

@333fred

@333fred 333fred commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

This reverts commit 5ef5dd9.

Microsoft Reviewers: Open in CodeFlow

Copilot AI balanced review requested due to automatic review settings October 22, 2026 18:12
@333fred
333fred requested a review from a team as a code owner October 22, 2026 18:12
@azure-pipelines

Copy link
Copy Markdown
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.

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.

🔵 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

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.

4 participants