Skip to content

fix(cli): print filtered script command - #13460

Merged
zkochan merged 3 commits into
mainfrom
fix-13457-3
Jul 28, 2026
Merged

zkochan merged 3 commits into
mainfrom
fix-13457-3

Conversation

@zkochan

@zkochan zkochan commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

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

Pacquet's recursive runner hardcoded every script execution as silent, so a
filtered run inherited the script output but omitted the preceding `$ <script>`
line. Pass the reporter's silent state through the recursive execution path so
normal filtered runs echo the command while `--silent` continues to suppress it.

The TypeScript CLI already has the intended behavior, so no TypeScript change is
needed.

Related to pnpm/pnpm#13457, item 3.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.

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


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • New Features
    • Filtered recursive lifecycle script runs now print the executed script command by default.
    • The executed command output can be suppressed using --silent.
  • Bug Fixes
    • Improved consistency of script output behavior across recursive runs and reporting modes.
  • Tests
    • Added integration coverage verifying command visibility by default, omission with --silent, and --reporter=ndjson output.

Copilot AI review requested due to automatic review settings July 28, 2026 08:27

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 reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@zkochan, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 4 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: c4b0d4a4-a778-4839-bf66-7351f313f752

📥 Commits

Reviewing files that changed from the base of the PR and between cbfe6b1 and 8eaba89.

📒 Files selected for processing (3)
  • .changeset/quiet-beans-sing.md
  • pnpm/crates/cli/tests/run_recursive.rs
  • pnpm/crates/package-manager/src/add/tests.rs
📝 Walkthrough

Walkthrough

Filtered recursive lifecycle scripts now receive the active reporter’s silent state. Script commands are printed by default and suppressed with --silent, with coverage added for filtered execution and a patch changeset.

Changes

Recursive script silent-mode propagation

Layer / File(s) Summary
Dispatch silent-mode wiring
pnpm/crates/cli/src/cli_args/dispatch_install.rs, pnpm/crates/cli/src/cli_args/dispatch_script.rs, pnpm/crates/cli/src/cli_args/run.rs
Recursive install-test, run, and fallback paths pass the active reporter’s silent state into run_recursive.
Per-project silent context
pnpm/crates/cli/src/cli_args/run/recursive.rs
Parallel and sequential recursive execution propagate silent through RunProjectOptions and use it when constructing RunContext.
Output validation and release metadata
pnpm/crates/cli/tests/run_recursive.rs, .changeset/quiet-beans-sing.md
Integration coverage verifies filtered script-command output by default, suppression with --silent, and JSON-only output with --reporter=ndjson; a patch changeset documents the behavior.

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
Loading

Suggested labels: product: pacquet

Suggested reviewers: copilot

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-13457-3

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.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Fix pacquet recursive run to print filtered script command (respect --silent)

🐞 Bug fix 🧪 Tests 🕐 20-40 Minutes

Grey Divider

AI Description

• Thread reporter silent mode through pacquet's recursive script runner.
• Print the invoked $  line for filtered lifecycle runs, matching TS CLI behavior.
• Add regression tests covering default output and --silent suppression.
Diagram

graph TD
  A["CLI dispatch (install/run)"] --> B["RunArgs.run_recursive(silent)"] --> C["recursive::run_recursive(silent)"] --> D["run_project"] --> E["run_stages (silent)"] --> F["stderr prints $ <cmd>"]
  T["run_recursive.rs tests"] --> A
Loading
High-Level Assessment

The chosen approach (explicitly threading silent: bool through the recursive run call chain) is the simplest and least invasive way to align pacquet output with the TypeScript CLI. Alternatives like passing the full reporter/context object deeper into the runner or deriving silence implicitly from the emit function would increase coupling and make testing harder for little benefit.

Files changed (6) +85 / -8

Bug fix (4) +36 / -7
dispatch_install.rsPropagate silent reporter state into recursive install/run path +6/-1

Propagate silent reporter state into recursive install/run path

• Updates the recursive execution call to pass 'matches!(reporter, ReporterType::Silent)' so recursive script runs can respect '--silent' semantics.

pnpm/crates/cli/src/cli_args/dispatch_install.rs

dispatch_script.rsPropagate silent reporter state into recursive script runner +12/-2

Propagate silent reporter state into recursive script runner

• Updates both 'run' and 'fallback' recursive paths to pass the reporter-derived silent flag into 'RunArgs::run_recursive'.

pnpm/crates/cli/src/cli_args/dispatch_script.rs

