Repository navigation
fix(cli): support catalogs in deploy - #12931
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Warning Review limit reached
Next review available in: 16 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthrough
ChangesCatalog-aware deployment
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant Workspace
participant Install
participant Deploy
participant DeployLockfile
participant DeployOutput
Workspace->>Install: Define and install catalog dependency
Install->>Deploy: Provide shared lockfile state
Deploy->>DeployLockfile: Clear catalog snapshots
Deploy->>DeployOutput: Write deployed package and lockfile
DeployOutput-->>Workspace: Dependency present without catalogs
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@pnpm/crates/cli/src/cli_args/deploy.rs`:
- Around line 854-857: Update the TypeScript deploy-lockfile generation in
createDeployFiles.ts to clear or omit the catalogs field before writing the
deployed lockfile, matching the Rust deploy path’s deploy_lockfile.catalogs =
None behavior. Ensure all relevant TypeScript CLI deploy flows use this adjusted
lockfile.
🪄 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: 97c697e6-3926-48a2-9d2f-82f06b20c72a
📒 Files selected for processing (3)
.changeset/deploy-catalog-snapshots.mdpnpm/crates/cli/src/cli_args/deploy.rspnpm/crates/cli/tests/deploy.rs
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12931 +/- ##
==========================================
- Coverage 85.45% 85.44% -0.01%
==========================================
Files 474 474
Lines 74561 74562 +1
==========================================
- Hits 63714 63710 -4
- Misses 10847 10852 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.21641165392,
"stddev": 0.17176002315102415,
"median": 4.20451975352,
"user": 3.88348222,
"system": 3.5340072600000005,
"min": 4.02495895102,
"max": 4.52461538402,
"times": [
4.52461538402,
4.04252949102,
4.03321070702,
4.41581120802,
4.11556326002,
4.02495895102,
4.23168328102,
4.34755366402,
4.25083436702,
4.17735622602
]
},
{
"command": "pacquet@main",
"mean": 4.13420129612,
"stddev": 0.12528971466015687,
"median": 4.1215495440200005,
"user": 3.8603594199999995,
"system": 3.52385096,
"min": 3.93491181902,
"max": 4.34153237002,
"times": [
4.22465638502,
3.93491181902,
4.10155373402,
4.08832062102,
4.34153237002,
4.07838258702,
4.14154535402,
3.98333959202,
4.27490867802,
4.17286182102
]
},
{
"command": "pnpr@HEAD",
"mean": 2.15440504652,
"stddev": 0.11638725917207804,
"median": 2.10893063402,
"user": 2.68837362,
"system": 3.06088216,
"min": 2.01116957702,
"max": 2.3220491390199998,
"times": [
2.2752047700199998,
2.26059143502,
2.05652204702,
2.10330774902,
2.01116957702,
2.1145535190199998,
2.3220491390199998,
2.06784053202,
2.28012319502,
2.05268850202
]
},
{
"command": "pnpr@main",
"mean": 2.14362723242,
"stddev": 0.12463067334266807,
"median": 2.10017647902,
"user": 2.67205772,
"system": 3.06318486,
"min": 2.05390496902,
"max": 2.46001236102,
"times": [
2.46001236102,
2.10017850202,
2.05390496902,
2.05676942602,
2.06151201202,
2.10017445602,
2.1332365430199998,
2.09199115702,
2.24689195202,
2.13160094602
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6593691826800001,
"stddev": 0.021505810602515035,
"median": 0.65408537248,
"user": 0.38795617999999993,
"system": 1.3397797999999999,
"min": 0.63984380348,
"max": 0.70629248948,
"times": [
0.64758712748,
0.70629248948,
0.6429673904800001,
0.65460710948,
0.6421411854800001,
0.6535636354800001,
0.65636248448,
0.6627035234800001,
0.6876230774800001,
0.63984380348
]
},
{
"command": "pacquet@main",
"mean": 0.66003285998,
"stddev": 0.02089948667549677,
"median": 0.65293394648,
"user": 0.40277658,
"system": 1.3274332999999998,
"min": 0.64175817448,
"max": 0.71522626148,
"times": [
0.64995932048,
0.66249846548,
0.65259277248,
0.6594945484800001,
0.64175817448,
0.65327512048,
0.65050699848,
0.71522626148,
0.66842787648,
0.6465890614800001
]
},
{
"command": "pnpr@HEAD",
"mean": 0.73088600138,
"stddev": 0.06937752145496395,
"median": 0.71215957448,
"user": 0.40607267999999996,
"system": 1.3669521,
"min": 0.68567815048,
"max": 0.91963345648,
"times": [
0.7225457364800001,
0.75612740848,
0.71161675948,
0.7175525044800001,
0.68882075048,
0.6993008364800001,
0.6948820214800001,
0.7127023894800001,
0.68567815048,
0.91963345648
]
},
{
"command": "pnpr@main",
"mean": 0.75147618808,
"stddev": 0.11693666005301484,
"median": 0.7224162754800001,
"user": 0.41463067999999986,
"system": 1.3776958000000001,
"min": 0.69131109948,
"max": 1.08090505348,
"times": [
0.69131109948,
0.72805560648,
0.7200267474800001,
0.6941328774800001,
0.7085914734800001,
0.72729552348,
0.72480580348,
0.69792029048,
1.08090505348,
0.7417174054800001
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.29086351716,
"stddev": 0.03888212536726011,
"median": 4.289208051359999,
"user": 3.73741918,
"system": 3.43034202,
"min": 4.216268535859999,
"max": 4.34242446886,
"times": [
4.309412775859999,
4.277557745859999,
4.27751869786,
4.216268535859999,
4.25097510386,
4.32416238486,
4.30085835686,
4.34242446886,
4.27734282386,
4.33211427786
]
},
{
"command": "pacquet@main",
"mean": 4.30001867406,
"stddev": 0.03808593696238424,
"median": 4.29041107686,
"user": 3.8242607799999995,
"system": 3.3963154199999996,
"min": 4.25624871786,
"max": 4.35990084786,
"times": [
4.35799051786,
4.29235539286,
4.26523784986,
4.35990084786,
4.33714907286,
4.267541738859999,
4.28846676086,
4.25624871786,
4.28259511686,
4.2927007248599995
]
},
{
"command": "pnpr@HEAD",
"mean": 2.2137640763600004,
"stddev": 0.11274749347330922,
"median": 2.1861286088600003,
"user": 2.49784968,
"system": 2.9440793199999993,
"min": 2.0649920348600004,
"max": 2.45646142086,
"times": [
2.23816990686,
2.2043631068600003,
2.27816198986,
2.12737933486,
2.16669602386,
2.1678941108600003,
2.30825456786,
2.12526826686,
2.0649920348600004,
2.45646142086
]
},
{
"command": "pnpr@main",
"mean": 2.26432679136,
"stddev": 0.14169435060755897,
"median": 2.24724574586,
"user": 2.48691468,
"system": 2.9227620199999995,
"min": 2.0795366418600003,
"max": 2.47216409486,
"times": [
2.31387085886,
2.18062063286,
2.4300268428600003,
2.0795366418600003,
2.1556671038600004,
2.4032549278600004,
2.15736879086,
2.47216409486,
2.32748725186,
2.1232707678600002
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.38079848204,
"stddev": 0.01056277676734127,
"median": 1.38322876814,
"user": 1.32072668,
"system": 1.71923128,
"min": 1.35470735814,
"max": 1.39356090114,
"times": [
1.3846355281400002,
1.3828995531400001,
1.3878277511400001,
1.39356090114,
1.38029719814,
1.3764077521400002,
1.38760066114,
1.38355798314,
1.35470735814,
1.3764901341400002
]
},
{
"command": "pacquet@main",
"mean": 1.3803946689400002,
"stddev": 0.024347454880860805,
"median": 1.37899085264,
"user": 1.35534668,
"system": 1.7044483799999999,
"min": 1.3487739491400002,
"max": 1.43912897014,
"times": [
1.38049341214,
1.36583520614,
1.43912897014,
1.3487739491400002,
1.37815906614,
1.35785542714,
1.3798226391400001,
1.3925109961400002,
1.3781050951400002,
1.38326192814
]
},
{
"command": "pnpr@HEAD",
"mean": 0.6857864260400001,
"stddev": 0.031211622444953586,
"median": 0.6796855401399999,
"user": 0.34331728000000006,
"system": 1.3018077799999999,
"min": 0.66064795714,
"max": 0.76992914914,
"times": [
0.67793770914,
0.6666752071400001,
0.67133992514,
0.66900464614,
0.76992914914,
0.68320985514,
0.68143337114,
0.66064795714,
0.6957025771400001,
0.68198386314
]
},
{
"command": "pnpr@main",
"mean": 0.7361553478400001,
"stddev": 0.09374933306278341,
"median": 0.7075736906400001,
"user": 0.37313937999999996,
"system": 1.3293921800000001,
"min": 0.69372695614,
"max": 1.0020780231400002,
"times": [
0.69906958314,
0.70642635614,
0.69372695614,
0.70316439214,
0.70872102514,
0.71774049614,
0.70129260114,
1.0020780231400002,
0.71277319514,
0.71656085014
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.06360930362,
"stddev": 0.05272196208188228,
"median": 3.0509467592200004,
"user": 1.7861319999999998,
"system": 1.9801716999999996,
"min": 3.01027973872,
"max": 3.19846761372,
"times": [
3.06704167372,
3.07490108572,
3.04790602572,
3.03290493272,
3.04334567672,
3.02236749172,
3.05398749272,
3.19846761372,
3.01027973872,
3.08489130472
]
},
{
"command": "pacquet@main",
"mean": 3.0942170809200005,
"stddev": 0.06522318944916397,
"median": 3.07432902722,
"user": 1.8480552,
"system": 1.9750822,
"min": 3.02839371872,
"max": 3.25496202672,
"times": [
3.07332785272,
3.04671253772,
3.02839371872,
3.07340379772,
3.12713745572,
3.04007124472,
3.07525425672,
3.25496202672,
3.11456537572,
3.10834254272
]
},
{
"command": "pnpr@HEAD",
"mean": 0.6711876956199999,
"stddev": 0.005121284949122185,
"median": 0.6721987252199999,
"user": 0.34634909999999985,
"system": 1.2905674,
"min": 0.66147735272,
"max": 0.67782117272,
"times": [
0.67193085272,
0.66447719372,
0.67246659772,
0.66905647572,
0.67470173972,
0.67328734272,
0.67782117272,
0.67016169572,
0.66147735272,
0.67649653272
]
},
{
"command": "pnpr@main",
"mean": 0.69507134942,
"stddev": 0.046407383649909796,
"median": 0.68171456322,
"user": 0.3647169,
"system": 1.2959988,
"min": 0.66803339272,
"max": 0.82474233872,
"times": [
0.69237648672,
0.67213110472,
0.68454660672,
0.68930411372,
0.67468419472,
0.67888251972,
0.67323906072,
0.66803339272,
0.82474233872,
0.69277367572
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6612082646,
"stddev": 0.009896051133930906,
"median": 0.6621921605000001,
"user": 0.6319671,
"system": 0.14694127999999998,
"min": 0.6467718210000001,
"max": 0.675522924,
"times": [
0.6526331390000001,
0.647100573,
0.675522924,
0.661797673,
0.666822476,
0.662586648,
0.6591522000000001,
0.6718768970000001,
0.667818295,
0.6467718210000001
]
},
{
"command": "pacquet@main",
"mean": 0.6456827645,
"stddev": 0.00882414325788148,
"median": 0.6446824290000001,
"user": 0.608159,
"system": 0.15351077999999999,
"min": 0.630213789,
"max": 0.6644197660000001,
"times": [
0.64137158,
0.641965136,
0.642866548,
0.6644197660000001,
0.643872002,
0.64622946,
0.646613992,
0.630213789,
0.6454928560000001,
0.653782516
]
},
{
"command": "pnpr@HEAD",
"mean": 0.10796931448000002,
"stddev": 0.0008539806573430647,
"median": 0.10789311800000001,
"user": 0.028562900000000006,
"system": 0.018923419999999996,
"min": 0.106607212,
"max": 0.11068761,
"times": [
0.10701291400000001,
0.10872754600000001,
0.107083223,
0.10787476300000001,
0.10815139600000001,
0.10806905800000001,
0.10765100300000001,
0.10942829300000001,
0.10738418200000001,
0.10718518700000002,
0.10790359000000001,
0.10786688800000001,
0.10835359300000001,
0.10855226600000001,
0.10724327400000001,
0.108001545,
0.108312634,
0.10773645400000001,
0.11068761,
0.106607212,
0.107361622,
0.10882943800000001,
0.10799938800000002,
0.10789311800000001,
0.107316665
]
},
{
"command": "pnpr@main",
"mean": 0.10830294116000001,
"stddev": 0.0016597036760625532,
"median": 0.10807700600000002,
"user": 0.028108739999999997,
"system": 0.019145659999999995,
"min": 0.10665879900000001,
"max": 0.115662784,
"times": [
0.107974729,
0.10758927700000001,
0.10837801200000001,
0.10734984400000001,
0.10820633800000001,
0.108529573,
0.10858769500000001,
0.10757415000000001,
0.10795464300000002,
0.10804415600000002,
0.10968947600000001,
0.10812787100000001,
0.10679316200000001,
0.108023452,
0.107649532,
0.10807888000000002,
0.10834197300000001,
0.10863190600000001,
0.10665879900000001,
0.10855649600000002,
0.10700129300000001,
0.10811353100000001,
0.10807700600000002,
0.107978951,
0.115662784
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 6.891120326559999,
"stddev": 0.0723808889249071,
"median": 6.89412312846,
"user": 4.057977459999999,
"system": 3.8018844799999996,
"min": 6.7597545954600005,
"max": 6.98675750646,
"times": [
6.87195518846,
6.93491220146,
6.82045970546,
6.85705604646,
6.7597545954600005,
6.95300330446,
6.96646652846,
6.84454712046,
6.98675750646,
6.9162910684600005
]
},
{
"command": "pacquet@main",
"mean": 7.01907913016,
"stddev": 0.17753497269244792,
"median": 6.939572267960001,
"user": 4.12897736,
"system": 3.8410548799999993,
"min": 6.84648880946,
"max": 7.36044529446,
"times": [
7.13752005846,
6.9445645134600005,
7.36044529446,
7.17808091146,
6.84648880946,
6.9345800224600005,
7.15986270146,
6.84966669546,
6.84858421446,
6.93099808046
]
},
{
"command": "pnpr@HEAD",
"mean": 5.003334980060001,
"stddev": 0.10262401815745897,
"median": 5.0140771094600005,
"user": 2.8065871600000003,
"system": 3.29079738,
"min": 4.83720379546,
"max": 5.13076492346,
"times": [
5.12904589546,
5.05587232746,
5.0129341834600005,
4.86349016346,
4.83720379546,
5.0152200354600005,
5.13076492346,
4.96261847146,
4.93980158346,
5.08639842146
]
},
{
"command": "pnpr@main",
"mean": 4.97602250076,
"stddev": 0.061354252072152865,
"median": 4.96534485446,
"user": 2.80569226,
"system": 3.3028758799999998,
"min": 4.87820752646,
"max": 5.07389660046,
"times": [
5.07389660046,
4.87820752646,
5.02421918846,
4.95514576046,
4.93655668546,
4.9507664274600005,
5.04818400246,
4.97554394846,
5.00346564446,
4.91423922346
]
}
]
} |
|
| Branch | pr/12931 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 2,213.76 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 671.19 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 685.79 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 107.97 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 2,154.41 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 5,003.33 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 730.89 ms |
b44b04e to
f6bb4b9
Compare
Confidence Score: 5/5Safe to merge — the fix is a targeted, additive one-liner in both the Rust and TypeScript implementations, fully covered by new tests that were verified to fail before the fix. The change is minimal and well-contained: removing an irrelevant field from the deploy lockfile, consistent with how every other workspace-scoped field is already stripped. The updated TypeScript test now correctly exercises the full install→deploy pipeline, and the new Rust E2E test adds end-to-end coverage. No correctness risk identified in either implementation. No files require special attention. Reviews (3): Last reviewed commit: "chore: include releasing.commands and pa..." | Re-trigger Greptile |
|
CI triage on the current run:
|
f6bb4b9 to
0e6733f
Compare
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
…geset This is a parity change touching both stacks, so the changeset names the affected TypeScript package and the Rust wrapper alongside pnpm. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Code review by qodo was updated up to the latest commit 0bcd190 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
Summary:
Testing:
Full just ready is currently blocked on upstream main because sysinfo 0.39.3 requires Rust 1.95 while rust-toolchain.toml pins Rust 1.93.1.
Summary by CodeRabbit
pnpm deploynow supports workspaces that use catalog-based dependency specifiers.catalogssnapshot.