Repository navigation
Add MSBUILDNODEHANDSHAKESALT for node reuse - #9229
Conversation
Add MSBUILDNODEHANDSHAKESALT to EnvironmentVariables.
|
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. |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The change is small, well-scoped to VMR orchestration, and aligns with MSBuild’s documented handshake behavior to safely isolate node reuse across sequential repo builds.
Review tier: Lite
Findings: None
What changed in this PR
This PR updates the VMR build orchestration to ensure MSBuild worker nodes/task hosts are not reused across different repository builds executed sequentially by the VMR, avoiding cross-repo leakage of process-wide state (notably TEMP directory assumptions).
Changes:
- Adds
MSBUILDNODEHANDSHAKESALT=dotnet-vmr-$(RepositoryName)to the repo-buildEnvironmentVariablesset. - Documents the rationale (node reuse across repos can break when a repo changes TEMP semantics, e.g., Roslyn drive subst behavior).
| File | Description |
|---|---|
| repo-projects/Directory.Build.props | Adds a per-repo MSBuild handshake salt to prevent cross-repo node reuse and associated temp-path failures. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
What do you mean by "them"? The default idle time for server / reusable worker nodes is 15min, right? Should we pass an additional env var in to control that? |
|
reused nodes, yes |
Added MSBUILDNODECONNECTIONTIMEOUT to limit idle timeout for reusable nodes.
Add MSBUILDNODEHANDSHAKESALT to EnvironmentVariables.