Skip to content

docs(recursive): say that --no-bail skips the dependents of a failed task - #17484

Merged
zkochan merged 1 commit into
pnpm:mainfrom
Aquaticat:docs/no-bail-skips-dependents
Oct 30, 2026
Merged

zkochan merged 1 commit into
pnpm:mainfrom
Aquaticat:docs/no-bail-skips-dependents

Conversation

@Aquaticat

@Aquaticat Aquaticat commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The --no-bail paragraph in the command reference says "all tasks will finish".
With --no-bail, a task that depends on a failed task is skipped, and only independent tasks keep running.
The orchestration page already says so under --no-bail.

This changes the paragraph in pnpm/docs/cli/recursive.md (v12) and pnpm11/docs/cli/recursive.md (v11) and links to that section.
The v10 copy in pnpm/pnpm.io stays as it is, because pnpm 10 does run the dependent.

Closes pnpm/pnpm.io#987.

Verification: a workspace where lib fails, app depends on lib, and free is independent, run with pnpm -r --no-bail run test on a clean GitHub-hosted runner.
Each pnpm release is downloaded from its release page and checked against a pinned SHA-256.
Each script writes a marker file, so a marker exists only if the script ran.

  • 12.16.1, 12.14.0 and 11.28.9: lib and free ran, app did not run.
  • 10.34.9: all three ran.

Workflow and run: https://github.com/Aquaticat/pnpm-no-bail-dependents-repro (run 40912660582).

vale --minAlertLevel=warning reports no errors for the two files. The three warnings it prints are on lines this PR does not change.
I did not build the website, so the rendering of the new #--no-bail anchor is unchecked.
No changeset is added, as in #17251, which also changed only Markdown under docs/.

Written by an agent (Claude Code, claude-sonnet-5-5).

Squash Commit Body

The --no-bail paragraph in the command reference said all tasks finish.
In pnpm 11 and 12 the scheduler skips the dependents of a failed task and
runs only the independent ones, as the orchestration page already states.
Reword the paragraph in the v12 and v11 sources and link to that section.

pnpm 10 runs the dependent of a failed task, so its versioned page on
pnpm.io is correct and is not part of this change.

Closes pnpm/pnpm.io#987.

Checklist

  • I checked the referenced issue and verified that none of the PRs
    already linked to it solves it.
  • New features are implemented only in the Rust pnpm v12 CLI. Bug fixes
    are implemented in every affected version.
  • Updated the documentation if needed.

Summary by CodeRabbit

  • Documentation
    • Clarified that with --no-bail, tasks that depend on a failed task are skipped while independent tasks continue.
    • Noted that any task failure still results in a non-zero exit code.

@Aquaticat
Aquaticat requested a review from zkochan as a code owner October 29, 2026 16:44
Copilot AI balanced review requested due to automatic review settings October 29, 2026 16:44
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The recursive CLI documentation for pnpm 11 and pnpm 12 now says that --no-bail skips tasks that depend on failed tasks, while independent tasks continue. Both versions state that a task failure results in a non-zero exit code.

Changes: Recursive no-bail documentation

Layer / File(s) Summary
Document no-bail task behavior
pnpm/docs/cli/recursive.md, pnpm11/docs/cli/recursive.md
Both descriptions explain that dependent tasks are skipped after a failure, independent tasks continue, and the command exits non-zero if any task fails. The pnpm documentation also links to task-orchestration documentation.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other · Severity of issue fixed: Low

Assessment against linked issues

