Repository navigation
Conversation
Directory resolutions carry no `hasBin` in their generated lockfile metadata, so the pre-computed has-bin set dropped every workspace dependency slot and the deployed project's `node_modules/.bin` came out empty. Close #14899
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change records workspace package bin metadata during deploy, expands bin probing for implicit metadata, and verifies standard and legacy deploys link workspace commands. A changeset declares a patch release for ChangesWorkspace dependency bin linking
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant DeployTest
participant pnpm_deploy
participant deps_restorer
participant node_modules_bin
DeployTest->>pnpm_deploy: run standard or legacy production deploy
pnpm_deploy->>deps_restorer: restore dependencies and link bins
deps_restorer->>node_modules_bin: create workspace dependency binary link
node_modules_bin-->>DeployTest: expose lib-cli
Assessment against linked issues
Suggested labels: Merge Risk: ⚪ Minimal · up to No concrete current-head risk is identified that would block merging. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Git: CodeRabbit could not clone the repository, so clone-backed analysis was skipped and this review may be incomplete. Verify repository clone access, such as SSH credentials, before requesting another full review. If clone access is intentionally unavailable, use 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 QodoLink workspace dependency binaries during deploy
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
|
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14942 +/- ##
==========================================
+ Coverage 90.93% 90.96% +0.02%
==========================================
Files 1268 1270 +2
Lines 170292 170360 +68
==========================================
+ Hits 154850 154961 +111
+ Misses 15442 15399 -43 ☔ 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.31024980444,
"stddev": 0.07659047641867447,
"median": 2.3017903228399996,
"user": 1.2180616199999998,
"system": 1.4254029599999998,
"min": 2.23638353184,
"max": 2.47572961984
},
{
"command": "pacquet@main",
"mean": 2.35399937674,
"stddev": 0.14057789090328326,
"median": 2.28847209034,
"user": 1.15513102,
"system": 1.4011748599999998,
"min": 2.22020414584,
"max": 2.60006283784
},
{
"command": "pnpr@HEAD",
"mean": 1.3925109952399999,
"stddev": 0.13408965265143058,
"median": 1.32338382934,
"user": 1.0997850200000001,
"system": 1.27498976,
"min": 1.28138194284,
"max": 1.63868498484
},
{
"command": "pnpr@main",
"mean": 1.44377033754,
"stddev": 0.12320817441011715,
"median": 1.4416228713400001,
"user": 1.11055342,
"system": 1.2567666599999998,
"min": 1.28367337584,
"max": 1.61927139684
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.22625588696000004,
"stddev": 0.004804732848804838,
"median": 0.22500202786,
"user": 0.22920168,
"system": 0.5653446599999999,
"min": 0.22086894836,
"max": 0.23380308136
},
{
"command": "pacquet@main",
"mean": 0.22528224706,
"stddev": 0.007687447417189402,
"median": 0.22430841036000002,
"user": 0.24816697999999998,
"system": 0.5565228600000001,
"min": 0.21478055736,
"max": 0.24015488736
},
{
"command": "pnpr@HEAD",
"mean": 0.31293765826000003,
"stddev": 0.043056543922349776,
"median": 0.31923342886000006,
"user": 0.34025587999999996,
"system": 0.6878089600000001,
"min": 0.24164962336,
"max": 0.39030114936000004
},
{
"command": "pnpr@main",
"mean": 0.26148238516,
"stddev": 0.058447949080676104,
"median": 0.23965147386000002,
"user": 0.26021627999999997,
"system": 0.61750066,
"min": 0.21476057236,
"max": 0.39085063536000003
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.006641463821627298,
"stddev": 0.0005933757512915023,
"median": 0.006484446840000001,
"user": 0.0041222325984252,
"system": 0.0028898721259842503,
"min": 0.005682260840000001,
"max": 0.009714197840000001
},
{
"command": "pacquet@main",
"mean": 0.0067431757078304285,
"stddev": 0.0005670569196499503,
"median": 0.00669294784,
"user": 0.004312695810473816,
"system": 0.002807731471321697,
"min": 0.005719851840000001,
"max": 0.00884354384
},
{
"command": "pnpr@HEAD",
"mean": 0.007691927735238094,
"stddev": 0.0015038343569919643,
"median": 0.00712531884,
"user": 0.00458821523809524,
"system": 0.003532770190476191,
"min": 0.005793017840000001,
"max": 0.01391001184
},
{
"command": "pnpr@main",
"mean": 0.006701842548206689,
"stddev": 0.0007503794492182097,
"median": 0.006484014840000001,
"user": 0.0039300929483282645,
"system": 0.0031445630395136805,
"min": 0.005734288840000001,
"max": 0.01035227584
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.007699474900594058,
"stddev": 0.0011107024839865911,
"median": 0.007650426960000001,
"user": 0.004730213201320131,
"system": 0.0033839720132013197,
"min": 0.00571605496,
"max": 0.011549788960000001
},
{
"command": "pacquet@main",
"mean": 0.007626561083076924,
"stddev": 0.0012841058189542924,
"median": 0.0072071159600000005,
"user": 0.004863793846153841,
"system": 0.0032002009846153847,
"min": 0.00604724796,
"max": 0.01293408696
},
{
"command": "pnpr@HEAD",
"mean": 0.0068497588061538495,
"stddev": 0.0004029750881559049,
"median": 0.00679978496,
"user": 0.004414004487179488,
"system": 0.0028506591025641032,
"min": 0.00605603396,
"max": 0.008178408960000001
},
{
"command": "pnpr@main",
"mean": 0.006517561456987956,
"stddev": 0.00030851349225895404,
"median": 0.006486562960000001,
"user": 0.0041702722891566275,
"system": 0.002739908554216868,
"min": 0.00596616496,
"max": 0.008362984960000002
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.46572027814,
"stddev": 0.0747072831137282,
"median": 2.4425596991400003,
"user": 1.7174727599999997,
"system": 1.5722020799999998,
"min": 2.42406316964,
"max": 2.67605181864
},
{
"command": "pacquet@main",
"mean": 2.47401892454,
"stddev": 0.07611725381625108,
"median": 2.44833087864,
"user": 1.7461567599999999,
"system": 1.61372188,
"min": 2.42055204864,
"max": 2.64586059564
},
{
"command": "pnpr@HEAD",
"mean": 1.49437645154,
"stddev": 0.10522517656885676,
"median": 1.4635354171400001,
"user": 1.0299647599999997,
"system": 1.2016790799999997,
"min": 1.37333741964,
"max": 1.74759874864
},
{
"command": "pnpr@main",
"mean": 1.4829310566399998,
"stddev": 0.09265422110704924,
"median": 1.46505293914,
"user": 1.03978296,
"system": 1.22812658,
"min": 1.37508958764,
"max": 1.63699449064
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.33324579312,
"stddev": 0.015004432149587146,
"median": 0.33358966672,
"user": 0.49622871999999996,
"system": 0.78941248,
"min": 0.31009780072000004,
"max": 0.36411688472000003
},
{
"command": "pacquet@main",
"mean": 0.33366888922000004,
"stddev": 0.018117573193357345,
"median": 0.32761084122000006,
"user": 0.52770202,
"system": 0.75783698,
"min": 0.31408040272000004,
"max": 0.37370198672000005
},
{
"command": "pnpr@HEAD",
"mean": 0.26396511042000004,
"stddev": 0.013912468533033856,
"median": 0.26664039272000006,
"user": 0.20160471999999996,
"system": 0.5027107799999999,
"min": 0.24210525472000002,
"max": 0.28206066672
},
{
"command": "pnpr@main",
"mean": 0.26992125512000004,
"stddev": 0.014964161520296233,
"median": 0.27060036222000006,
"user": 0.22039062,
"system": 0.4982959800000001,
"min": 0.24865512472,
"max": 0.29481150972000003
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.52706207562,
"stddev": 0.011600093812586655,
"median": 1.52259557872,
"user": 0.74041536,
"system": 0.91761494,
"min": 1.51715522072,
"max": 1.5510514207200001
},
{
"command": "pacquet@main",
"mean": 1.51634973692,
"stddev": 0.012999979230108656,
"median": 1.51546005922,
"user": 0.74463736,
"system": 0.8793246399999999,
"min": 1.48977544972,
"max": 1.5364036167200001
},
{
"command": "pnpr@HEAD",
"mean": 0.24303056082,
"stddev": 0.006470927647101044,
"median": 0.24216963972000002,
"user": 0.18586586,
"system": 0.45188364000000003,
"min": 0.23522244972000003,
"max": 0.25408198172
},
{
"command": "pnpr@main",
"mean": 0.25637950692,
"stddev": 0.005260755133986552,
"median": 0.25674138422,
"user": 0.19393316,
"system": 0.50156874,
"min": 0.24948494672000002,
"max": 0.26375740172
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.18647339072500002,
"stddev": 0.011007600229360766,
"median": 0.18683738710000003,
"user": 0.19648707749999997,
"system": 0.0587642375,
"min": 0.17267220710000003,
"max": 0.20786438510000002
},
{
"command": "pacquet@main",
"mean": 0.19198929078750004,
"stddev": 0.013961576359229214,
"median": 0.1897846736,
"user": 0.19379076499999998,
"system": 0.069705675,
"min": 0.17458942410000003,
"max": 0.21989351710000002
},
{
"command": "pnpr@HEAD",
"mean": 0.08950125075625001,
"stddev": 0.002392087980567775,
"median": 0.0893580651,
"user": 0.03294548374999999,
"system": 0.013011100000000001,
"min": 0.08486995309999999,
"max": 0.0956639621
},
{
"command": "pnpr@main",
"mean": 0.08975018743333334,
"stddev": 0.0023244584894891876,
"median": 0.0895674541,
"user": 0.03375336727272728,
"system": 0.012304533333333334,
"min": 0.0853988861,
"max": 0.0946365031
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.5761240541888889,
"stddev": 0.03354219344820477,
"median": 0.5615134793000001,
"user": 0.5951207066666667,
"system": 0.13835871555555557,
"min": 0.5317901833,
"max": 0.6243165403000001
},
{
"command": "pacquet@main",
"mean": 0.6010000886333333,
"stddev": 0.051287610540759296,
"median": 0.5817678663000001,
"user": 0.624169928888889,
"system": 0.11866560444444445,
"min": 0.5322536333000001,
"max": 0.6726205013000001
},
{
"command": "pnpm@HEAD",
"mean": 2.9309824944111114,
"stddev": 0.12511885904594305,
"median": 2.8964936163,
"user": 4.539807484444444,
"system": 0.23219749333333337,
"min": 2.7851771633,
"max": 3.2041051913
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.18545376226000002,
"stddev": 0.006920068956955731,
"median": 0.18656581146,
"user": 0.14056116666666665,
"system": 0.09499541333333332,
"min": 0.17295255046000002,
"max": 0.19325624246
},
{
"command": "pacquet@main",
"mean": 0.18105973533500003,
"stddev": 0.007340120237683634,
"median": 0.18046174396000003,
"user": 0.13401587499999998,
"system": 0.09407813,
"min": 0.17068943746,
"max": 0.19229417446000002
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.4430314826999995,
"stddev": 0.13391734919631995,
"median": 4.4361977715,
"user": 1.55297206,
"system": 1.5229489399999998,
"min": 4.2771849185,
"max": 4.692224728499999
},
{
"command": "pacquet@main",
"mean": 4.3985173277,
"stddev": 0.12859891961401174,
"median": 4.342034846,
"user": 1.64791546,
"system": 1.6325553400000001,
"min": 4.3103536415,
"max": 4.701753485499999
},
{
"command": "pnpr@HEAD",
"mean": 3.4585487411000004,
"stddev": 0.079535731185403,
"median": 3.4388921615,
"user": 1.47252416,
"system": 1.46760564,
"min": 3.3659918205,
"max": 3.5984962725000003
},
{
"command": "pnpr@main",
"mean": 3.5157787544000003,
"stddev": 0.15633655617761325,
"median": 3.4856765825,
"user": 1.43817906,
"system": 1.4573222399999997,
"min": 3.3360618725,
"max": 3.7595288195000003
}
]
}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.11859495442727272,
"stddev": 0.004777349380556595,
"median": 0.11809881520000001,
"user": 0.14335339454545448,
"system": 0.12568210727272727,
"min": 0.1105752302,
"max": 0.1278425012
},
{
"command": "pacquet@main",
"mean": 0.12004855893684212,
"stddev": 0.005726715178158688,
"median": 0.1183877042,
"user": 0.1493050978947368,
"system": 0.13171338,
"min": 0.1132176332,
"max": 0.1383273552
},
{
"command": "pnpr@HEAD",
"mean": 0.13827435503333332,
"stddev": 0.006814968235400983,
"median": 0.1385881897,
"user": 0.16249138444444444,
"system": 0.1465761022222222,
"min": 0.12826488020000001,
"max": 0.14966440720000002
},
{
"command": "pnpr@main",
"mean": 0.14662672508235292,
"stddev": 0.005088210042641577,
"median": 0.1451701512,
"user": 0.1722419988235294,
"system": 0.16713779176470583,
"min": 0.14038490820000002,
"max": 0.1579429882
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/14942 |
| 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 | 128.26 ms |
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,373.34 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 235.22 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 242.11 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 84.87 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,281.38 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,365.99 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 241.65 ms |
| isolated-linker.repeat-install.cold-cache.hot-store | 📈 view plot | 6.06 ms |
| isolated-linker.repeat-install.hot-cache.hot-store | 📈 view plot | 5.79 ms |
Generated deploy lockfiles now carry definitive bin metadata for workspace directory resolutions. This keeps binless workspaces on the metadata fast path. Legacy rows without the field retain conservative probing. Restore the cross-version rationale on the implicit bin metadata regression test.
|
Addressed the performance finding in commit 839f62d. Newly generated deploy lockfiles now record definitive Written by an agent (Codex, GPT-5.6). |
|
Code review by qodo was updated up to the latest commit 839f62d |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Deploy-generated directory resolutions omitted `hasBin` from their lockfile metadata, so the precomputed has-bin set dropped every workspace dependency slot and the deployed project's `node_modules/.bin` directory came out empty. Record definitive bin metadata when generating workspace directory rows. Probe directory resolutions whose metadata is absent for compatibility with older lockfiles while continuing to skip resolutions explicitly marked `hasBin: false`. Closes pnpm#14899
Summary
pnpm deployin pnpm v12 so workspace directory dependencies without explicithasBinmetadata are checked for commands and linked into the deployed project'snode_modules/.bindirectory.Closes #14899.
Squash Commit Body
Checklist
already linked to it solves it.
are implemented in every affected version.
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.6).
Summary by CodeRabbit
Bug Fixes
pnpm deploynow links command-line binaries provided by workspace dependencies into the deployed project’snode_modules/.bindirectory.Release