run.rsExtend RunArgs::run_recursive signature with silent flag +2/-1

Extend RunArgs::run_recursive signature with silent flag

• Adds a 'silent: bool' parameter to 'RunArgs::run_recursive' and forwards it to the recursive runner implementation.

pnpm/crates/cli/src/cli_args/run.rs

recursive.rsRespect silent mode when running lifecycle stages in recursive runs +16/-3

Respect silent mode when running lifecycle stages in recursive runs

• Plumbs 'silent' through 'run_recursive' into 'run_project', replacing the prior hardcoded 'silent: true' so filtered lifecycle runs print '$ <script>' unless suppressed.

pnpm/crates/cli/src/cli_args/run/recursive.rs

Tests (1) +44 / -1
run_recursive.rsAdd regression test for filtered command echo and --silent behavior +44/-1

Add regression test for filtered command echo and --silent behavior

• Adds a new test asserting that a filtered recursive run prints the '$ touch ran.txt' command by default, and that the same invocation with '--silent' omits that line.

pnpm/crates/cli/tests/run_recursive.rs

Documentation (1) +5 / -0
quiet-beans-sing.mdAdd changeset noting command echo for filtered lifecycle runs +5/-0

Add changeset noting command echo for filtered lifecycle runs

• Introduces a patch changeset for 'pacquet' describing that filtered lifecycle runs now print the invoked script command.

.changeset/quiet-beans-sing.md

@greptile-apps

greptile-apps Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The 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

@coderabbitai coderabbitai 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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 1c1442a and 423c70b.

📒 Files selected for processing (6)
  • .changeset/quiet-beans-sing.md
  • pnpm/crates/cli/src/cli_args/dispatch_install.rs
  • pnpm/crates/cli/src/cli_args/dispatch_script.rs
  • pnpm/crates/cli/src/cli_args/run.rs
  • pnpm/crates/cli/src/cli_args/run/recursive.rs
  • pnpm/crates/cli/tests/run_recursive.rs

Comment thread .changeset/quiet-beans-sing.md Resolved
Comment thread pnpm/crates/cli/tests/run_recursive.rs Resolved
@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     12.0±0.30ms    31.2 MB/sec    1.10     13.2±0.28ms    28.3 MB/sec
packument/parse                                  1.00     39.9±0.54µs  1662.6 MB/sec    1.09     43.5±1.17µs  1526.2 MB/sec
tarball/download_dependency                      1.00      2.5±0.08ms  1752.9 KB/sec    1.05      2.6±0.14ms  1663.1 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00    195.0±4.56ms 82.0 KElem/sec    1.05    205.0±9.11ms 78.0 KElem/sec

@codecov-commenter

codecov-commenter commented Jul 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.35294% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.66%. Comparing base (43e6a4a) to head (8eaba89).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pnpm/crates/cli/src/cli_args/dispatch_install.rs 0.00% 6 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI review requested due to automatic review settings July 28, 2026 08:38

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 reached their quota limit.

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

@qodo-code-review

qodo-code-review Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 24 rules

Grey Divider


Remediation recommended

1. Packument mock unasserted 🐞 Bug ⚙ Maintainability
Description
The add concurrency test no longer asserts the per-package packument mocks, so regressions that stop
(or mis-route) packument fetching can pass without being detected. This reduces the test’s ability
to validate the intended registry request set for each selector.
Code

pnpm/crates/package-manager/src/add/tests.rs[R293-295]

+    for (latest, _packument) in mocks {
        latest.assert_async().await;
-        packument.assert_async().await;
    }
Relevance

⭐⭐⭐ High

Team commonly tightens tests to avoid false-green/vacuous success; asserting all mocks matches that
pattern.

PR-#11169
PR-#12709
PR-#13256

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The test sets up a packument mock for each package and stores it in mocks, but the post-run
verification loop ignores _packument and asserts only latest, leaving packument traffic
unverified.

pnpm/crates/package-manager/src/add/tests.rs[219-230]
pnpm/crates/package-manager/src/add/tests.rs[293-295]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
The test `add_resolves_package_selectors_concurrently_and_reports_in_selector_order` still creates a `packument` mock per package and stores it, but the verification loop now only asserts the `latest` mock. As a result, missing/incorrect packument requests are no longer detected by this test.

### Issue Context
This test builds a `mocks` list of `(latest, packument)` pairs. After the `Add { .. }.run()` completes, it currently asserts only `latest`.

