Skip to content

fix(cmd-shim): update the test call sites to the relocatable-shim arity - #15098

Merged
zkochan merged 1 commit into
mainfrom
fix-cmd-shim-test-arity
Sep 19, 2026
Merged

zkochan merged 1 commit into
mainfrom
fix-cmd-shim-test-arity

Conversation

@zkochan

@zkochan zkochan commented Sep 19, 2026 •

Copy link
Copy Markdown
Member

Summary

main does not compile its pnpm-cmd-shim tests, so cargo test fails on
every branch cut from it.

#15041 gave generate_sh_shim a relocatable_root parameter and
is_shim_pointing_at a shim_path one. #14963 branched before that
and merged after it, adding four call sites that still pass the old argument
lists. Each PR was green on its own base; their merge is not.

The four call sites are all #[cfg(unix)], which is why Rust CI / Clippy / windows stays green while Test / ubuntu, Test / macos, Clippy / ubuntu
and Dylint fail.

This PR passes None for the new relocatable_root and the shim path for the
new shim_path, which is what the surrounding call sites already do.

Squash Commit Body

pnpm/pnpm#15041 gave `generate_sh_shim` a `relocatable_root` parameter
and `is_shim_pointing_at` a `shim_path` one. pnpm/pnpm#14963 branched
before that and merged after it, adding four call sites that still pass
the old argument lists. Each was green on its own base, and their merge
does not compile, so `cargo test` fails on every branch cut from main.

The call sites are all `#[cfg(unix)]`, which is why the Windows Clippy
job stayed green while the Linux and macOS test jobs failed.

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.
  • Added or updated tests.

Written by an agent (Claude Code, claude-opus-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

  • Tests
    • Updated platform-specific test cases to match the current command-shim interface.
    • Preserved coverage for shim replacement, path conversion, and fallback behavior.

#15041 gave `generate_sh_shim` a `relocatable_root` parameter
and `is_shim_pointing_at` a `shim_path` one. #14963 branched
before that and merged after it, adding four call sites that still pass
the old argument lists. Each was green on its own base, and their merge
does not compile, so `cargo test` fails on every branch cut from main.

The call sites are all `#[cfg(unix)]`, which is why the Windows Clippy
job stayed green while the Linux and macOS test jobs failed.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: pnpm/pnpm/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 83b2a2f3-ff74-4618-bd69-15ac35f73757

📥 Commits

Reviewing files that changed from the base of the PR and between e9be2b9 and 5654bbe.

📒 Files selected for processing (2)
  • pnpm/crates/cmd-shim/src/link_bins/tests/security.rs
  • pnpm/crates/cmd-shim/src/shim/tests.rs

Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.


📝 Walkthrough

Walkthrough

The changes update three shim test calls to match revised helper signatures. They add relocatable-root arguments and pass the shim path to is_shim_pointing_at.

Changes

Shim test helper signature alignment

Layer / File(s) Summary
Align shim test helper calls
pnpm/crates/cmd-shim/src/link_bins/tests/security.rs, pnpm/crates/cmd-shim/src/shim/tests.rs
Shim tests pass the new relocatable_root argument. Security assertions also pass the shim path to is_shim_pointing_at.

Priority: ⬇️ Low

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

Change: Bug fix

Suggested labels: product: pacquet

Suggested reviewers: ayush442842q

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.02     12.4±0.62ms    30.1 MB/sec    1.00     12.2±0.09ms    30.8 MB/sec
packument/parse                                  1.00     39.3±1.03µs  1687.5 MB/sec    1.02     40.0±0.22µs  1658.8 MB/sec
tarball/download_dependency                      1.03      3.9±0.06ms  1102.3 KB/sec    1.00      3.8±0.14ms  1131.3 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.01    186.8±4.05ms 85.7 KElem/sec    1.00    184.3±4.54ms 86.8 KElem/sec
workspace_resolution/hoist_heavy                 1.08   257.2±14.16ms        ? ?/sec    1.00    238.0±1.61ms        ? ?/sec
workspace_sort/chained_projects                  1.17     14.1±1.11ms        ? ?/sec    1.00     12.1±0.77ms        ? ?/sec

@zkochan
zkochan marked this pull request as ready for review September 19, 2026 00:41
@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 describe a rule in plain language on the Rules page and Qodo drafts it for you

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Fix Unix cmd-shim tests for relocatable shim signatures

🐞 Bug fix 🧪 Tests 🕐 Less than 10 minutes

Grey Divider

AI Description

• Passes no relocatable root when generating legacy-style shims in Unix tests.
• Supplies shim paths when validating target markers, restoring Rust test compilation.
Diagram

graph TD
  A["Unix tests"] -->|"None root"| B["Shim generator"] -->|"produces"| C["Shell shim"]
  A -->|"shim path"| D["Target matcher"] -->|"checks marker"| C
Loading
High-Level Assessment

Directly updating the stale test call sites is the optimal approach because it matches surrounding usage and preserves existing non-relocatable test semantics. Introducing wrappers or helpers solely to hide the new arguments would add unnecessary abstraction.

Files changed (2) +4 / -4

Tests (2) +4 / -4
security.rsUpdate shim reinstall tests for new API parameters +3/-3

Update shim reinstall tests for new API parameters

• Passes 'None' as the relocatable root when creating the outdated shim. Supplies the shim path when checking target markers before and after reinstall, allowing relative markers to resolve correctly.

pnpm/crates/cmd-shim/src/link_bins/tests/security.rs

tests.rsUpdate platform path-converter test shim generation +1/-1

Update platform path-converter test shim generation

• Passes 'None' for the new relocatable-root parameter when generating the test shell shim, preserving its existing absolute-path behavior.

pnpm/crates/cmd-shim/src/shim/tests.rs

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

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.23%. Comparing base (2c82ea5) to head (5654bbe).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #15098    +/-   ##
========================================
  Coverage   91.23%   91.23%            
========================================
  Files        1338     1342     +4     
  Lines      179793   179989   +196     
========================================
+ Hits       164028   164210   +182     
- Misses      15765    15779    +14     

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

@greptile-apps

greptile-apps Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge because the changes correctly adapt test call sites without altering production behavior.

Reviews (1) · Last reviewed commit: "fix(cmd-shim): update the test call site..."

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Sep 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 5654bbede49c

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm; the linked-workspace scenario compares current Rust against main Rust. 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.427 ± 0.128 2.276 2.666 1.68 ± 0.19
pacquet@main 2.335 ± 0.118 2.241 2.549 1.62 ± 0.18
pnpr@HEAD 1.443 ± 0.143 1.293 1.675 1.00
pnpr@main 1.452 ± 0.131 1.291 1.660 1.01 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.4266226280199996,
      "stddev": 0.12779521086758217,
      "median": 2.40468469162,
      "user": 1.3319564799999999,
      "system": 1.5278557000000001,
      "min": 2.2755957106199998,
      "max": 2.66587014562
    },
    {
      "command": "pacquet@main",
      "mean": 2.3346064705200003,
      "stddev": 0.11820310938598129,
      "median": 2.2690597626199995,
      "user": 1.31341788,
      "system": 1.4795713,
      "min": 2.24063259462,
      "max": 2.54924830162
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.4430862762200003,
      "stddev": 0.14344216673241966,
      "median": 1.39066612412,
      "user": 1.4149346799999998,
      "system": 1.5913758999999998,
      "min": 1.2932100296200002,
      "max": 1.6752417076200001
    },
    {
      "command": "pnpr@main",
      "mean": 1.4522600523200002,
      "stddev": 0.1314251092836708,
      "median": 1.44582959862,
      "user": 1.1912831799999999,
      "system": 1.3941028000000002,
      "min": 1.2908971156200002,
      "max": 1.6597458116200001
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 198.0 ± 10.0 182.6 215.5 1.00 ± 0.06
pacquet@main 197.4 ± 7.3 185.9 209.4 1.00
pnpr@HEAD 222.0 ± 3.4 217.6 226.5 1.12 ± 0.04
pnpr@main 204.8 ± 6.0 193.0 212.5 1.04 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.19803923370000004,
      "stddev": 0.010013987807519201,
      "median": 0.19872770920000002,
      "user": 0.20877299999999996,
      "system": 0.4936877600000001,
      "min": 0.18263127320000003,
      "max": 0.21548304920000003
    },
    {
      "command": "pacquet@main",
      "mean": 0.19743736630000003,
      "stddev": 0.007265218062921573,
      "median": 0.19769219520000003,
      "user": 0.2181102,
      "system": 0.47422416,
      "min": 0.18591977520000003,
      "max": 0.20939387320000002
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.22201565660000006,
      "stddev": 0.0033841404604114515,
      "median": 0.22282804820000002,
      "user": 0.23734919999999998,
      "system": 0.5187559599999999,
      "min": 0.21758304120000002,
      "max": 0.22653926620000003
    },
    {
      "command": "pnpr@main",
      "mean": 0.20481035710000003,
      "stddev": 0.0060453658414025835,
      "median": 0.20505134220000001,
      "user": 0.20698779999999997,
      "system": 0.47071876,
      "min": 0.19303026720000002,
      "max": 0.2125349082
    }
  ]
}

