Repository navigation
fix(cli): print filtered script command - #13460
Conversation
|
Warning Review limit reached
Next review available in: 4 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughFiltered recursive lifecycle scripts now receive the active reporter’s silent state. Script commands are printed by default and suppressed with ChangesRecursive script silent-mode propagation
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant CLI
participant RunArgs
participant RecursiveRunner
participant RunContext
participant ScriptProcess
CLI->>RunArgs: dispatch recursive script with reporter mode
RunArgs->>RecursiveRunner: forward silent flag
RecursiveRunner->>RunContext: create per-project context
RunContext->>ScriptProcess: execute filtered lifecycle script
ScriptProcess-->>CLI: print command unless silent
Suggested labels: Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
PR Summary by QodoFix pacquet recursive run to print filtered script command (respect --silent)
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; every recursive lifecycle caller now suppresses direct command output for NDJSON and silent reporters, addressing the prior structured-stream issue. Reviews (3): Last reviewed commit: "test: address review and stabilize valid..." | Re-trigger Greptile |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.changeset/quiet-beans-sing.md:
- Line 5: Update the filtered lifecycle script documentation in the changeset to
state that the script command is printed by default, while explicitly noting
that the output remains suppressed when the --silent option is used.
In `@pnpm/crates/cli/tests/run_recursive.rs`:
- Around line 593-607: The silent filtered invocation currently targets
project-1, whose existing ran.txt marker cannot prove the command executed.
Update the test around the silent filtered build to target project-2, then
assert the project-2 ran.txt marker exists after the command succeeds while
retaining the assertion that stderr omits the script command.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: b1180b91-eae9-4599-98a6-dc6ecdf79b96
📒 Files selected for processing (6)
.changeset/quiet-beans-sing.mdpnpm/crates/cli/src/cli_args/dispatch_install.rspnpm/crates/cli/src/cli_args/dispatch_script.rspnpm/crates/cli/src/cli_args/run.rspnpm/crates/cli/src/cli_args/run/recursive.rspnpm/crates/cli/tests/run_recursive.rs
Micro-Benchmark ResultsLinux |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13460 +/- ##
=======================================
Coverage 87.66% 87.66%
=======================================
Files 546 546
Lines 94260 94338 +78
=======================================
+ Hits 82630 82705 +75
- Misses 11630 11633 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Code Review by Qodo
Context used✅ Compliance rules (platform):
24 rules 1. Packument mock unasserted
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit 8eaba89 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time). Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.5600784239,
"stddev": 0.1456940924309861,
"median": 2.5727432896,
"user": 1.6568474800000002,
"system": 1.3731061599999999,
"min": 2.3696365306,
"max": 2.7953305886,
"times": [
2.5381037066,
2.7953305886,
2.6249916956,
2.3696365306,
2.5758520966000003,
2.6881644846,
2.5696344825999997,
2.3885271206,
2.3733942206,
2.6771493126
]
},
{
"command": "pacquet@main",
"mean": 2.5704685585,
"stddev": 0.14259823788902787,
"median": 2.5126976116,
"user": 1.7055712800000002,
"system": 1.3982068600000002,
"min": 2.3811305456,
"max": 2.7772721166,
"times": [
2.4489809386,
2.5025804706,
2.7591188956,
2.6225899216,
2.4871704176,
2.7772721166,
2.4681326796,
2.5228147526,
2.3811305456,
2.7348948466
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5370161913,
"stddev": 0.10952506915038178,
"median": 1.5279579431,
"user": 1.2707335800000001,
"system": 1.3114853599999998,
"min": 1.3794560676,
"max": 1.7250789385999998,
"times": [
1.4318921996,
1.7250789385999998,
1.5827084486,
1.4435824926,
1.4791209786,
1.5192960586,
1.6719661736,
1.6004407276000001,
1.3794560676,
1.5366198276
]
},
{
"command": "pnpr@main",
"mean": 1.5259444277,
"stddev": 0.1284023949870637,
"median": 1.4989372826,
"user": 1.18709598,
"system": 1.21595616,
"min": 1.3995851905999999,
"max": 1.7527295036,
"times": [
1.4125832396,
1.4806403306,
1.5624743076,
1.3995851905999999,
1.7099332436,
1.5975113286,
1.4000324836,
1.5172342346,
1.4267204146,
1.7527295036
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.28760139072,
"stddev": 0.008853635372133533,
"median": 0.28473939252,
"user": 0.2567507,
"system": 0.5446002400000001,
"min": 0.27691702602,
"max": 0.30443651302,
"times": [
0.29300869202,
0.28380085402,
0.28546804602,
0.30443651302,
0.27729946602,
0.27691702602,
0.29546994902,
0.28153018602,
0.29407243602,
0.28401073902
]
},
{
"command": "pacquet@main",
"mean": 0.27901768792,
"stddev": 0.012465057395497572,
"median": 0.27431087052,
"user": 0.24945789999999998,
"system": 0.53590094,
"min": 0.26279609102,
"max": 0.30490135902,
"times": [
0.30490135902,
0.29227731402,
0.27329412002,
0.27532762102,
0.28755725102,
0.27265119802,
0.26279609102,
0.27049652902,
0.27940012302,
0.27147527302
]
},
{
"command": "pnpr@HEAD",
"mean": 0.29763531622,
"stddev": 0.01495377732613557,
"median": 0.29465345102,
"user": 0.2349484,
"system": 0.56032704,
"min": 0.28240774102,
"max": 0.32404025702,
"times": [
0.28240774102,
0.28523454602,
0.28576060602000003,
0.29747344502,
0.30762268502,
0.31996955702,
0.32404025702,
0.29525404302,
0.29405285902,
0.28453742302
]
},
{
"command": "pnpr@main",
"mean": 0.29590530622,
"stddev": 0.012540233612548912,
"median": 0.29284042452000003,
"user": 0.2335915,
"system": 0.57791364,
"min": 0.27552570402,
"max": 0.31615749502,
"times": [
0.28994501002,
0.28854067402,
0.28705284102,
0.29706605602,
0.29285255702,
0.27552570402,
0.30569231802,
0.29282829202,
0.31339211502000003,
0.31615749502
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.82179231506,
"stddev": 0.03201020718909709,
"median": 2.8271081476600006,
"user": 1.8573739799999998,
"system": 1.40351502,
"min": 2.76425371316,
"max": 2.8619207611600004,
"times": [
2.81163463116,
2.80251696316,
2.8320146871600005,
2.8619207611600004,
2.8222016081600003,
2.8426951701600003,
2.8596675561600002,
2.76425371316,
2.8387528521600003,
2.78226520816
]
},
{
"command": "pacquet@main",
"mean": 2.80784046036,
"stddev": 0.0375919474412546,
"median": 2.80589140016,
"user": 1.83807628,
"system": 1.36997592,
"min": 2.74713663216,
"max": 2.87028300516,
"times": [
2.85131589016,
2.8035249021600004,
2.87028300516,
2.7893170241600003,
2.7761590921600003,
2.81435337016,
2.8082578981600004,
2.74713663216,
2.77875145616,
2.83930533316
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5618969649600003,
"stddev": 0.1391204963648999,
"median": 1.50460783616,
"user": 1.1068000799999997,
"system": 1.21724562,
"min": 1.44753088816,
"max": 1.88945642916,
"times": [
1.46098486216,
1.44753088816,
1.66984412716,
1.5065970631599999,
1.4731188501599999,
1.5595753911599999,
1.50261860916,
1.88945642916,
1.64793613916,
1.46130729016
]
},
{
"command": "pnpr@main",
"mean": 1.66492619996,
"stddev": 0.1387644366253614,
"median": 1.68561350366,
"user": 1.10318478,
"system": 1.17642012,
"min": 1.46486316716,
"max": 1.83328860416,
"times": [
1.46486316716,
1.63995880216,
1.60398722116,
1.73996517716,
1.79117672716,
1.4897592961600001,
1.73126820516,
1.82518161316,
1.52981318616,
1.83328860416
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.5928686439399999,
"stddev": 0.008258319383117696,
"median": 0.59447522074,
"user": 0.7146635,
"system": 0.6858124999999999,
"min": 0.58004172074,
"max": 0.60312781874,
"times": [
0.59593445974,
0.60304736774,
0.60312781874,
0.58604773474,
0.60072557374,
0.58671610474,
0.5932989537400001,
0.5840952177400001,
0.59565148774,
0.58004172074
]
},
{
"command": "pacquet@main",
"mean": 0.57585104534,
"stddev": 0.015933458977956498,
"median": 0.57469774474,
"user": 0.6890249999999999,
"system": 0.6689919,
"min": 0.5563481087400001,
"max": 0.60392430074,
"times": [
0.58077376074,
0.58301964074,
0.5563481087400001,
0.55729212774,
0.5628988687400001,
0.60392430074,
0.58849954374,
0.5662861597400001,
0.56862172874,
0.59084621374
]
},
{
"command": "pnpr@HEAD",
"mean": 0.30414876144,
"stddev": 0.00678541533550101,
"median": 0.30352069424,
"user": 0.2063399,
"system": 0.5050838,
"min": 0.29531938074,
"max": 0.31395993474,
"times": [
0.29993332174000004,
0.29531938074,
0.29560277374,
0.29877892674,
0.30272163374,
0.30431975474,
0.31013391674,
0.31201713474000004,
0.30870083674000004,
0.31395993474
]
},
{
"command": "pnpr@main",
"mean": 0.30392167474,
"stddev": 0.008870354972459844,
"median": 0.30304935674,
"user": 0.20705079999999998,
"system": 0.5284845,
"min": 0.29003791074,
"max": 0.31850663874,
"times": [
0.30036095774,
0.31850663874,
0.29003791074,
0.30826602874000003,
0.30044476574,
0.31124617174,
0.30565394774,
0.31211076074,
0.29937525074,
0.29321431474000004
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.9144700038600004,
"stddev": 0.017281566005393673,
"median": 1.91400342116,
"user": 0.9406064999999998,
"system": 0.7702489399999999,
"min": 1.8872442286600002,
"max": 1.9396280356600002,
"times": [
1.9082509396600003,
1.91191021266,
1.9090213206600002,
1.93426263966,
1.9396280356600002,
1.9309131886600002,
1.9167524446600002,
1.8906203986600003,
1.8872442286600002,
1.9160966296600002
]
},
{
"command": "pacquet@main",
"mean": 1.88586838816,
"stddev": 0.010816235432902858,
"median": 1.8832549641600003,
"user": 0.8910398,
"system": 0.7519556399999999,
"min": 1.8720408396600001,
"max": 1.9076495266600002,
"times": [
1.8818312226600002,
1.8848420846600002,
1.8826757226600002,
1.87663464366,
1.8838342056600001,
1.8989049236600002,
1.87808807066,
1.8921826416600003,
1.8720408396600001,
1.9076495266600002
]
},
{
"command": "pnpr@HEAD",
"mean": 0.29997617286,
"stddev": 0.009454151529456022,
"median": 0.29999547216,
"user": 0.1779888,
"system": 0.53770604,
"min": 0.28543877166000003,
"max": 0.31680595866,
"times": [
0.29487425566000003,
0.29638544166,
0.29027247666,
0.30524328766000003,
0.31680595866,
0.30360550266,
0.30880719066,
0.29384712966,
0.28543877166000003,
0.30448171366
]
},
{
"command": "pnpr@main",
"mean": 0.30202405156,
"stddev": 0.011408217505494528,
"median": 0.30120247566,
"user": 0.19100690000000003,
"system": 0.52843734,
"min": 0.28940739766,
"max": 0.32887350066,
"times": [
0.29802807666000003,
0.29013866466,
0.30913085166,
0.30088126066,
0.30152369066,
0.32887350066,
0.29363288666,
0.28940739766,
0.30504655666,
0.30357762966
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.37986580754,
"stddev": 0.02359471959798585,
"median": 0.36775725183999997,
"user": 0.36461528000000004,
"system": 0.06468349999999999,
"min": 0.36106884834,
"max": 0.43299403734,
"times": [
0.40467258134,
0.36544225634,
0.36106884834,
0.37007224734,
0.36434011034,
0.36127494734,
0.36512885534,
0.38949954034,
0.43299403734,
0.38416465134
]
},
{
"command": "pacquet@main",
"mean": 0.36560492464,
"stddev": 0.009542457263631975,
"median": 0.36444232233999996,
"user": 0.37314598,
"system": 0.041743899999999994,
"min": 0.35608931834,
"max": 0.38694766534,
"times": [
0.38694766534,
0.36500663534,
0.36802157534,
0.36387800934,
0.35608931834,
0.36508356134,
0.35808294334,
0.35670412634,
0.36051565634,
0.37571975534
]
},
{
"command": "pnpr@HEAD",
"mean": 0.08741936779454546,
"stddev": 0.0011606645851910955,
"median": 0.08718353734,
"user": 0.020447119393939398,
"system": 0.009565278787878788,
"min": 0.08493846834,
"max": 0.09039090834,
"times": [
0.08545456934000001,
0.09024718634000001,
0.08872377834,
0.08736549934000001,
0.08717565234,
0.08662120734,
0.08727617134000001,
0.08732230834000002,
0.08768486134,
0.08707067334000002,
0.08754236234000001,
0.08810418034,
0.08708183534000001,
0.08673249734,
0.08647749634000002,
0.08800721834000001,
0.08665398834000002,
0.08850243034000001,
0.08650586034,
0.08718353734,
0.08658954834,
0.08688190834000001,
0.08857700134,
0.08662634634000001,
0.08858713034000001,
0.08821951834000001,
0.08493846834,
0.08679070634000001,
0.08799511534000001,
0.08676063034,
0.08850945334,
0.08623908834,
0.09039090834
]
},
{
"command": "pnpr@main",
"mean": 0.08748536724909092,
"stddev": 0.0012607737331890767,
"median": 0.08736313534000001,
"user": 0.02076730121212121,
"system": 0.009243854545454544,
"min": 0.08596444034,
"max": 0.09299832934,
"times": [
0.08621671534000001,
0.08795215434,
0.08644657834000001,
0.08746073834000001,
0.08697030434000001,
0.08785512134000001,
0.08654065534000001,
0.08751752634000001,
0.08739354234,
0.08736313534000001,
0.08745772334000002,
0.08818279934,
0.08630491134000001,
0.08729453534,
0.08704003634000002,
0.08732763734000001,
0.08752432834000001,
0.08706306034000001,
0.08778723534,
0.08936825134000001,
0.09299832934,
0.08938113634000001,
0.08596444034,
0.08691194534,
0.08789753134000002,
0.08682210634000001,
0.08600228134000001,
0.08796694134000001,
0.08669842234000001,
0.08750232734,
0.08725752534,
0.08762852534000001,
0.08691861734
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.63550846702,
"stddev": 0.1257595081046076,
"median": 4.60628416012,
"user": 2.06629156,
"system": 1.5122092399999998,
"min": 4.500851942120001,
"max": 4.85549836612,
"times": [
4.500851942120001,
4.519476234120001,
4.6266326631200005,
4.631733892120001,
4.80739607012,
4.85549836612,
4.58593565712,
4.565200319120001,
4.51877175512,
4.7435877711200005
]
},
{
"command": "pacquet@main",
"mean": 4.66141383152,
"stddev": 0.1327148346413099,
"median": 4.64676229212,
"user": 2.23180276,
"system": 1.6536170399999999,
"min": 4.49985344212,
"max": 4.83658520112,
"times": [
4.50990351212,
4.49985344212,
4.54634222812,
4.63222768612,
4.825070135120001,
4.55358046312,
4.7924173671200005,
4.75686138212,
4.661296898120001,
4.83658520112
]
},
{
"command": "pnpr@HEAD",
"mean": 3.54851033892,
"stddev": 0.06558380263388,
"median": 3.5372431336199996,
"user": 1.2974920599999997,
"system": 1.28790074,
"min": 3.44841376412,
"max": 3.64988349412,
"times": [
3.64988349412,
3.54355107512,
3.58925400212,
3.50932898512,
3.53093519212,
3.59616608112,
3.47705940112,
3.51296458312,
3.44841376412,
3.6275468111199998
]
},
{
"command": "pnpr@main",
"mean": 3.6470958953199997,
"stddev": 0.15853030570858467,
"median": 3.59014883762,
"user": 1.3389864599999997,
"system": 1.3791889399999997,
"min": 3.46182017712,
"max": 3.89702259612,
"times": [
3.46182017712,
3.54176890912,
3.89702259612,
3.62533180812,
3.52188008512,
3.62858139012,
3.54530230412,
3.8089359361199997,
3.88534988012,
3.55496586712
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13460 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,447.53 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 285.44 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 295.32 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 84.94 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,379.46 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,448.41 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 282.41 ms |
Summary
Thread the active reporter's silent state through pacquet's recursive script runner so filtered lifecycle runs print the invoked script command, matching the TypeScript CLI.
Add regression coverage for both the default output and
--silent.Related to #13457, item 3.
Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Codex, GPT-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
--silent.--silent, and--reporter=ndjsonoutput.