Repository navigation
fix(cmd-shim): update the test call sites to the relocatable-shim arity - #15098
Conversation
#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]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pnpm/pnpm/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe changes update three shim test calls to match revised helper signatures. They add relocatable-root arguments and pass the shim path to ChangesShim test helper signature alignment
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Bug fix Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Micro-Benchmark ResultsLinux |
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can describe a rule in plain language on the Rules page and Qodo drafts it for you |
PR Summary by QodoFix Unix cmd-shim tests for relocatable shim signatures
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
|
Integrated-Benchmark Report (Linux)Commit: 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
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
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
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
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
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
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
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
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
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
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
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 storeSame 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.
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
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/15098 |
| 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) |
|---|---|---|
| gvs-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 139.14 ms |
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,387.95 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 255.47 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 322.56 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 85.71 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,293.21 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,398.77 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 217.58 ms |
| isolated-linker.repeat-install.cold-cache.hot-store | 📈 view plot | 7.48 ms |
| isolated-linker.repeat-install.hot-cache.hot-store | 📈 view plot | 5.56 ms |
…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.
Summary
maindoes not compile itspnpm-cmd-shimtests, socargo testfails onevery branch cut from it.
#15041 gave
generate_sh_shimarelocatable_rootparameter andis_shim_pointing_atashim_pathone. #14963 branched before thatand 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 whyRust CI / Clippy / windowsstays green whileTest / ubuntu,Test / macos,Clippy / ubuntuand
Dylintfail.This PR passes
Nonefor the newrelocatable_rootand the shim path for thenew
shim_path, which is what the surrounding call sites already do.Squash Commit Body
Checklist
already linked to it solves it.
are implemented in every affected version.
Written by an agent (Claude Code, claude-opus-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit