Repository navigation
Conversation
PR Summary by Qodofeat(update): interactive selection for global update groups
AI Description
Diagram
High-Level Assessment
Files changed (13)
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the current code and regression coverage resolve both previously reported global lockfile lookup concerns. Reviews (8): Last reviewed commit: "test(global): assert the interactive pro..." | Re-trigger Greptile |
Micro-Benchmark ResultsLinux |
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
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 (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough
ChangesInteractive global update
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant UpdateCommand
participant GlobalGroupSelector
participant User
participant GlobalUpdateHandler
UpdateCommand->>GlobalGroupSelector: discover outdated global groups
GlobalGroupSelector->>User: show selectable update groups
User-->>GlobalGroupSelector: choose package-group hashes
GlobalGroupSelector-->>UpdateCommand: return selected hashes
UpdateCommand->>GlobalUpdateHandler: update selected groups
Assessment against linked issues
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 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #13428 +/- ##
==========================================
+ Coverage 88.11% 88.13% +0.01%
==========================================
Files 609 611 +2
Lines 99150 99372 +222
==========================================
+ Hits 87366 87578 +212
- Misses 11784 11794 +10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Code review by qodo was updated up to the latest commit 527a577 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit 2a8386e |
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.78592133414,
"stddev": 0.17556321975979455,
"median": 2.7574373105400003,
"user": 2.54278326,
"system": 1.91174508,
"min": 2.55915971004,
"max": 3.06754013704,
"times": [
2.69009673204,
2.55915971004,
2.61232148204,
2.67465264404,
2.96035172504,
2.8247778890400004,
2.8962495770400003,
2.94650185804,
2.62756158704,
3.06754013704
]
},
{
"command": "pacquet@main",
"mean": 2.72228937514,
"stddev": 0.1911821779108189,
"median": 2.72119687104,
"user": 2.34019736,
"system": 1.8129953800000003,
"min": 2.50683887404,
"max": 3.05944697304,
"times": [
2.8791202640400004,
2.73359380104,
2.70879994104,
2.59087497704,
2.52380624204,
2.50683887404,
2.53106361104,
2.94657383304,
2.7427752350400003,
3.05944697304
]
},
{
"command": "pnpr@HEAD",
"mean": 1.6289423276400001,
"stddev": 0.19833617484290317,
"median": 1.5613008390400003,
"user": 1.5236752599999996,
"system": 1.60292328,
"min": 1.43774384104,
"max": 1.9322750480400002,
"times": [
1.8525711940400003,
1.4661008480400002,
1.9322750480400002,
1.6221911260400002,
1.89103732404,
1.43774384104,
1.4693745960400002,
1.4397051850400002,
1.5004105520400002,
1.6780135620400003
]
},
{
"command": "pnpr@main",
"mean": 1.66211391384,
"stddev": 0.17615276929743215,
"median": 1.6877128895400002,
"user": 1.3920780599999998,
"system": 1.49536648,
"min": 1.4212942800400001,
"max": 1.9383181560400002,
"times": [
1.4212942800400001,
1.9383181560400002,
1.7140621770400002,
1.78450863104,
1.46982882304,
1.7517124100400001,
1.4646597970400002,
1.56776584304,
1.84762541904,
1.6613636020400002
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.33781692864,
"stddev": 0.02765238351219017,
"median": 0.33251358424,
"user": 0.2892038,
"system": 0.64962654,
"min": 0.30959785374,
"max": 0.40037378774,
"times": [
0.31891240774,
0.31227349374,
0.32504933574,
0.34293999374,
0.30959785374,
0.32186559974,
0.34318648674,
0.36399249474,
0.33997783274,
0.40037378774
]
},
{
"command": "pacquet@main",
"mean": 0.37307703884,
"stddev": 0.026076186305571368,
"median": 0.37010601424,
"user": 0.3332919,
"system": 0.6998799399999999,
"min": 0.34339770474,
"max": 0.42406444774,
"times": [
0.36117834474,
0.34739950174,
0.34339770474,
0.38915683074,
0.42406444774,
0.38300178774,
0.39665698674,
0.34574397374,
0.37903368374,
0.36113712674
]
},
{
"command": "pnpr@HEAD",
"mean": 0.38793885444000004,
"stddev": 0.01573448933414872,
"median": 0.38105886324,
"user": 0.3415444,
"system": 0.7005894399999999,
"min": 0.37142271874,
"max": 0.42142459574,
"times": [
0.38008028474,
0.39347060474,
0.42142459574,
0.37507571974,
0.37142271874,
0.40056897574,
0.37984665474,
0.37515390574,
0.40030764274,
0.38203744174
]
},
{
"command": "pnpr@main",
"mean": 0.38398355754,
"stddev": 0.020755377248605916,
"median": 0.37950263674,
"user": 0.3146788,
"system": 0.7219817399999999,
"min": 0.35953607074,
"max": 0.42081337374,
"times": [
0.38222885174,
0.41380592574,
0.39928993574,
0.42081337374,
0.37247718474,
0.36692278374,
0.36575617574,
0.37908016074,
0.37992511274,
0.35953607074
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.90821726684,
"stddev": 0.050787413248894964,
"median": 2.90027336024,
"user": 2.29486174,
"system": 1.92766962,
"min": 2.8447453247400003,
"max": 2.9833140947400003,
"times": [
2.95670936474,
2.9833140947400003,
2.94615562774,
2.88090075274,
2.86165897074,
2.85696826674,
2.8447453247400003,
2.91964596774,
2.96054549174,
2.87152880674
]
},
{
"command": "pacquet@main",
"mean": 2.93930000864,
"stddev": 0.0890536492804928,
"median": 2.95932208574,
"user": 2.3901423399999997,
"system": 1.94587772,
"min": 2.82690758174,
"max": 3.0785999797400003,
"times": [
2.82690758174,
2.84639658574,
2.85796489074,
2.85244889374,
2.9645403637400003,
3.00334360074,
3.04415401874,
3.0785999797400003,
2.9566686787400003,
2.96197549274
]
},
{
"command": "pnpr@HEAD",
"mean": 1.7273396268399999,
"stddev": 0.12570797225171526,
"median": 1.71927170324,
"user": 1.7501199399999998,
"system": 1.87067522,
"min": 1.54640115274,
"max": 1.92041769374,
"times": [
1.70353814674,
1.54640115274,
1.57455058574,
1.79029207874,
1.88878434774,
1.79770998974,
1.72783762074,
1.92041769374,
1.7107057857399999,
1.6131588667399999
]
},
{
"command": "pnpr@main",
"mean": 1.6420840131399999,
"stddev": 0.14361177496167732,
"median": 1.56972685724,
"user": 1.42238544,
"system": 1.51817502,
"min": 1.50578731574,
"max": 1.94908331774,
"times": [
1.69664536674,
1.71447739874,
1.52910200374,
1.57858856174,
1.50578731574,
1.56086515274,
1.79337735874,
1.94908331774,
1.54788286374,
1.54503079174
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.49388111198000006,
"stddev": 0.027395372245381577,
"median": 0.5011484160799999,
"user": 0.6771038199999999,
"system": 0.8084746599999999,
"min": 0.45590622758,
"max": 0.52927139558,
"times": [
0.51683128658,
0.47653520758,
0.52927139558,
0.49343527558,
0.46897852658,
0.51641567458,
0.51599096358,
0.45658500558,
0.45590622758,
0.50886155658
]
},
{
"command": "pacquet@main",
"mean": 0.61373938558,
"stddev": 0.04950915660790267,
"median": 0.61873105958,
"user": 0.8562808199999999,
"system": 0.94852856,
"min": 0.51982091758,
"max": 0.66940502658,
"times": [
0.66940502658,
0.61307817658,
0.55142323358,
0.51982091758,
0.61343313258,
0.65567866758,
0.58261235558,
0.64424327258,
0.66367008658,
0.6240289865800001
]
},
{
"command": "pnpr@HEAD",
"mean": 0.4634470411800001,
"stddev": 0.04886638677301015,
"median": 0.46609446758000006,
"user": 0.33910762,
"system": 0.7353917600000001,
"min": 0.38865473858,
"max": 0.55079665158,
"times": [
0.45983222558000003,
0.42405973158,
0.48151637958,
0.47400965258,
0.47235670958000003,
0.52314467958,
0.55079665158,
0.44403258358000003,
0.38865473858,
0.41606705958
]
},
{
"command": "pnpr@main",
"mean": 0.39557186477999995,
"stddev": 0.030303481930035132,
"median": 0.39438081208,
"user": 0.28220532,
"system": 0.6604299600000001,
"min": 0.33979714358,
"max": 0.44978491458000003,
"times": [
0.40476363358,
0.41928859658,
0.41662454958,
0.37963279958,
0.39713620058,
0.39019256558,
0.44978491458000003,
0.39162542358,
0.36687282058,
0.33979714358
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.8811235357599998,
"stddev": 0.05099699874165878,
"median": 1.8873570481600002,
"user": 0.99685848,
"system": 0.9050892999999999,
"min": 1.81723127366,
"max": 1.96958444266,
"times": [
1.90180323166,
1.91414940166,
1.9018727226599998,
1.92997509266,
1.8543875726599999,
1.82309599666,
1.96958444266,
1.8729108646600001,
1.82622475866,
1.81723127366
]
},
{
"command": "pacquet@main",
"mean": 1.8291207875599997,
"stddev": 0.04733207006329402,
"median": 1.81797985766,
"user": 0.8998461799999999,
"system": 0.8369857999999999,
"min": 1.77881037266,
"max": 1.95475051866,
"times": [
1.83502127366,
1.83558050666,
1.77881037266,
1.79518405566,
1.8183331376599998,
1.95475051866,
1.81762657766,
1.81482809766,
1.82374334666,
1.81732998866
]
},
{
"command": "pnpr@HEAD",
"mean": 0.45511425826000007,
"stddev": 0.05142604407320434,
"median": 0.44138986465999996,
"user": 0.34434568,
"system": 0.7078595,
"min": 0.39563549766,
"max": 0.55397211566,
"times": [
0.40564620066,
0.44074902266,
0.41751597266,
0.45310876766,
0.5029543726600001,
0.5117822166600001,
0.55397211566,
0.42774770966000003,
0.44203070666,
0.39563549766
]
},
{
"command": "pnpr@main",
"mean": 0.45305511436,
"stddev": 0.03892311154567219,
"median": 0.44391031066,
"user": 0.33507548000000004,
"system": 0.752544,
"min": 0.40624284266,
"max": 0.5295561266600001,
"times": [
0.5295561266600001,
0.46518507866000003,
0.42904422166,
0.42966392766,
0.45713884666,
0.43121727366,
0.42041438966,
0.40624284266,
0.5054850886600001,
0.45660334766
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.31026960768,
"stddev": 0.02823153586183287,
"median": 0.30967997838000005,
"user": 0.28766522,
"system": 0.11519937999999999,
"min": 0.26687962038,
"max": 0.34377900038,
"times": [
0.33322925438,
0.34377900038,
0.33895597938,
0.29695599738,
0.30603918338,
0.26687962038,
0.31332077338000003,
0.26878529838,
0.29748629638,
0.33726467338
]
},
{
"command": "pacquet@main",
"mean": 0.31661701858,
"stddev": 0.03747729899210552,
"median": 0.31285964588,
"user": 0.29181051999999996,
"system": 0.11138968,
"min": 0.25135210938,
"max": 0.37140867038,
"times": [
0.30692894738,
0.36078750938,
0.29247671238,
0.29931828638,
0.34979366838,
0.31879034438,
0.37140867038,
0.33201295438,
0.25135210938,
0.28330098338
]
},
{
"command": "pnpr@HEAD",
"mean": 0.10823837986,
"stddev": 0.0066785977913337985,
"median": 0.10758844338000001,
"user": 0.033810440000000004,
"system": 0.014496580000000004,
"min": 0.09689699438,
"max": 0.12817827538,
"times": [
0.11297597138,
0.10913141138,
0.11294100538,
0.11511547038,
0.10951531438,
0.10701789138000001,
0.09974503338,
0.10488646538,
0.11027203438000001,
0.11087681338000001,
0.11382470338,
0.11812241438,
0.11218664038000001,
0.10494100938,
0.10491692338,
0.10417933438,
0.10266404138,
0.10318017438,
0.10513664738,
0.10861304138,
0.10758844338000001,
0.10419274038000001,
0.09886070238,
0.09689699438,
0.12817827538
]
},
{
"command": "pnpr@main",
"mean": 0.10945791902285713,
"stddev": 0.009890469452794157,
"median": 0.10720964938,
"user": 0.032218798571428564,
"system": 0.01736186571428571,
"min": 0.09477894738,
"max": 0.13039350738000002,
"times": [
0.10116214538,
0.10074282538,
0.10277754638,
0.10863188738,
0.11052303738000001,
0.11866913338,
0.10508986938,
0.12729544338,
0.12295673538,
0.11885018438,
0.10578741138,
0.10487888138,
0.10317479338,
0.09840999338,
0.10980300238,
0.12170560938000001,
0.12316301438,
0.10942375938,
0.13039350738000002,
0.09803684138,
0.10202758438000001,
0.09477894738,
0.10038359938000001,
0.12197993738,
0.11220226938,
0.10955809138,
0.10200113438,
0.10041454738
]
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.3897034450577779,
"stddev": 0.5563291871319369,
"median": 1.26295346328,
"user": 1.2948251533333333,
"system": 0.27517246444444443,
"min": 0.74943799328,
"max": 2.54344871228,
"times": [
0.92366777328,
1.03412654628,
1.26295346328,
1.92717822228,
2.54344871228,
1.53781566728,
0.74943799328,
1.13586608328,
1.39283654428
]
},
{
"command": "pacquet@main",
"mean": 1.0748017449466665,
"stddev": 0.22426855167432558,
"median": 1.11146327328,
"user": 1.0090298199999999,
"system": 0.19676479777777775,
"min": 0.81448969128,
"max": 1.44851978628,
"times": [
1.16366168328,
0.89096233028,
1.17826792128,
1.11146327328,
1.44851978628,
0.81448969128,
0.91518781828,
0.83478636228,
1.31587683828
]
},
{
"command": "pnpm@HEAD",
"mean": 3.555744420280001,
"stddev": 0.3758702820771515,
"median": 3.4579705892800003,
"user": 5.377977931111111,
"system": 0.33928335333333337,
"min": 3.15332859128,
"max": 4.38233478628,
"times": [
3.54611529328,
3.4579705892800003,
3.3558614552800003,
3.24008358828,
3.89669323228,
3.5533475782800004,
4.38233478628,
3.41596466828,
3.15332859128
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.55404027112,
"stddev": 0.12367080243352403,
"median": 4.49980041132,
"user": 1.8663423599999998,
"system": 1.39638778,
"min": 4.42845199782,
"max": 4.77034821182,
"times": [
4.47941606482,
4.47223088782,
4.76105643882,
4.52018475782,
4.53998969082,
4.47649001582,
4.62513701282,
4.77034821182,
4.46709763282,
4.42845199782
]
},
{
"command": "pacquet@main",
"mean": 4.51781275342,
"stddev": 0.0916863445873839,
"median": 4.48174864632,
"user": 1.7892168599999998,
"system": 1.3686858799999997,
"min": 4.42627839582,
"max": 4.70178124582,
"times": [
4.4485997488199995,
4.49164827382,
4.54544046382,
4.44808877682,
4.65024712682,
4.70178124582,
4.52730478182,
4.46688970182,
4.4718490188199995,
4.42627839582
]
},
{
"command": "pnpr@HEAD",
"mean": 3.50999797172,
"stddev": 0.08750802758480125,
"median": 3.46973092782,
"user": 1.1541953599999997,
"system": 1.28091878,
"min": 3.44964366382,
"max": 3.71073789682,
"times": [
3.71073789682,
3.45580161682,
3.47342125782,
3.44964366382,
3.51492888982,
3.49055963482,
3.62333540982,
3.4519992138199997,
3.46351153582,
3.46604059782
]
},
{
"command": "pnpr@main",
"mean": 3.52630851682,
"stddev": 0.08652676827632982,
"median": 3.49519865082,
"user": 1.15451346,
"system": 1.24793788,
"min": 3.45478843682,
"max": 3.71544853482,
"times": [
3.60507362682,
3.45636800182,
3.71544853482,
3.46534498782,
3.4690818658199998,
3.49274597182,
3.45478843682,
3.50328122282,
3.49765132982,
3.60330118982
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13428 |
| 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,474.15 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 302.43 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 315.11 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 88.72 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,372.13 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,483.66 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 277.51 ms |
Summary
Adds support for
pnpm update --global --interactivein both the TypeScript CLI and the Rust pnpm port.Global install groups are presented as the selection unit. Each option summarizes the outdated packages in that group, and only selected groups are updated. Empty global stores and empty selections exit without changing anything.
Prompt labels are sanitized before rendering so local or registry metadata cannot inject terminal control characters.
Also makes the concurrent selector-resolution test tolerate the valid case where an auxiliary packument request is skipped.
Closes #13360.
Squash Commit Body
Checklist
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).
Summary by CodeRabbit
New Features
pnpm update --global.Bug Fixes