Scenario: Isolated linker: repeat install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 6.9 ± 1.6 5.6 13.1 1.10 ± 0.27
pacquet@main 6.3 ± 0.4 5.6 8.2 1.00 ± 0.10
pnpr@HEAD 6.3 ± 0.5 5.6 9.1 1.00
pnpr@main 6.4 ± 0.6 5.6 9.5 1.01 ± 0.12
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.006939450323508774,
      "stddev": 0.0016250119710408014,
      "median": 0.0063029459200000006,
      "user": 0.004250939999999997,
      "system": 0.003144578421052634,
      "min": 0.005635378920000001,
      "max": 0.013127727920000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.006296960501267223,
      "stddev": 0.000394206117150213,
      "median": 0.00625582292,
      "user": 0.003951234159779611,
      "system": 0.0028056394490358115,
      "min": 0.00557908392,
      "max": 0.00820500092
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.006296412805154054,
      "stddev": 0.0004557972975347158,
      "median": 0.006225073920000001,
      "user": 0.0039777587675069994,
      "system": 0.002756092549019607,
      "min": 0.00555571892,
      "max": 0.009143230920000002
    },
    {
      "command": "pnpr@main",
      "mean": 0.00638022872678851,
      "stddev": 0.0006130438759664497,
      "median": 0.006284777920000001,
      "user": 0.004093207101827676,
      "system": 0.0027293420365535246,
      "min": 0.0056445659200000005,
      "max": 0.00946098792
    }
  ]
}