### Fix Focus Areas
- pnpm/crates/package-manager/src/add/tests.rs[219-230]
- pnpm/crates/package-manager/src/add/tests.rs[293-295]

### Expected fix
Either:
1) If packument requests are expected in this scenario: restore `packument.assert_async().await;` in the post-run loop.

Or:
2) If packument requests are intentionally not expected/required here: remove the packument mock creation/storage to avoid misleading unused setup, and adjust `mocks` to store only `latest`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

To customize comments, go to the Qodo configuration screen, or learn more in the docs.

Previous review results

Review updated until commit 8eaba89 ⚖️ Balanced

Results up to commit cbfe6b1 ⚖️ Balanced


No changes from previous review

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.

Copilot AI review requested due to automatic review settings July 28, 2026 08:49

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 reached their quota limit.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 28, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 8eaba89

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

@github-actions

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 8eaba89e6295

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.560 ± 0.146 2.370 2.795 1.68 ± 0.17
pacquet@main 2.570 ± 0.143 2.381 2.777 1.68 ± 0.17
pnpr@HEAD 1.537 ± 0.110 1.379 1.725 1.01 ± 0.11
pnpr@main 1.526 ± 0.128 1.400 1.753 1.00
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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 287.6 ± 8.9 276.9 304.4 1.03 ± 0.06
pacquet@main 279.0 ± 12.5 262.8 304.9 1.00
pnpr@HEAD 297.6 ± 15.0 282.4 324.0 1.07 ± 0.07
pnpr@main 295.9 ± 12.5 275.5 316.2 1.06 ± 0.07
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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.822 ± 0.032 2.764 2.862 1.81 ± 0.16
pacquet@main 2.808 ± 0.038 2.747 2.870 1.80 ± 0.16
pnpr@HEAD 1.562 ± 0.139 1.448 1.889 1.00
pnpr@main 1.665 ± 0.139 1.465 1.833 1.07 ± 0.13
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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 592.9 ± 8.3 580.0 603.1 1.95 ± 0.06
pacquet@main 575.9 ± 15.9 556.3 603.9 1.89 ± 0.08
pnpr@HEAD 304.1 ± 6.8 295.3 314.0 1.00 ± 0.04
pnpr@main 303.9 ± 8.9 290.0 318.5 1.00
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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.914 ± 0.017 1.887 1.940 6.38 ± 0.21
pacquet@main 1.886 ± 0.011 1.872 1.908 6.29 ± 0.20
pnpr@HEAD 0.300 ± 0.009 0.285 0.317 1.00
pnpr@main 0.302 ± 0.011 0.289 0.329 1.01 ± 0.05
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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 379.9 ± 23.6 361.1 433.0 4.35 ± 0.28
pacquet@main 365.6 ± 9.5 356.1 386.9 4.18 ± 0.12
pnpr@HEAD 87.4 ± 1.2 84.9 90.4 1.00
pnpr@main 87.5 ± 1.3 86.0 93.0 1.00 ± 0.02
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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.636 ± 0.126 4.501 4.855 1.31 ± 0.04
pacquet@main 4.661 ± 0.133 4.500 4.837 1.31 ± 0.04
pnpr@HEAD 3.549 ± 0.066 3.448 3.650 1.00
pnpr@main 3.647 ± 0.159 3.462 3.897 1.03 ± 0.05
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
      ]
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13460
Testbedpacquet
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,764.25 ms
(-1.76%)Baseline: 2,813.89 ms
3,376.67 ms
(81.86%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,887.24 ms
(-4.80%)Baseline: 1,982.35 ms
2,378.82 ms
(79.34%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
580.04 ms
(-10.63%)Baseline: 649.05 ms
778.87 ms
(74.47%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
361.07 ms
(-9.97%)Baseline: 401.06 ms
481.28 ms
(75.02%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,369.64 ms
(-2.11%)Baseline: 2,420.78 ms
2,904.93 ms
(81.57%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,500.85 ms
(-0.24%)Baseline: 4,511.73 ms
5,414.07 ms
(83.13%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
276.92 ms
(-0.74%)Baseline: 278.99 ms
334.79 ms
(82.71%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13460
Testbedpnpr

⚠️ 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-thresholds flag.

Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,447.53 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
285.44 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
295.32 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
84.94 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,379.46 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,448.41 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
282.41 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan
zkochan merged commit 9821162 into main Jul 28, 2026
39 checks passed
@zkochan
zkochan deleted the fix-13457-3 branch July 28, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants