fix(rush): treat non-terminal statuses as non-terminal#5277
Merged
dmichon-msft merged 8 commits intomicrosoft:mainfrom Jul 22, 2025
Merged
fix(rush): treat non-terminal statuses as non-terminal#5277dmichon-msft merged 8 commits intomicrosoft:mainfrom
dmichon-msft merged 8 commits intomicrosoft:mainfrom
Conversation
Signed-off-by: Aramis Sennyey <aramissennyeydd@users.noreply.github.com>
Signed-off-by: Aramis Sennyey <aramissennyeydd@users.noreply.github.com>
Signed-off-by: Aramis Sennyey <aramissennyeydd@users.noreply.github.com>
Signed-off-by: Aramis Sennyey <aramissennyeydd@users.noreply.github.com>
Signed-off-by: Aramis Sennyey <aramissennyeydd@users.noreply.github.com>
libraries/rush-lib/src/logic/operations/OperationExecutionManager.ts
Outdated
Show resolved
Hide resolved
libraries/rush-lib/src/logic/operations/OperationExecutionManager.ts
Outdated
Show resolved
Hide resolved
…ger.ts Co-authored-by: David Michon <dmichon@microsoft.com>
Signed-off-by: Aramis Sennyey <aramissennyeydd@users.noreply.github.com>
aramissennyeydd
commented
Jul 22, 2025
libraries/rush-lib/src/logic/operations/OperationExecutionManager.ts
Outdated
Show resolved
Hide resolved
dmichon-msft
approved these changes
Jul 22, 2025
Collaborator
|
Thanks for fixing this! |
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.
Summary
The
pnpm-syncplugin is triggering multiple times during cobuilds instead of a single time after a proper build. This may be contributing to an increased rate ofWriter already closederrors that we've been seeing.Details
While debugging a failure when turning on injected-deps and pnpm-sync, I came across a consistent
Writer already closed error. I think this is due to pnpm-sync trying to write debug logs to a closed terminal (investigation still pending) - however, as part of my investigation, I saw pnpm-sync copying the same files over and over again with a log likeI'm pretty confident this is caused by the
afterExecuteOperationhook actually getting called for states likeExecutingandWaitinginstead of only being called for terminal statuses.How it was tested
Ran a cobuild against the sharded test repo we have and ran a cobuild locally and verified that I only saw
pnpm-synclogs for completed operations instead of all cobuild attempts.Impacted documentation