Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe change composes catalog and override lockfile rewrites with other fast-update operations. It adds safety checks for catalog conflicts, converts the composition path to asynchronous execution, updates Rust lockfile reuse, and adds regression coverage. ChangesCatalog and override composition
Estimated code review effort: 4 (Complex) | ~45 minutes Assessment against linked issues
Sequence Diagram(s)sequenceDiagram
participant Install
participant DriftClassifier
participant tryComposeFastUpdates
participant CatalogRewrite
participant OverrideRewrite
participant Lockfile
Install->>DriftClassifier: classify catalog, override, and other drift
DriftClassifier->>tryComposeFastUpdates: pass composable drift and resolver options
tryComposeFastUpdates->>CatalogRewrite: apply catalog rewrites
CatalogRewrite-->>tryComposeFastUpdates: return updated lockfile state
tryComposeFastUpdates->>OverrideRewrite: apply override rewrites
OverrideRewrite-->>tryComposeFastUpdates: return composed lockfile state
tryComposeFastUpdates->>Lockfile: store the fast update
Lockfile-->>Install: return update result
Possibly related PRs
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 |
PR Summary by QodoCompose catalogs/overrides fast rewrites into lockfile drift pipeline
AI Description
Diagram
High-Level Assessment
Files changed (15)
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (6): Last reviewed commit: "fix: tolerate an absent `pnpm.overrides`..." | Re-trigger Greptile |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts (1)
159-205: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winAdd the removal-override composition case to the TypeScript tests.
This test covers a catalog edit with a version-moving override. The new pacquet CLI test at
pnpm/crates/cli/tests/suite/lockfile_resolution_reuse.rslines 315-382 covers a catalog edit with anis-positive: '-'removal override in the same install.Add the equivalent TypeScript scenario. Use a catalog-managed parent with the optional
is-positivedependency. Widen the catalog range, add the removal override, and verify that the fast path preserves the locked catalog version while pruningis-positivewithout registry access.As per coding guidelines, behavior changes that span both implementations must keep test scenarios and coverage synchronized. As per path instructions, require meaningful regression coverage in both stacks.
🤖 Prompt for 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. In `@pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts` around lines 159 - 205, Add a TypeScript fast-update test alongside “simultaneous catalog and override changes are absorbed in one pass” using a catalog-managed parent with optional is-positive, then widen the catalog range and apply the is-positive: '-' removal override in the second install. Track requested packages and assert no registry resolution for the retained parent version, while verifying the lockfile keeps that catalog version and removes is-positive from its dependencies.Sources: Coding guidelines, Path instructions
🤖 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/package-manager/src/install_with_fresh_lockfile/resolve.rs`:
- Around line 304-323: Mirror the catalog/override conflict guards across all
affected sites: in
pnpm/crates/package-manager/src/install_with_fresh_lockfile/resolve.rs (lines
304-323), update try_fast_update_overrides to reject root overrides targeting
packages present in lockfile.catalogs while preserving the parent selector
exclusion, and update try_fast_update_catalog_versions to accept
parsed_overrides and reject catalog moves whose alias is targeted by a root
override. Apply the equivalent guards in
pnpm11/installing/deps-installer/src/install/tryFastUpdateOverrides.ts (lines
72-85) and pass and use parsed overrides in
pnpm11/installing/deps-installer/src/install/tryFastUpdateCatalogVersions.ts
(line 66). Add synchronized regression tests covering both conflict directions.
---
Outside diff comments:
In `@pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts`:
- Around line 159-205: Add a TypeScript fast-update test alongside “simultaneous
catalog and override changes are absorbed in one pass” using a catalog-managed
parent with optional is-positive, then widen the catalog range and apply the
is-positive: '-' removal override in the second install. Track requested
packages and assert no registry resolution for the retained parent version,
while verifying the lockfile keeps that catalog version and removes is-positive
from its dependencies.
🪄 Autofix
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: 1a6ad4b1-2048-4d57-b717-4de5455c7781
📒 Files selected for processing (15)
.changeset/composed-catalog-and-override-rewrites.mdpnpm/crates/cli/tests/suite/lockfile_resolution_reuse.rspnpm/crates/package-manager/src/fast_update_catalog_versions.rspnpm/crates/package-manager/src/install_with_fresh_lockfile/resolve.rspnpm11/installing/deps-installer/src/install/index.tspnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.tspnpm11/installing/deps-installer/src/install/tryFastUpdateCatalogVersions.tspnpm11/installing/deps-installer/src/install/tryFastUpdateOverrides.tspnpm11/installing/deps-installer/test/install/catalogFastUpdate.tspnpm11/installing/deps-installer/test/install/catalogVersionFastUpdate.tspnpm11/installing/deps-installer/test/install/composedFastUpdate.tspnpm11/installing/deps-installer/test/install/ignoredOptionalDependencies.tspnpm11/installing/deps-installer/test/install/importerGroupMoveFastUpdate.tspnpm11/installing/deps-installer/test/install/importerRemovalFastUpdate.tspnpm11/installing/deps-installer/test/install/lockedVersionReuse.ts
💤 Files with no reviewable changes (1)
- pnpm/crates/package-manager/src/fast_update_catalog_versions.rs
Micro-Benchmark ResultsLinux |
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13804 +/- ##
==========================================
- Coverage 88.26% 88.23% -0.04%
==========================================
Files 624 625 +1
Lines 102058 102628 +570
==========================================
+ Hits 90084 90549 +465
- Misses 11974 12079 +105 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Code review by qodo was updated up to the latest commit 6543538 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
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. 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.47600172516,
"stddev": 0.12268567215666105,
"median": 2.4001798791600004,
"user": 1.63471136,
"system": 1.3655173799999998,
"min": 2.36657052766,
"max": 2.6455405076600003,
"times": [
2.3735140446600003,
2.41198991066,
2.3775463666600003,
2.37614012666,
2.61623107066,
2.36657052766,
2.6281021366600004,
2.6455405076600003,
2.5760127126600003,
2.3883698476600004
]
},
{
"command": "pacquet@main",
"mean": 2.58448638276,
"stddev": 0.16351749531864548,
"median": 2.60708692516,
"user": 1.6880985599999998,
"system": 1.38328628,
"min": 2.36202500366,
"max": 2.80510633466,
"times": [
2.39212624166,
2.54418460866,
2.62400084566,
2.62304331166,
2.80510633466,
2.7462654156600004,
2.77151450766,
2.36202500366,
2.5911305386600003,
2.38546701966
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5573169633600004,
"stddev": 0.1075740439247441,
"median": 1.5503512051600001,
"user": 1.08566766,
"system": 1.1831346799999998,
"min": 1.38313629966,
"max": 1.7250624816600002,
"times": [
1.3991538006600002,
1.5525029006600002,
1.5481995096600003,
1.5448149096600001,
1.38313629966,
1.66815861266,
1.5365304046600001,
1.7250624816600002,
1.6437067026600003,
1.57190401166
]
},
{
"command": "pnpr@main",
"mean": 1.60894640406,
"stddev": 0.14110376936791577,
"median": 1.6162363211600002,
"user": 1.08448376,
"system": 1.1919432799999998,
"min": 1.38500404466,
"max": 1.8099109056600002,
"times": [
1.71428550766,
1.58850987366,
1.8099109056600002,
1.7581825816600003,
1.7081646836600002,
1.44949048466,
1.5392871436600002,
1.6439627686600002,
1.4926660466600001,
1.38500404466
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.27838748588000006,
"stddev": 0.018924662368393314,
"median": 0.26901321228,
"user": 0.26085474,
"system": 0.54020534,
"min": 0.26023082378,
"max": 0.31001180578000004,
"times": [
0.26023082378,
0.26926526278,
0.30208239978,
0.30391443278,
0.31001180578000004,
0.26418963478,
0.26681817978000005,
0.26876116178000004,
0.26788689378,
0.27071426378
]
},
{
"command": "pacquet@main",
"mean": 0.2509571138800001,
"stddev": 0.01248842585813062,
"median": 0.25352578978000007,
"user": 0.20845003999999995,
"system": 0.5076200399999999,
"min": 0.23443664278000004,
"max": 0.26881552478000004,
"times": [
0.26217799278000004,
0.25973912678000005,
0.26881552478000004,
0.25762412978000004,
0.26109882978000004,
0.23732437578000004,
0.24159269178000004,
0.23733437478000002,
0.24942744978000003,
0.23443664278000004
]
},
{
"command": "pnpr@HEAD",
"mean": 0.28429235508,
"stddev": 0.007243920152591472,
"median": 0.28402258328,
"user": 0.24258154000000004,
"system": 0.5631481399999999,
"min": 0.26839152578000003,
"max": 0.29655700478,
"times": [
0.29655700478,
0.28832930678,
0.28576797878000004,
0.28989917578,
0.28265683378,
0.28300658278,
0.28138599878000004,
0.28189055978000005,
0.28503858378,
0.26839152578000003
]
},
{
"command": "pnpr@main",
"mean": 0.27252659038,
"stddev": 0.008636175260630362,
"median": 0.27188291078000004,
"user": 0.23008183999999998,
"system": 0.5208924399999999,
"min": 0.25812227878000005,
"max": 0.28716779578,
"times": [
0.27186989178000004,
0.27983281178,
0.27189592978000005,
0.26648328878000005,
0.25812227878000005,
0.26391045878,
0.27648146378000005,
0.26932436378,
0.28716779578,
0.28017762078
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.64564553334,
"stddev": 0.033186706131477964,
"median": 2.64972124094,
"user": 1.65394436,
"system": 1.4146198,
"min": 2.5801880339400003,
"max": 2.70141516394,
"times": [
2.65025679494,
2.62330450394,
2.62901436494,
2.5801880339400003,
2.65233264694,
2.64918568694,
2.66655141794,
2.6760051059400003,
2.62820161394,
2.70141516394
]
},
{
"command": "pacquet@main",
"mean": 2.6669909305400004,
"stddev": 0.07654046723632968,
"median": 2.65411413194,
"user": 1.7961647600000004,
"system": 1.4086574,
"min": 2.57451883294,
"max": 2.81951305394,
"times": [
2.67347773594,
2.81951305394,
2.73931372794,
2.6928195019400003,
2.63475052794,
2.59859396594,
2.5999458739400003,
2.7172477069400003,
2.61972837794,
2.57451883294
]
},
{
"command": "pnpr@HEAD",
"mean": 1.6120162146400001,
"stddev": 0.14081253465351762,
"median": 1.6211680704400002,
"user": 1.2224942600000002,
"system": 1.3009299,
"min": 1.4528724459400002,
"max": 1.85577949394,
"times": [
1.4528724459400002,
1.6943366319400002,
1.4874827329400002,
1.46319756794,
1.7032035949400002,
1.85577949394,
1.6851632199400002,
1.73814014594,
1.5571729209400003,
1.4828133919400002
]
},
{
"command": "pnpr@main",
"mean": 1.5784751672400001,
"stddev": 0.11888158384607815,
"median": 1.5290949874400002,
"user": 1.2550705599999998,
"system": 1.3540193,
"min": 1.44295402194,
"max": 1.81253706694,
"times": [
1.6059338419400002,
1.6583089019400001,
1.50336814494,
1.72138602694,
1.44295402194,
1.51202141594,
1.48390226294,
1.5461685589400003,
1.4981714299400002,
1.81253706694
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.48539788920000004,
"stddev": 0.013593388830970663,
"median": 0.48512679589999996,
"user": 0.6605156,
"system": 0.76262206,
"min": 0.4631955539,
"max": 0.5102482229,
"times": [
0.4802361529,
0.4859272009,
0.4995597059,
0.4916113829,
0.4685068639,
0.4631955539,
0.4849266739,
0.5102482229,
0.4853269179,
0.4844402169
]
},
{
"command": "pacquet@main",
"mean": 0.4673562829,
"stddev": 0.02141590171625345,
"median": 0.46382425839999997,
"user": 0.651708,
"system": 0.7418335600000001,
"min": 0.4394225949,
"max": 0.5060207439000001,
"times": [
0.4654517259,
0.5006795369,
0.5060207439000001,
0.46811234090000003,
0.4394225949,
0.4726438229,
0.4474462269,
0.4526671779,
0.4621967909,
0.4589218679
]
},
{
"command": "pnpr@HEAD",
"mean": 0.3267664327,
"stddev": 0.018230665956144622,
"median": 0.3295566349,
"user": 0.23823089999999997,
"system": 0.54847916,
"min": 0.3016517929,
"max": 0.3483803709,
"times": [
0.3383277219,
0.3207855479,
0.3167351129,
0.3046826959,
0.3016517929,
0.3082965469,
0.3483803709,
0.34497192590000003,
0.3433198719,
0.3405127399
]
},
{
"command": "pnpr@main",
"mean": 0.3255085607,
"stddev": 0.009401273284991948,
"median": 0.3222216444,
"user": 0.22665260000000004,
"system": 0.5638626600000001,
"min": 0.3150118039,
"max": 0.3459891529,
"times": [
0.3350080849,
0.3280797459,
0.3231943179,
0.3187386699,
0.3173966599,
0.3150118039,
0.3211070639,
0.3459891529,
0.3212489709,
0.3293111369
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.81311650382,
"stddev": 0.02256622501333594,
"median": 1.81517575212,
"user": 0.92192604,
"system": 0.8520314799999997,
"min": 1.77960654362,
"max": 1.84035390562,
"times": [
1.81939979862,
1.8320835166199998,
1.84035390562,
1.81095170562,
1.77960654362,
1.83359690862,
1.7967163446199998,
1.83685596162,
1.79656179162,
1.78503856162
]
},
{
"command": "pacquet@main",
"mean": 1.78199371372,
"stddev": 0.016861061613327788,
"median": 1.7810633191199998,
"user": 0.89970014,
"system": 0.7950931800000001,
"min": 1.75699887062,
"max": 1.81141659062,
"times": [
1.77970099162,
1.79079850762,
1.76016743262,
1.80213283362,
1.75699887062,
1.77472066362,
1.78565949262,
1.7759161076199999,
1.81141659062,
1.78242564662
]
},
{
"command": "pnpr@HEAD",
"mean": 0.34582972872,
"stddev": 0.009403023182134982,
"median": 0.34153443112000004,
"user": 0.24683123999999998,
"system": 0.5897418799999999,
"min": 0.33707045262,
"max": 0.36697662262,
"times": [
0.34330881162000004,
0.35595517762000006,
0.34179535862000004,
0.34046396862000006,
0.33924769662000004,
0.35128246062,
0.36697662262,
0.33707045262,
0.34092323462,
0.34127350362000003
]
},
{
"command": "pnpr@main",
"mean": 0.32728505202,
"stddev": 0.012518680617712918,
"median": 0.32615933112000006,
"user": 0.24261974,
"system": 0.55002828,
"min": 0.31143068362000004,
"max": 0.34517301562,
"times": [
0.33663173562000004,
0.32746462662000003,
0.31328390762,
0.31852611862,
0.33476244162,
0.34517301562,
0.34447254462000004,
0.32485403562000004,
0.31143068362000004,
0.31625141062000006
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.21347976244,
"stddev": 0.015227979029736492,
"median": 0.21464571144000003,
"user": 0.19113844666666663,
"system": 0.05996223999999999,
"min": 0.18945343744,
"max": 0.23768892644000003,
"times": [
0.19320386644,
0.20628997344000002,
0.23213737244000002,
0.23768892644000003,
0.22684760144000002,
0.22653462044000003,
0.22812965744000002,
0.21897035344000002,
0.21381404544000002,
0.21464571144000003,
0.19364994744000003,
0.18945343744,
0.20551218644000002,
0.21638851644,
0.19893022044000003
]
},
{
"command": "pacquet@main",
"mean": 0.20224401705538464,
"stddev": 0.014595451014954285,
"median": 0.20675565944000002,
"user": 0.16927334923076923,
"system": 0.06097740923076925,
"min": 0.18068483044000003,
"max": 0.23364589544000003,
"times": [
0.21436261944,
0.21192186744000002,
0.20675565944000002,
0.18339798344000002,
0.23364589544000003,
0.20906856044000002,
0.19734864844000002,
0.18068483044000003,
0.18801605844000002,
0.18981842544000002,
0.20693968644000002,
0.19934734644000002,
0.20786464044000003
]
},
{
"command": "pnpr@HEAD",
"mean": 0.08762214007636367,
"stddev": 0.001317915945919301,
"median": 0.08756351444000002,
"user": 0.021166761818181817,
"system": 0.008736187878787877,
"min": 0.08472062544000002,
"max": 0.09169024544000001,
"times": [
0.08694447044,
0.09052070144000002,
0.08945330844000002,
0.08765796444000001,
0.08833657444000001,
0.08738343744000002,
0.09169024544000001,
0.08572196644,
0.08721548044,
0.08649861844000001,
0.08652381444000001,
0.08758053744000001,
0.08848912944000001,
0.08756351444000002,
0.08823315744000002,
0.08514568744,
0.08777776744000002,
0.08759600644000001,
0.08872750944,
0.08472062544000002,
0.08763887644000001,
0.08684749544,
0.08732251044000001,
0.08721335444000002,
0.08806498944,
0.08758361344000001,
0.08747889444000001,
0.08682608544,
0.08790304444000001,
0.08742723744000001,
0.08868525844000001,
0.08740599844000001,
0.08735274744000002
]
},
{
"command": "pnpr@main",
"mean": 0.08854969489454545,
"stddev": 0.0020594723344267117,
"median": 0.08844039644000001,
"user": 0.02184670121212121,
"system": 0.009692590303030301,
"min": 0.08453113944000001,
"max": 0.09349697844000002,
"times": [
0.08664943144000001,
0.08453113944000001,
0.08742194744000001,
0.08715250944000001,
0.08771347744,
0.08823684344000002,
0.08844039644000001,
0.09093575144000002,
0.08726775744000001,
0.08708116644000001,
0.08625053944000001,
0.08782769244000001,
0.08882262744000001,
0.08878766244000001,
0.08674888844,
0.08795111544,
0.08862251144000001,
0.09117869844000001,
0.08625714144,
0.08745562144,
0.08863953244000002,
0.09349697844000002,
0.09007117044000001,
0.08589612144000001,
0.08882662544000001,
0.09190665144000001,
0.09089084644,
0.08562454944000002,
0.08991730144000001,
0.09156759244000001,
0.09119550044000001,
0.08870660844000001,
0.09006753444000001
]
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.8011403607111112,
"stddev": 0.11923172343592829,
"median": 0.7900081186000001,
"user": 0.7648942755555556,
"system": 0.12875735555555556,
"min": 0.6224162526,
"max": 0.9586778366,
"times": [
0.7900081186000001,
0.9286282676000001,
0.8024766716,
0.6224162526,
0.7404285886,
0.9586778366,
0.6773812736,
0.9392485456,
0.7509976916000001
]
},
{
"command": "pacquet@main",
"mean": 0.8103102969333333,
"stddev": 0.1300371431059469,
"median": 0.8045718796000001,
"user": 0.75677972,
"system": 0.12331013333333332,
"min": 0.6031259036000001,
"max": 0.9919882826,
"times": [
0.9763404286,
0.8820993076000001,
0.9919882826,
0.7137690296,
0.8045718796000001,
0.8671898556000001,
0.6031259036000001,
0.7195396466,
0.7341683386000001
]
},
{
"command": "pnpm@HEAD",
"mean": 3.1009730591555553,
"stddev": 0.193972420289132,
"median": 3.0860107376,
"user": 4.713615386666667,
"system": 0.29219002222222223,
"min": 2.8802362316,
"max": 3.4103701286,
"times": [
2.9027588446,
3.0345123305999997,
3.0860107376,
3.1280352676,
2.9412373406,
2.8802362316,
3.4103701286,
3.3931797545999998,
3.1324168966
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.57040457468,
"stddev": 0.1272402180023754,
"median": 4.53757928538,
"user": 1.9138556400000002,
"system": 1.4256790000000001,
"min": 4.43449617338,
"max": 4.84971694338,
"times": [
4.69087079238,
4.6229050453800005,
4.84971694338,
4.49404139638,
4.43449617338,
4.60037975838,
4.49104756138,
4.56160642038,
4.44542950538,
4.51355215038
]
},
{
"command": "pacquet@main",
"mean": 4.60650502558,
"stddev": 0.1674350471985381,
"median": 4.5186283633799995,
"user": 2.02149484,
"system": 1.5054956999999998,
"min": 4.43488706638,
"max": 4.84956982038,
"times": [
4.73953962038,
4.53201054038,
4.84911415138,
4.43488706638,
4.50524618638,
4.44051572538,
4.7349881723800005,
4.4926070433800005,
4.48657192938,
4.84956982038
]
},
{
"command": "pnpr@HEAD",
"mean": 3.54084457768,
"stddev": 0.061360507629797605,
"median": 3.54255159588,
"user": 1.34171914,
"system": 1.2913665999999997,
"min": 3.47790739738,
"max": 3.68235840738,
"times": [
3.4943815373800002,
3.5756182483800005,
3.68235840738,
3.5412402853800002,
3.55890138138,
3.48462102138,
3.4892948093800005,
3.47790739738,
3.5438629063800002,
3.56025978238
]
},
{
"command": "pnpr@main",
"mean": 3.57950015718,
"stddev": 0.1388043938429008,
"median": 3.5204390113800006,
"user": 1.2752856399999997,
"system": 1.3043624999999999,
"min": 3.4439235273800004,
"max": 3.7961346013800004,
"times": [
3.6821644423800004,
3.4439235273800004,
3.79414619438,
3.45093421938,
3.5032013883800004,
3.48031330038,
3.6431420453800003,
3.4633652183800003,
3.5376766343800004,
3.7961346013800004
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13804 |
| 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 | 1,452.87 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 337.07 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 301.65 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 84.72 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,383.14 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,477.91 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 268.39 ms |
|
Addressed the outside-diff note from the earlier CodeRabbit review (the one it
Written by an agent (Claude Code, claude-opus-5). |
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 `@pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts`:
- Around line 255-256: Extend the install test’s pruning assertions to also
verify that no key in written.packages starts with is-positive@, matching the
existing written.snapshots check and confirming stale package metadata is
removed from the lockfile.
🪄 Autofix
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: 298248e3-f9ee-4a94-a8f5-6dfddd464ca0
📒 Files selected for processing (1)
pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts
|
Code review by qodo was updated up to the latest commit c41d31d |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit a85daa5 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Found 4 test failures on Blacksmith runners: Failures
|
The file arrived with the new-workspace-project handler, after the composed pipeline had become async, so its four fallback assertions were comparing a promise to `false`. `toBe` accepts anything, so only a run catches it.
The check hoisted the read out of the fast-path block, so a caller that leaves the option undefined now reaches it on every install rather than only when the fast path opens. The type says the field is required, but this file already guards it elsewhere.
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Code review by qodo was updated up to the latest commit b0bd7e1 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
`tryComposeFastUpdates` returns a promise since #13804 made it compose the catalogs and overrides rewrites, so the added tests were asserting on the promise object rather than on its result. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light.png)
Summary
catalogsandoverrideswere the last two fast rewrites that still had to bethe only change in a run. Everything else was folded into the composed pipeline
by #13766, so editing
pnpm.overrideswhile also removing a dependency— or changing a catalog entry in the same commit as a range bump — re-resolved
the whole graph even though either change alone is rewritten in place.
Both now join the pipeline, running last so their guards see the packages a full
resolution would see, with catalogs before overrides. The two conditions that
made them exclusive stay as gates on the whole run: an override whose value is a
catalog:reference, and a lockfile carrying atimesection.While covering the new catalogs × overrides interaction I found two lockfiles the
rewrites could already write wrong, both reachable before this change: an
override moving a package a catalog entry records left the entry naming the
version the override had just pruned, and a catalog entry moving a package an
unscoped override pins moved it past the pinned version. Each now hands the move
to the resolver; both have a regression test.
pacquet composes the two the same way, in the reuse seed it hands the resolver
(
lockfile_reuse_seed), with a CLI test that fails without the change. Itslockfile is always rebuilt from that resolution, catalog snapshots included, so
the two wrong-lockfile cases have no counterpart there and need no mirror.
Closes #13799. Part of #13696.
Squash Commit Body
Checklist
already linked to it solves it.
pnpm/port, or the description notes what still needs porting.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 (Claude Code, claude-opus-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit