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:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 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; 4 remain after this review. Important Approval pendingCodeRabbit has no unresolved comments, but it has not reviewed the latest commit. Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.
📝 WalkthroughWalkthroughThe change resolves ChangesCatalog peer resolution
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: 🔵 Low · up to This change resolves catalog-based peer ranges for workspace dependencies, but workspace/file nodes can still bypass recorded dependency-tree reuse when no catalog child range exists, which may reduce reuse in those cases. The PR is mergeable with explicit owner awareness or follow-up on that bounded risk. Sequence Diagram(s)sequenceDiagram
participant CLI
participant Install
participant PeerInspection
participant CatalogResolver
participant WorkspacePackage
CLI->>Install: run install or peers check
Install->>PeerInspection: inspect peers with optional catalog context
PeerInspection->>WorkspacePackage: read peer dependency range
WorkspacePackage->>CatalogResolver: resolve catalog: range
CatalogResolver-->>PeerInspection: resolved range or unchanged range
PeerInspection-->>CLI: peer report or catalog resolution error
Assessment against linked issues
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 QodoResolve catalog peer ranges for workspace packages
AI Description
Diagram
High-Level Assessment
Files changed (13)
|
Confidence Score: 5/5The PR appears safe to merge. The previous ignored-workspace failure is fixed: the CLI flag suppresses workspace discovery, catalog loading returns an empty set without validating the ignored manifest, and peer inspection receives no catalog context, leaving raw catalog ranges to be reported normally. Reviews (6): Last reviewed commit: "perf(resolver): avoid unnecessary catalo..." | Re-trigger Greptile |
Micro-Benchmark ResultsLinux |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #14368 +/- ##
========================================
Coverage 88.70% 88.71%
========================================
Files 697 698 +1
Lines 124272 124418 +146
========================================
+ Hits 110239 110380 +141
- Misses 14033 14038 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Code Review by Qodo
1.
|
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.4611765665,
"stddev": 0.11530987164757305,
"median": 2.4441494528,
"user": 2.2281242199999998,
"system": 2.05717622,
"min": 2.3410735253,
"max": 2.7616616353
},
{
"command": "pacquet@main",
"mean": 2.4598780161000002,
"stddev": 0.12443683607334266,
"median": 2.4319183043,
"user": 2.0066959199999994,
"system": 1.8876069199999996,
"min": 2.3238223953,
"max": 2.6760849723
},
{
"command": "pnpr@HEAD",
"mean": 1.5243869794,
"stddev": 0.12963909683949698,
"median": 1.4610318123000001,
"user": 2.022838019999999,
"system": 1.8956698199999997,
"min": 1.4094944053,
"max": 1.7497742193
},
{
"command": "pnpr@main",
"mean": 1.5669670874000001,
"stddev": 0.07602289635649766,
"median": 1.5526214653000001,
"user": 2.2073310199999994,
"system": 2.03641462,
"min": 1.4520284363,
"max": 1.6989269403000002
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.37226511854,
"stddev": 0.029882270190133613,
"median": 0.37197620004,
"user": 0.38318877999999995,
"system": 0.71460704,
"min": 0.30713746004000003,
"max": 0.40605540504000004
},
{
"command": "pacquet@main",
"mean": 0.35044782454,
"stddev": 0.01560939696934889,
"median": 0.35102339754,
"user": 0.34178328,
"system": 0.74665274,
"min": 0.32619771904,
"max": 0.36842434104
},
{
"command": "pnpr@HEAD",
"mean": 0.36983363043999995,
"stddev": 0.020145532120337168,
"median": 0.36676112104,
"user": 0.3336462800000001,
"system": 0.7320805399999999,
"min": 0.34171262004,
"max": 0.39867190404
},
{
"command": "pnpr@main",
"mean": 0.35078374694000003,
"stddev": 0.03846303419612376,
"median": 0.36594305154,
"user": 0.31912778,
"system": 0.6815625399999999,
"min": 0.29147520204,
"max": 0.39654661504
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.015602809806338798,
"stddev": 0.00235498912869536,
"median": 0.016319027320000002,
"user": 0.0074193965027322395,
"system": 0.008267421857923495,
"min": 0.01080340832,
"max": 0.020962126320000003
},
{
"command": "pacquet@main",
"mean": 0.015055919891428578,
"stddev": 0.0024760315288086376,
"median": 0.015077303320000002,
"user": 0.008088149931972786,
"system": 0.007066589115646258,
"min": 0.009977074320000001,
"max": 0.02055824532
},
{
"command": "pnpr@HEAD",
"mean": 0.015861186246315793,
"stddev": 0.002783737566017491,
"median": 0.015419095320000001,
"user": 0.008112567368421052,
"system": 0.007814448842105264,
"min": 0.010379177319999999,
"max": 0.023742168320000003
},
{
"command": "pnpr@main",
"mean": 0.014961267913749993,
"stddev": 0.0031320599175994365,
"median": 0.014939406320000003,
"user": 0.00785553875,
"system": 0.007187988437499996,
"min": 0.009059960320000001,
"max": 0.02212136332
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.01330981324239521,
"stddev": 0.0028740169481378266,
"median": 0.01292401844,
"user": 0.006165781317365268,
"system": 0.007220527185628739,
"min": 0.00868027044,
"max": 0.025049008440000003
},
{
"command": "pacquet@main",
"mean": 0.013931816917124189,
"stddev": 0.0028878569129943514,
"median": 0.01364921444,
"user": 0.00720635516339869,
"system": 0.006798841830065357,
"min": 0.008925919440000001,
"max": 0.02599608444
},
{
"command": "pnpr@HEAD",
"mean": 0.014753896603934433,
"stddev": 0.0034700617734572054,
"median": 0.014117171440000001,
"user": 0.007304741748633881,
"system": 0.0075188825136612075,
"min": 0.00924833044,
"max": 0.03438218044000001
},
{
"command": "pnpr@main",
"mean": 0.014435526024210521,
"stddev": 0.002655625136515241,
"median": 0.01435483694,
"user": 0.007861801052631576,
"system": 0.006676831157894734,
"min": 0.00891328144,
"max": 0.02110811344
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.04484051186,
"stddev": 0.06563593749871745,
"median": 3.0566913379600003,
"user": 2.8145681799999998,
"system": 2.12281924,
"min": 2.93187121046,
"max": 3.1291786264600003
},
{
"command": "pacquet@main",
"mean": 3.0444296032600007,
"stddev": 0.04417046557209686,
"median": 3.03820715146,
"user": 2.86378398,
"system": 2.13720204,
"min": 2.9721196784600004,
"max": 3.12369888046
},
{
"command": "pnpr@HEAD",
"mean": 1.7055579300600001,
"stddev": 0.15179199989279402,
"median": 1.66598425596,
"user": 2.07960238,
"system": 2.0404661400000004,
"min": 1.54506218546,
"max": 1.90196853546
},
{
"command": "pnpr@main",
"mean": 1.6872047343600003,
"stddev": 0.0971938469070894,
"median": 1.6738326534599999,
"user": 1.9740160799999997,
"system": 1.99514374,
"min": 1.54615032246,
"max": 1.83356307446
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6584455383200001,
"stddev": 0.06282478778398293,
"median": 0.6564413022200001,
"user": 0.83570756,
"system": 0.985854,
"min": 0.5465732802200001,
"max": 0.77603970322
},
{
"command": "pacquet@main",
"mean": 0.6058018166200001,
"stddev": 0.05023486933061646,
"median": 0.6237853237200001,
"user": 0.7823437599999999,
"system": 0.9746282,
"min": 0.48774555322,
"max": 0.6520346182200001
},
{
"command": "pnpr@HEAD",
"mean": 0.41419898682000006,
"stddev": 0.0353775272938521,
"median": 0.42104183872,
"user": 0.32314946,
"system": 0.7169263000000001,
"min": 0.34874861422000003,
"max": 0.45176932022
},
{
"command": "pnpr@main",
"mean": 0.40530216542,
"stddev": 0.010653842924289447,
"median": 0.40725787622,
"user": 0.33350526,
"system": 0.7114757,
"min": 0.38720597222,
"max": 0.42122491022
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.32091397282,
"stddev": 0.057422499470011684,
"median": 2.32800034422,
"user": 1.3667231800000004,
"system": 1.1584932799999998,
"min": 2.22166722322,
"max": 2.39727722122
},
{
"command": "pacquet@main",
"mean": 2.59786328472,
"stddev": 0.0849924018655739,
"median": 2.62224342272,
"user": 1.53446038,
"system": 1.27775718,
"min": 2.44361481222,
"max": 2.73492775622
},
{
"command": "pnpr@HEAD",
"mean": 0.52592390012,
"stddev": 0.02900170626073431,
"median": 0.52131511922,
"user": 0.41919058,
"system": 0.78484658,
"min": 0.48185131322,
"max": 0.56555968922
},
{
"command": "pnpr@main",
"mean": 0.55634253002,
"stddev": 0.24997609488697226,
"median": 0.4930453007200001,
"user": 0.46355968000000003,
"system": 0.99774338,
"min": 0.40833864422000005,
"max": 1.2614348642200002
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.5050385696000002,
"stddev": 0.076903969642686,
"median": 0.5058741250000001,
"user": 0.46613276,
"system": 0.14251447999999997,
"min": 0.368570714,
"max": 0.6517856880000001
},
{
"command": "pacquet@main",
"mean": 0.5195340108000001,
"stddev": 0.055465987048036,
"median": 0.5236378035000001,
"user": 0.47004086,
"system": 0.14986908,
"min": 0.411519301,
"max": 0.6030426640000001
},
{
"command": "pnpr@HEAD",
"mean": 0.18003927386666665,
"stddev": 0.019146003309435205,
"median": 0.18546257700000002,
"user": 0.07206939333333333,
"system": 0.03723124666666666,
"min": 0.13775975000000001,
"max": 0.204861764
},
{
"command": "pnpr@main",
"mean": 0.1652522436666667,
"stddev": 0.02098913415568216,
"median": 0.16663831,
"user": 0.06623859333333333,
"system": 0.029501579999999993,
"min": 0.135567674,
"max": 0.20464768
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.8494820013933333,
"stddev": 0.12434926677618734,
"median": 0.8484098640600001,
"user": 0.79610738,
"system": 0.19841351777777777,
"min": 0.65608329606,
"max": 1.09771478906
},
{
"command": "pacquet@main",
"mean": 0.7789488737266667,
"stddev": 0.10635303567840325,
"median": 0.8179506050600001,
"user": 0.7423114911111112,
"system": 0.19251629555555555,
"min": 0.60833986906,
"max": 0.90317354506
},
{
"command": "pnpm@HEAD",
"mean": 3.75323038306,
"stddev": 0.29250261347496626,
"median": 3.72492471206,
"user": 5.394956046666667,
"system": 0.37221340666666664,
"min": 3.3243080850599998,
"max": 4.25591762706
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.6603924361599995,
"stddev": 0.1372360470024798,
"median": 4.6009853846599995,
"user": 2.44474884,
"system": 2.31338108,
"min": 4.53362331916,
"max": 4.94994808416
},
{
"command": "pacquet@main",
"mean": 5.00184443846,
"stddev": 0.5118556208434965,
"median": 4.879674616659999,
"user": 2.6318705400000004,
"system": 2.58706108,
"min": 4.52481727316,
"max": 6.27639089616
},
{
"command": "pnpr@HEAD",
"mean": 4.07908441106,
"stddev": 0.392440653508223,
"median": 3.9793570546600003,
"user": 2.88893134,
"system": 2.67790238,
"min": 3.6791246011600003,
"max": 4.83911225816
},
{
"command": "pnpr@main",
"mean": 3.6022568958600005,
"stddev": 0.1601252515893565,
"median": 3.55337852116,
"user": 2.07027364,
"system": 1.93480578,
"min": 3.44407927216,
"max": 3.8982986701600004
}
]
}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. Comparable to that scenario head-to-head.
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.15087542055647057,
"stddev": 0.008847663671904758,
"median": 0.14824293038,
"user": 0.18966080470588234,
"system": 0.17422689882352937,
"min": 0.13980645338,
"max": 0.16894502538
},
{
"command": "pacquet@main",
"mean": 0.1757317502261539,
"stddev": 0.025090361221526313,
"median": 0.18015329538,
"user": 0.21989165538461536,
"system": 0.19619599384615385,
"min": 0.13777606538,
"max": 0.21572916738
},
{
"command": "pnpr@HEAD",
"mean": 0.19809785884153847,
"stddev": 0.019056196255934868,
"median": 0.19733267038000002,
"user": 0.21725180923076925,
"system": 0.20957037846153842,
"min": 0.17371549538,
"max": 0.23651901938
},
{
"command": "pnpr@main",
"mean": 0.17545253171333333,
"stddev": 0.01655592178475613,
"median": 0.16936586038,
"user": 0.20317764,
"system": 0.18642950666666666,
"min": 0.15900140938000001,
"max": 0.21984351038
}
]
} |
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 940c07d |
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 0414392 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
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 4ded34a |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Summary
Fixes #14361 for the Rust pnpm CLI by resolving
catalog:ranges inworkspace package peer dependencies before peer matching.
This covers both linked workspace dependencies and injected workspace
dependencies. The TypeScript CLI already resolves these ranges correctly, so
the change restores parity without requiring a TypeScript implementation
change.
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 (Codex, GPT-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
Bug Fixes
pnpm peers checkincorrectly reportingcatalog:peer dependencies as unmet.Tests