Objective Addressed Explanation
Correct the recursive CLI documentation for pnpm 11 and pnpm 12 to describe dependent-task skipping, independent-task continuation, and non-zero exit after failure [#987] ✅

Possibly related PRs

  • pnpm/pnpm#17470: Changes recursive bail cancellation behavior and documents recursive bail process handling.

Suggested labels: product: pacquet, product: pnpm@11

Merge Risk: Minimal · up to 5b3b3

The documentation update introduces no identified merge-blocking risk.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Oct 29, 2026
@garnet-runtime-review

garnet-runtime-review Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Runtime behavior changed

1 job changed
1 job recorded at the kernel (Linux x86_64)

At 5b3b3fa, compared with the PR base 040043f · your last push changed 2 destinations
Commit Change to this head
head 5b3b3fa
docs/no-bail-skips-dependents · run 40983347442
previous push f67c979
run 40914493247
test no longer reaches cloudfront-static.crates[.]io
test no longer reaches static.crates[.]io
PR base 040043f
main · run 40979193266
the job folds above
TS CI / test · −1
 ↳ pn › node no longer reaches npm.jsr[.]io
  Runner.Worker › … (5) › pn
  └─ node
-    └─ ○ npm.jsr[.]io
Runner activity outside your workflow · +6 −8 · not counted
  systemd
    ├─ chronyd
-   │  ├─ ○ 162.244.81[.]139
-   │  ├─ ○ 192.231.84[.]116
-   │  ├─ ○ 23.186.168[.]127
-   │  ├─ ○ 23.186.168[.]130
+   │  ├─ ○ 104.131.139[.]195
+   │  ├─ ○ 173.249.203[.]227
+   │  ├─ ○ 173.71.69[.]149
+   │  └─ ○ 23.150.41[.]123
    ├─ … (1)
    │  └─ nginx
-   │     ├─ ○ 140.82.112[.]21
-   │     ├─ ○ results-receiver.actions[.]githubusercontent (github infra)
+   │     ├─ ○ 140.82.112[.]22
+   │     └─ ○ 140.82.113[.]21
    ├─ systemd-resolve
    │  └─ ○ 8.8.8[.]8
-   └─ snapd
-      └─ ○ api.snapcraft[.]io

10 other destinations, nothing new · Full record in Garnet ↗


How to read this
Runner.Worker     ← process on a path
└─ curl           ← process that acted
   └─ ○ example[.]com ← observed action

Read down: what ran, then what it reached. + only in this commit · − only in the compared run. Capture is best-effort. · Docs ↗

Runtime behavior, recorded by Garnet. Add it to your CI ↗

…task

The paragraph said all tasks finish with --no-bail.
In pnpm 11 and 12 a task that depends on a failed task is skipped, and only independent tasks keep running.
pnpm 10 still runs the dependent, so the versioned 10.x page on pnpm.io is unchanged.
Reproduction: https://github.com/Aquaticat/pnpm-no-bail-dependents-repro

Written by an agent (Claude Code, claude-sonnet-5-5).
@zkochan
zkochan force-pushed the docs/no-bail-skips-dependents branch from f67c979 to 5b3b3fa Compare October 30, 2026 01:01
Copilot AI balanced review requested due to automatic review settings October 30, 2026 01:01

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can route each severity your way: inline, summary, both, or drop

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan

zkochan commented Oct 30, 2026

Copy link
Copy Markdown
Member

Reviewed, rebased onto the latest main, and checked against the code:

  • Both CLIs' task schedulers skip the transitive dependents of a failed task, so the new wording is correct for v11 and v12. It matches the --no-bail section of each version's orchestration page.
  • The #--no-bail anchor uses the same slug pattern as the existing #--resume-from-package_name links.
  • Vale reports no errors on the changed lines.

No fixes were needed. The only push was the rebase, head 5b3b3faa80e.

Review status on that head: CI is green (30 pass, 10 skipped). CodeRabbit approved it. Greptile (trial ended), Copilot (no quota), and Qodo (paused) did not review. Nothing is left to do within this scope.


Written by an agent (Claude Code, claude-opus-5-5).

@zkochan
zkochan merged commit 0f10a9f into pnpm:main Oct 30, 2026
41 checks passed
@welcome

welcome Bot commented Oct 30, 2026

Copy link
Copy Markdown

Congrats on merging your first pull request! 🎉🎉🎉

KSXGitHub pushed a commit that referenced this pull request Oct 30, 2026
Six commits, no conflicts, and nothing for the policy to absorb: none
of them adds an `unsafe`, declares a crate, or touches a file that
holds one, so the audit passes unchanged. Five are shared bug fixes
carrying a Rust and a TypeScript side, and #17484 is
documentation only.

Its edit lands in `pnpm/docs/cli/recursive.md`, which #17470
also rewrote, so the merged `--[no-]bail` section was read rather than
taken on trust: the bail paragraph that says what a cancelled task
receives now sits above the one that says which tasks `--no-bail`
skips, and the section's new link resolves.

The one place this branch still differs from `main` in the files the
merge touched is `optimistic_repeat_install/validation.rs`, where the
Windows `ctime` read goes through `pnpm_ffi_fs::change_time_ticks`
rather than calling `GetFileInformationByHandleEx` itself. That is the
reorganization, not a merge artifact.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SGkcSRrVKrkuaCfNT3Wjcd
KSXGitHub added a commit that referenced this pull request Oct 30, 2026
Carries #17216, and with it `main` through
#17484. No conflicts.

It also takes the review's `pipe-trait` suggestion for
`cargo_deps/git.rs`, which belongs on this branch because the
`FileMode::from_permissions` call it wraps is this branch's. `pipe_ref`
is the right one of the two: `permissions()` hands back an owned value
and `from_permissions` takes it by reference, which `pipe_as_ref` cannot
bridge for want of a reflexive `AsRef`.

The suggested rename of `metadata` to `stats` is not taken. The chain's
widest line is 54 characters against a limit of 100, so three fewer
would change no formatting, and this file calls every `fs::Metadata`
value `metadata`, the caller's local and both arms' parameter included.

Co-authored-by: khai96_ <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SGkcSRrVKrkuaCfNT3Wjcd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet product: pnpm@11 reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: cli/recursive says --no-bail finishes all tasks; the scheduler skips dependents

3 participants