Scenario: Isolated linker: repeat install, cold cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 7.6 ± 0.9 5.8 10.7 1.06 ± 0.18
pacquet@main 7.2 ± 0.9 5.8 12.4 1.00
pnpr@HEAD 9.7 ± 1.1 7.5 16.2 1.34 ± 0.22
pnpr@main 9.1 ± 0.9 7.4 13.6 1.26 ± 0.20
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.007632815526666665,
      "stddev": 0.0008802902370026692,
      "median": 0.0075381788600000004,
      "user": 0.004721172284644198,
      "system": 0.0033817277153558043,
      "min": 0.005817429860000001,
      "max": 0.01070872786
    },
    {
      "command": "pacquet@main",
      "mean": 0.007230195856632998,
      "stddev": 0.0008804939122476004,
      "median": 0.0071054058600000004,
      "user": 0.004329872053872055,
      "system": 0.0033462989898989906,
      "min": 0.005770661860000001,
      "max": 0.01238449186
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.009691386143783785,
      "stddev": 0.001067091884740477,
      "median": 0.009548164860000001,
      "user": 0.005773692567567571,
      "system": 0.004510655945945948,
      "min": 0.0074779658600000005,
      "max": 0.01616504686
    },
    {
      "command": "pnpr@main",
      "mean": 0.009085637456244133,
      "stddev": 0.0009069656226806124,
      "median": 0.008986135860000001,
      "user": 0.005557605633802816,
      "system": 0.003995975962441316,
      "min": 0.007358590860000001,
      "max": 0.01355666186
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.481 ± 0.017 2.460 2.507 1.64 ± 0.13
pacquet@main 2.485 ± 0.023 2.452 2.525 1.64 ± 0.13
pnpr@HEAD 1.520 ± 0.107 1.388 1.661 1.00 ± 0.11
pnpr@main 1.514 ± 0.122 1.392 1.758 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.48100697972,
      "stddev": 0.017282471885832158,
      "median": 2.47592831622,
      "user": 1.7787813999999997,
      "system": 1.60221408,
      "min": 2.45974187472,
      "max": 2.50674819272
    },
    {
      "command": "pacquet@main",
      "mean": 2.4845896947200004,
      "stddev": 0.023271743016281196,
      "median": 2.48025520872,
      "user": 1.7756537,
      "system": 1.5845869799999999,
      "min": 2.45187873972,
      "max": 2.52541590172
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.51978187982,
      "stddev": 0.10746155367068372,
      "median": 1.52636331222,
      "user": 1.1737235,
      "system": 1.3404453799999998,
      "min": 1.38795250272,
      "max": 1.66141123872
    },
    {
      "command": "pnpr@main",
      "mean": 1.51442196232,
      "stddev": 0.12246050099575913,
      "median": 1.46628461222,
      "user": 1.2642747999999995,
      "system": 1.45676518,
      "min": 1.39182751172,
      "max": 1.7583135187199999
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 458.8 ± 25.3 428.1 499.2 1.32 ± 0.09
pacquet@main 471.6 ± 15.1 457.3 509.1 1.35 ± 0.07
pnpr@HEAD 348.4 ± 13.8 322.6 366.5 1.00
pnpr@main 392.3 ± 28.4 356.7 442.2 1.13 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.45878951815999996,
      "stddev": 0.02534344572674907,
      "median": 0.45645019196000003,
      "user": 0.7174472000000001,
      "system": 1.12633628,
      "min": 0.42813899246000003,
      "max": 0.49921549746
    },
    {
      "command": "pacquet@main",
      "mean": 0.47164754736000003,
      "stddev": 0.0151222513969015,
      "median": 0.46643002296,
      "user": 0.7534694,
      "system": 1.1329613799999998,
      "min": 0.45729539846000006,
      "max": 0.5090712294599999
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.3484446235600001,
      "stddev": 0.013791952160907098,
      "median": 0.34964800996,
      "user": 0.3154784,
      "system": 0.7346691800000001,
      "min": 0.32255641846000005,
      "max": 0.36645302346
    },
    {
      "command": "pnpr@main",
      "mean": 0.39231945406,
      "stddev": 0.028375378096916412,
      "median": 0.39854121096000006,
      "user": 0.36174,
      "system": 0.83639658,
      "min": 0.35668097746000005,
      "max": 0.44215099946
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.558 ± 0.034 1.505 1.611 5.92 ± 0.27
pacquet@main 1.555 ± 0.054 1.507 1.656 5.91 ± 0.32
pnpr@HEAD 0.267 ± 0.007 0.255 0.278 1.01 ± 0.05
pnpr@main 0.263 ± 0.011 0.244 0.275 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.55847156256,
      "stddev": 0.03356837809662396,
      "median": 1.5514751714600001,
      "user": 0.8397124,
      "system": 0.9528985999999999,
      "min": 1.5045211089600001,
      "max": 1.61110039496
    },
    {
      "command": "pacquet@main",
      "mean": 1.55503332376,
      "stddev": 0.05398792357228133,
      "median": 1.5353910129600001,
      "user": 0.8302365999999999,
      "system": 0.9286232999999999,
      "min": 1.5074242329600003,
      "max": 1.65589133596
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.26672349996,
      "stddev": 0.006835196201825212,
      "median": 0.26841233046,
      "user": 0.2143214,
      "system": 0.514599,
      "min": 0.25546580896,
      "max": 0.27796215896
    },
    {
      "command": "pnpr@main",
      "mean": 0.26332557846000004,
      "stddev": 0.010775205565311287,
      "median": 0.26614438696,
      "user": 0.2148418,
      "system": 0.4871409,
      "min": 0.24394272196000003,
      "max": 0.27527849796
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 197.2 ± 17.6 173.7 225.7 2.23 ± 0.21
pacquet@main 199.1 ± 31.8 168.6 272.0 2.25 ± 0.36
pnpr@HEAD 88.3 ± 2.2 85.7 92.9 1.00
pnpr@main 89.2 ± 3.6 86.0 98.0 1.01 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.19715088886285712,
      "stddev": 0.01762645209628637,
      "median": 0.19984353072,
      "user": 0.17938221714285715,
      "system": 0.08559278571428572,
      "min": 0.17371897922,
      "max": 0.22567634422000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.19911988752769227,
      "stddev": 0.03177217631446528,
      "median": 0.19136748622000002,
      "user": 0.18786470615384615,
      "system": 0.0727881153846154,
      "min": 0.16863287322,
      "max": 0.27203978422
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.08834706425225806,
      "stddev": 0.00218835058651767,
      "median": 0.08742534422,
      "user": 0.029808989032258062,
      "system": 0.014881112903225809,
      "min": 0.08570773122,
      "max": 0.09293604222
    },
    {
      "command": "pnpr@main",
      "mean": 0.08921085009096773,
      "stddev": 0.003630799756594111,
      "median": 0.08759880222000001,
      "user": 0.031252376129032255,
      "system": 0.01407159677419355,
      "min": 0.08598569922,
      "max": 0.09804053322
    }
  ]
}

