docs: clarify background job exit codes#7167
Open
StantonMatt wants to merge 1 commit into
Open
Conversation
Signed-off-by: Matthew Stanton <stantonmatthewj@gmail.com>
b30d713 to
015d6e4
Compare
clemyan
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.
Closes #6801.
This documents the current portable shell behavior for
foo & bar: background jobs are waited on, but they don't determine the script exit code. The exit code comes from the foreground command on the right.That matches the existing shell implementation and the current background-job tests; this PR makes the
yarn lint & yarn testexample explicit about the consequence.Verification:
node scripts/run-yarn.js test:unit packages/yarnpkg-shell -t "Background jobs" --runInBandnode scripts/run-yarn.js workspace @yarnpkg/docusaurus build(passes; existing Docusaurus broken-link/anchor and TypeDoc warnings are still emitted)node scripts/run-yarn.js test:lintnode scripts/run-yarn.js version check