Skip to content

docs: document topological ordering of recursive run - #930

Closed
subashstanz wants to merge 1 commit into
pnpm:mainfrom
subashstanz:docs/recursive-topological-order
Closed

subashstanz wants to merge 1 commit into
pnpm:mainfrom
subashstanz:docs/recursive-topological-order

Conversation

@subashstanz

@subashstanz subashstanz commented Sep 14, 2026 •

Copy link
Copy Markdown

Documents that pnpm -r run, exec, test, and add run tasks in topological order — a package runs after its workspace dependencies.

Previously this was only mentioned indirectly in the --parallel section of the run docs, which says --parallel disregards topological sorting. This adds a clear statement on the recursive page itself.

Closes pnpm/pnpm#7131.


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

Summary by CodeRabbit

  • Documentation
    • Clarified that recursive tasks run in topological order by default, with packages executing after their workspace dependencies.
    • Documented that --no-sort and --parallel disable dependency-based ordering.

Recursive run/exec/test/add run tasks in topological order, so a
package runs after its workspace dependencies. This was only mentioned
in the --parallel section before, as a behavior --parallel turns off.
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@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 →

@coderabbitai

coderabbitai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 124b26f0-8b1e-4034-ae99-b2b305567bb5

📥 Commits

Reviewing files that changed from the base of the PR and between 59fb48f and 5968af6.

📒 Files selected for processing (1)
  • docs/cli/recursive.md

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (1)
  • GitHub Check: Greptile Review
🔇 Additional comments (1)
docs/cli/recursive.md (1)

37-39: LGTM!


📝 Walkthrough

Walkthrough

The recursive CLI documentation now states that run, exec, test, and add execute tasks in topological order. It also documents that --no-sort and --parallel disable this ordering.

Changes

Recursive CLI documentation

Layer / File(s) Summary
Document recursive task ordering
docs/cli/recursive.md
The page describes dependency-based task ordering for recursive commands and identifies --no-sort and --parallel as options that disable it.

Priority: ⬇️ Low

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

Severity of issue fixed: Low

Suggested reviewers: zkochan

Merge Risk: ⚪ Minimal · up to 5968a

This change clarifies existing recursive execution behavior without introducing implementation risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the documentation change for topological ordering in recursive runs. It matches the main objective of the pull request.
Linked Issues check ✅ Passed The change addresses issue #7131. It adds text to docs/cli/recursive.md that documents topological execution for run, exec, test, and add. It states that each package runs after its workspac…
Out of Scope Changes check ✅ Passed The pull request changes only the recursive commands documentation. The change directly supports issue #7131 and introduces no unrelated implementation or documentation changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

A rabbit reads the workspace tree
Dependencies hop in order, three by three
Run and test follow the trail
Exec and add stay on the same rail
Two flags can make the ordering flee

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

@greptile-apps

greptile-apps Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The documentation-only change appears safe to merge.

Reviews (1) · Last reviewed commit: "docs: document topological ordering of r..."

@zkochan

zkochan commented Sep 29, 2026

Copy link
Copy Markdown
Member

The applicable documentation changes from this PR were incorporated, with adaptations for the current implementation and documentation paths, into pnpm/pnpm#16393, which is now merged. The documentation sources now live alongside the CLI code in pnpm/pnpm. Closing this PR as superseded. Thank you for the contribution!


Written by an agent (Codex, GPT-6).

@zkochan zkochan closed this Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpm --recursive running in order of dependencies is undocumented

2 participants