Conversation
|
Relevant to #11335 |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a "sidecar TaskHost" feature to address issue #12071, providing an option to run long-lived TaskHost processes that persist after builds complete to reduce startup overhead and reuse in-memory caches.
- Converts handshake operations from exception-based to result-based error handling
- Adds
HandshakeResulttype andSidecarTaskHosthandshake option to support error propagation - Implements logic to differentiate between transient TaskHostFactory and persistent sidecar TaskHost nodes
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| CommunicationsUtilities.cs | Adds HandshakeResult type and converts handshake methods to return results instead of throwing exceptions |
| OutOfProcRarClient.cs | Updates connection logic to handle HandshakeResult return values |
| NodePipeServer.cs | Converts handshake validation to use result-based error handling |
| NodePipeClient.cs | Updates connection and handshake methods to return HandshakeResult |
| OutOfProcTaskHostNode.cs | Adds nodeReuse parameter and sidecar TaskHost lifecycle management |
| TaskHostTask.cs | Tracks whether TaskHostFactory was explicitly requested to control node reuse behavior |
| AssemblyTaskFactory.cs | Passes TaskHostFactory flag to TaskHostTask for proper node lifecycle management |
| MSBuildClient.cs | Updates connection logic to use HandshakeResult instead of exceptions |
Member
Author
|
Once again ready for review, although I still need to dig through the code and tests to see what was causing some weird behavior in VS tests:
|
src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcBase.cs
Outdated
Show resolved
Hide resolved
YuliiaKovalova
approved these changes
Aug 14, 2025
Member
YuliiaKovalova
left a comment
There was a problem hiding this comment.
thank you for addressing the comments!
Member
JanProvaznik
left a comment
There was a problem hiding this comment.
mostly style comments but the tests being skipped seems concerning; functionally it looks good
src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcTaskHost.cs
Outdated
Show resolved
Hide resolved
JanProvaznik
approved these changes
Aug 15, 2025
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.
Fixes #12071
Second attempt at 12071.
First one failed due to VS insertion Perf DDRITs.