Scenario: Isolated linker: peer-heavy resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 644.7 ± 101.6 497.9 814.7 1.01 ± 0.23
pacquet@main 638.5 ± 107.0 485.1 826.1 1.00
pnpm@HEAD 3023.1 ± 161.6 2842.3 3383.7 4.73 ± 0.83
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6446968574466667,
      "stddev": 0.1016367339519456,
      "median": 0.6371690237800001,
      "user": 0.6680319955555556,
      "system": 0.16468994666666664,
      "min": 0.49790217778,
      "max": 0.8147318007800001
    },
    {
      "command": "pacquet@main",
      "mean": 0.6384680771133334,
      "stddev": 0.1070442808287152,
      "median": 0.6282160547800001,
      "user": 0.6662969955555554,
      "system": 0.15515350222222224,
      "min": 0.48509867878,
      "max": 0.8260720827800001
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.0230793827799998,
      "stddev": 0.16163204656757224,
      "median": 2.96476049078,
      "user": 4.726212106666666,
      "system": 0.22477583555555553,
      "min": 2.84226607978,
      "max": 3.38367049878
    }
  ]
}

Scenario: Isolated linker: linked-workspace resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 162.6 ± 3.3 157.8 170.6 1.00
pacquet@main 164.1 ± 4.2 157.5 171.0 1.01 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.16261180579999998,
      "stddev": 0.003298120165605347,
      "median": 0.1623190718,
      "user": 0.12484888588235293,
      "system": 0.07355239411764707,
      "min": 0.1578297678,
      "max": 0.1706382938
    },
    {
      "command": "pacquet@main",
      "mean": 0.16413307085882356,
      "stddev": 0.004188840196531532,
      "median": 0.1639975958,
      "user": 0.12376288588235296,
      "system": 0.07396604117647058,
      "min": 0.1574701768,
      "max": 0.1710169538
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.457 ± 0.086 4.349 4.621 1.28 ± 0.04
pacquet@main 4.503 ± 0.119 4.348 4.714 1.30 ± 0.05
pnpr@HEAD 3.504 ± 0.118 3.399 3.711 1.01 ± 0.04
pnpr@main 3.472 ± 0.099 3.380 3.677 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.4571223431,
      "stddev": 0.08550564894507696,
      "median": 4.441835494799999,
      "user": 1.6659834199999999,
      "system": 1.77325168,
      "min": 4.3485177918,
      "max": 4.6213869288
    },
    {
      "command": "pacquet@main",
      "mean": 4.503004711899999,
      "stddev": 0.1186043586115849,
      "median": 4.4979749493,
      "user": 1.81381002,
      "system": 1.8633563800000001,
      "min": 4.3476652978,
      "max": 4.7136834288
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.5040549653,
      "stddev": 0.11823102865194973,
      "median": 3.4611370913000004,
      "user": 1.5377699199999997,
      "system": 1.6052072800000001,
      "min": 3.3987729438,
      "max": 3.7107809558000002
    },
    {
      "command": "pnpr@main",
      "mean": 3.4720015269,
      "stddev": 0.09936750265124158,
      "median": 3.4348701393,
      "user": 1.46411112,
      "system": 1.5823328799999998,
      "min": 3.3796242898,
      "max": 3.6768769558
    }
  ]
}

Scenario: GVS linker: fresh restore, hot cache + hot store

