Revert "Fix ToolTask hang when grandchild processes inherit pipe handles (#13351)"#13946
Open
JanProvaznik wants to merge 3 commits into
Open
Revert "Fix ToolTask hang when grandchild processes inherit pipe handles (#13351)"#13946JanProvaznik wants to merge 3 commits into
JanProvaznik wants to merge 3 commits into
Conversation
…les (dotnet#13351)" This reverts commit 6c499a7. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reverts the previously introduced ToolTask change (commit 6c499a72...) on the vs18.8 branch, restoring prior process-wait and stream-handling behavior and removing the associated ChangeWave entry and regression tests.
Changes:
- Reverted ToolTask’s Wave18_6-gated stdout/stderr EOF signaling and the custom “wait without EOF hang” exit logic back to legacy
Process.WaitForExit()behavior. - Removed two unit tests that covered the reverted ToolTask behavior (grandchild-inherited-pipe hang + output capture expectations).
- Updated ChangeWaves documentation by removing the reverted feature from the Wave 18.6 list.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Utilities/ToolTask.cs | Reverts the Wave18_6-gated ToolTask process/pipe EOF handling back to legacy waiting behavior. |
| src/Utilities.UnitTests/ToolTask_Tests.cs | Removes the regression tests that validated the reverted hang fix and output-capture behavior. |
| documentation/wiki/ChangeWaves.md | Removes the reverted ToolTask hang fix entry from the Wave 18.6 feature list. |
Comments suppressed due to low confidence (1)
src/Utilities.UnitTests/ToolTask_Tests.cs:1118
- This revert removes the two regression tests that covered (1) the historical ToolTask hang when a grandchild inherits stdout/stderr handles (#2981) and (2) output loss when using WaitForExit(int) (#10378). If this revert is intended to be temporary, consider keeping these tests (e.g., skipped with a clear reason tied to the revert) so the scenarios stay documented and can be re-enabled when the underlying issue is addressed.
}
}
/// <summary>
/// A simple implementation of <see cref="ToolTask"/> to sleep for a while.
/// </summary>
/// <remarks>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
AlesProkop
approved these changes
Jun 4, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
Author
|
merge on monday to get to the next QB window |
rainersigwald
approved these changes
Jun 4, 2026
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.
Reverts #13351 on the
vs18.8branch.This reverts commit 6c499a7 (
Fix ToolTask hang when grandchild processes inherit pipe handles).