Same install as the isolated fresh-restore hot/hot scenario, into the shared virtual store, the layout pnpm 12 installs into by default. Scenarios run on separate machines, so compare main and branch within each table.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 117.2 ± 4.6 107.8 125.1 1.00
pacquet@main 118.9 ± 10.6 105.0 142.4 1.01 ± 0.10
pnpr@HEAD 146.0 ± 5.4 139.1 157.6 1.25 ± 0.07
pnpr@main 140.9 ± 7.5 127.8 150.7 1.20 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.11722115071904762,
      "stddev": 0.004581679160008528,
      "median": 0.1181339291,
      "user": 0.15110230952380949,
      "system": 0.12640037142857144,
      "min": 0.10776773610000001,
      "max": 0.1250552571
    },
    {
      "command": "pacquet@main",
      "mean": 0.1189272483857143,
      "stddev": 0.01063674831371178,
      "median": 0.1171886471,
      "user": 0.15104464285714286,
      "system": 0.1365822761904762,
      "min": 0.10502458610000001,
      "max": 0.1423834451
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.1459590704333333,
      "stddev": 0.005403577930248408,
      "median": 0.1443539671,
      "user": 0.16684872222222222,
      "system": 0.15740135555555557,
      "min": 0.1391447871,
      "max": 0.15755725510000002
    },
    {
      "command": "pnpr@main",
      "mean": 0.1408694808777778,
      "stddev": 0.00745289800471132,
      "median": 0.14225295510000002,
      "user": 0.16725094444444444,
      "system": 0.14473463333333333,
      "min": 0.1277807061,
      "max": 0.1507325811
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/15098
Testbedpacquet
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
gvs-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
107.77 ms
(-14.50%)Baseline: 126.05 ms
151.26 ms
(71.25%)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,459.74 ms
(-2.20%)Baseline: 2,515.15 ms
3,018.19 ms
(81.50%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,504.52 ms
(-5.14%)Baseline: 1,586.02 ms
1,903.22 ms
(79.05%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
428.14 ms
(+8.69%)Baseline: 393.89 ms
472.67 ms
(90.58%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
173.72 ms
(-24.75%)Baseline: 230.86 ms
277.03 ms
(62.71%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,275.60 ms
(-0.87%)Baseline: 2,295.60 ms
2,754.72 ms
(82.61%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,348.52 ms
(-0.44%)Baseline: 4,367.66 ms
5,241.19 ms
(82.97%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
182.63 ms
(-23.41%)Baseline: 238.46 ms
286.15 ms
(63.82%)
isolated-linker.linked-workspace-resolve.hot-cache.offline📈 view plot
🚷 view threshold
157.83 ms
(-13.61%)Baseline: 182.69 ms
219.23 ms
(71.99%)
isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
497.90 ms
(-20.20%)Baseline: 623.92 ms
748.70 ms
(66.50%)
isolated-linker.repeat-install.cold-cache.hot-store📈 view plot
🚷 view threshold
5.82 ms
(-14.68%)Baseline: 6.82 ms
8.18 ms
(71.10%)
isolated-linker.repeat-install.hot-cache.hot-store📈 view plot
🚷 view threshold
5.64 ms
(-20.92%)Baseline: 7.13 ms
8.55 ms
(65.90%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/15098
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)
gvs-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
139.14 ms
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,387.95 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
255.47 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
322.56 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
85.71 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,293.21 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,398.77 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
217.58 ms
isolated-linker.repeat-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
7.48 ms
isolated-linker.repeat-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
5.56 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan
zkochan merged commit 63a703f into main Sep 19, 2026
55 checks passed
@zkochan
zkochan deleted the fix-cmd-shim-test-arity branch September 19, 2026 00:56
u9g pushed a commit to u9g/pnpm that referenced this pull request Sep 25, 2026
…ty (pnpm#15098)

pnpm#15041 gave `generate_sh_shim` a `relocatable_root` parameter
and `is_shim_pointing_at` a `shim_path` one. pnpm#14963 branched
before that and merged after it, adding four call sites that still pass
the old argument lists. Each was green on its own base, and their merge
does not compile, so `cargo test` fails on every branch cut from main.

The call sites are all `#[cfg(unix)]`, which is why the Windows Clippy
job stayed green while the Linux and macOS test jobs failed.
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.

2 participants