Repository navigation
Conversation
|
Warning Review limit reachedNext included review available in 1 minute. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: pnpm/pnpm/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (8)
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 |
Micro-Benchmark ResultsLinux |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15418 +/- ##
==========================================
- Coverage 91.82% 91.80% -0.02%
==========================================
Files 1428 1431 +3
Lines 192970 193332 +362
==========================================
+ Hits 177192 177497 +305
- Misses 15778 15835 +57 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Same-run regression checkHEAD and main are measured on the same runner. The tolerance is 5% of the main median or 2 ms, whichever is larger. A regression requires both the median slowdown and the gap between the fastest retained HEAD sample and slowest retained main sample to exceed this tolerance, after trimming up to 10% from each tail. Suspected regressions are rerun once with target order reversed and only fail if reproduced. This conservative noise guard is not a statistical confidence interval. Inconclusive rows do not fail the check. They remain visible for performance review. Bencher retains absolute minimum timings for historical tracking; historical alerts do not gate this PR. Sequential measurements can still be affected by runner drift.
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 tracks absolute minimum latency; PR regression checks compare HEAD and main samples from the same runner. Historical timing alerts do not gate PRs. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.50862836154,
"stddev": 0.13612952770925824,
"median": 2.52527893094,
"user": 1.9798724399999998,
"system": 1.7808581799999996,
"min": 2.32702667644,
"max": 2.70989904344
},
{
"command": "pacquet@main",
"mean": 2.5197529233399996,
"stddev": 0.13116900860032965,
"median": 2.48733320044,
"user": 2.25328264,
"system": 1.97111728,
"min": 2.38482494444,
"max": 2.73747511944
},
{
"command": "pnpr@HEAD",
"mean": 1.51035324634,
"stddev": 0.10094517239076174,
"median": 1.51279311994,
"user": 2.1104514400000003,
"system": 1.92180468,
"min": 1.37668904044,
"max": 1.6917048344399999
},
{
"command": "pnpr@main",
"mean": 1.5655609854399999,
"stddev": 0.10441469244288029,
"median": 1.54390387444,
"user": 2.16036064,
"system": 2.03272258,
"min": 1.41110544144,
"max": 1.71930371344
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.31237641569999997,
"stddev": 0.03007463806676164,
"median": 0.31018506440000004,
"user": 0.34777326000000003,
"system": 0.689522,
"min": 0.27506243890000004,
"max": 0.3845568139
},
{
"command": "pacquet@main",
"mean": 0.29002295530000005,
"stddev": 0.017640744471769602,
"median": 0.2897214199,
"user": 0.33981176,
"system": 0.6389131000000001,
"min": 0.2622639989,
"max": 0.3098397149
},
{
"command": "pnpr@HEAD",
"mean": 0.3228327126,
"stddev": 0.02781352371390983,
"median": 0.32304373890000004,
"user": 0.33798165999999996,
"system": 0.6826026000000001,
"min": 0.2829464049,
"max": 0.38171093790000005
},
{
"command": "pnpr@main",
"mean": 0.3552009801,
"stddev": 0.0345701051003781,
"median": 0.3459485094,
"user": 0.38214446,
"system": 0.7311696000000001,
"min": 0.3039367009,
"max": 0.4216727959
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.01192095130222222,
"stddev": 0.0018870963397986393,
"median": 0.011608703440000001,
"user": 0.006790042222222223,
"system": 0.005860728355555554,
"min": 0.00855579044,
"max": 0.01942334044
},
{
"command": "pacquet@main",
"mean": 0.012146662331774893,
"stddev": 0.0020386377355876067,
"median": 0.011733178440000002,
"user": 0.006662702077922077,
"system": 0.006245262683982683,
"min": 0.008647984440000001,
"max": 0.02222638144
},
{
"command": "pnpr@HEAD",
"mean": 0.01171699629650224,
"stddev": 0.0019202483691920212,
"median": 0.01149525944,
"user": 0.006836327085201788,
"system": 0.005600270313901347,
"min": 0.008460460440000001,
"max": 0.01934856844
},
{
"command": "pnpr@main",
"mean": 0.011725028360168071,
"stddev": 0.0024806671151217153,
"median": 0.011374471940000002,
"user": 0.00700478420168067,
"system": 0.005373819327731093,
"min": 0.007307438440000001,
"max": 0.02170826544
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.020626382655145627,
"stddev": 0.004525136405352266,
"median": 0.020028911160000003,
"user": 0.011420441941747572,
"system": 0.010183500970873787,
"min": 0.01369778116,
"max": 0.03677784516
},
{
"command": "pacquet@main",
"mean": 0.01743321086666667,
"stddev": 0.003181232374995746,
"median": 0.01732124016,
"user": 0.009887673333333336,
"system": 0.008486361333333334,
"min": 0.01055017016,
"max": 0.024666480160000004
},
{
"command": "pnpr@HEAD",
"mean": 0.018299053505679005,
"stddev": 0.004995162510980906,
"median": 0.01857283666,
"user": 0.010104988148148147,
"system": 0.009090908641975308,
"min": 0.00861363416,
"max": 0.030163414160000002
},
{
"command": "pnpr@main",
"mean": 0.014399360660000004,
"stddev": 0.0029247179010315257,
"median": 0.01403686316,
"user": 0.007596365800000005,
"system": 0.007588110999999997,
"min": 0.00970215716,
"max": 0.02452516416
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.6558391487199993,
"stddev": 0.10882752336969169,
"median": 2.6391717015199996,
"user": 2.2503237599999997,
"system": 1.7307063399999998,
"min": 2.5350076755199997,
"max": 2.84163218352
},
{
"command": "pacquet@main",
"mean": 2.60078828832,
"stddev": 0.06555371449646477,
"median": 2.59829423452,
"user": 2.15346386,
"system": 1.6663471399999996,
"min": 2.51743466452,
"max": 2.75219272552
},
{
"command": "pnpr@HEAD",
"mean": 1.5287418474199999,
"stddev": 0.10560953510257816,
"median": 1.49813342702,
"user": 1.28857486,
"system": 1.3373960399999996,
"min": 1.41112082152,
"max": 1.76404572652
},
{
"command": "pnpr@main",
"mean": 1.5440269948199998,
"stddev": 0.1285855266847568,
"median": 1.49612003102,
"user": 1.1638823600000001,
"system": 1.26446244,
"min": 1.41383679152,
"max": 1.7981835755200002
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.45756270366,
"stddev": 0.03582121875274016,
"median": 0.45116371326000004,
"user": 0.65850338,
"system": 0.71416724,
"min": 0.41487356926,
"max": 0.51996602526
},
{
"command": "pacquet@main",
"mean": 0.4640153647600001,
"stddev": 0.06351285993728958,
"median": 0.43595010176000004,
"user": 0.6493419800000001,
"system": 0.74410364,
"min": 0.38827009326,
"max": 0.59622960126
},
{
"command": "pnpr@HEAD",
"mean": 0.33523717646000006,
"stddev": 0.017702379755028686,
"median": 0.33378582126,
"user": 0.29844738,
"system": 0.5988022399999999,
"min": 0.30245953526,
"max": 0.36519648726000004
},
{
"command": "pnpr@main",
"mean": 0.32433099746000005,
"stddev": 0.026424143027348277,
"median": 0.31700476276,
"user": 0.25555248,
"system": 0.58473194,
"min": 0.29664804526000005,
"max": 0.38721898126000004
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.8214522900400003,
"stddev": 0.05816109216332685,
"median": 1.83036933504,
"user": 1.20648836,
"system": 1.07508656,
"min": 1.69917094404,
"max": 1.8950788840400001
},
{
"command": "pacquet@main",
"mean": 1.78071749104,
"stddev": 0.04001709639061017,
"median": 1.78374208704,
"user": 1.16918356,
"system": 1.0225908599999998,
"min": 1.71421090004,
"max": 1.8508854750400001
},
{
"command": "pnpr@HEAD",
"mean": 0.37554722184,
"stddev": 0.05682610857073479,
"median": 0.36388255954000004,
"user": 0.34249606,
"system": 0.7155104599999998,
"min": 0.32579104504000006,
"max": 0.51446091604
},
{
"command": "pnpr@main",
"mean": 0.35871803334,
"stddev": 0.015724096249416817,
"median": 0.35812182654,
"user": 0.3055006599999999,
"system": 0.6673259599999999,
"min": 0.34271422004,
"max": 0.39340765704
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.26362952324,
"stddev": 0.03827518487810054,
"median": 0.25820031784,
"user": 0.28574851999999995,
"system": 0.07980968,
"min": 0.22403081634000002,
"max": 0.34247638834000005
},
{
"command": "pacquet@main",
"mean": 0.3087905666127273,
"stddev": 0.057200096282666264,
"median": 0.30036841134000003,
"user": 0.3296620927272727,
"system": 0.11083536181818182,
"min": 0.23334328534,
"max": 0.40508272134
},
{
"command": "pnpr@HEAD",
"mean": 0.12167468949789477,
"stddev": 0.016187623440677004,
"median": 0.11499991534000001,
"user": 0.05496824105263159,
"system": 0.023682548421052628,
"min": 0.10589107834000001,
"max": 0.15827988134
},
{
"command": "pnpr@main",
"mean": 0.12222190610923081,
"stddev": 0.01645169250793713,
"median": 0.11856366034000002,
"user": 0.05594181999999999,
"system": 0.024864872307692305,
"min": 0.10358503934,
"max": 0.17400252334000002
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.8645406468622223,
"stddev": 0.170575618153155,
"median": 0.8190667506400001,
"user": 0.8880855733333332,
"system": 0.18184779777777776,
"min": 0.6449044096400001,
"max": 1.21875462264
},
{
"command": "pacquet@main",
"mean": 0.7652158849733334,
"stddev": 0.11243368454446163,
"median": 0.7460956776400001,
"user": 0.7909595733333333,
"system": 0.18167279777777778,
"min": 0.5758882876400001,
"max": 0.9394648126400001
},
{
"command": "pnpm@HEAD",
"mean": 3.5662551553066666,
"stddev": 0.22085982609562854,
"median": 3.49129070664,
"user": 5.521166795555555,
"system": 0.25944357555555553,
"min": 3.32957376964,
"max": 4.05276057864
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.18868219341428574,
"stddev": 0.0049965549406561695,
"median": 0.1882012912,
"user": 0.14668899142857142,
"system": 0.08693931999999997,
"min": 0.17917661220000003,
"max": 0.19746049820000003
},
{
"command": "pacquet@main",
"mean": 0.1961111328,
"stddev": 0.02010697592679023,
"median": 0.18859680120000002,
"user": 0.1453303533333333,
"system": 0.09790898666666668,
"min": 0.17822760020000003,
"max": 0.25567191720000004
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.61485173452,
"stddev": 0.14831823987176598,
"median": 4.59039321052,
"user": 2.00117624,
"system": 1.85947584,
"min": 4.46247483102,
"max": 4.98570817602
},
{
"command": "pacquet@main",
"mean": 4.905044114920001,
"stddev": 0.2776435289265451,
"median": 4.86049551102,
"user": 2.31284374,
"system": 2.0558299399999997,
"min": 4.59888670902,
"max": 5.39738256702
},
{
"command": "pnpr@HEAD",
"mean": 3.53796457702,
"stddev": 0.11144251045642979,
"median": 3.4798535470200003,
"user": 1.70040084,
"system": 1.58227144,
"min": 3.4377465050200002,
"max": 3.79273688302
},
{
"command": "pnpr@main",
"mean": 3.53383603252,
"stddev": 0.19911474862823714,
"median": 3.4448586260200003,
"user": 1.7642787399999995,
"system": 1.6124825400000002,
"min": 3.39066046602,
"max": 4.03865734402
}
]
}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.
Confirmation (reversed target order)
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.23334620624181818,
"stddev": 0.022506887464347345,
"median": 0.22831759706,
"user": 0.21287112181818185,
"system": 0.19441646727272727,
"min": 0.19482691606,
"max": 0.27805387806
},
{
"command": "pacquet@main",
"mean": 0.18402778226,
"stddev": 0.025975416090178054,
"median": 0.18159956856,
"user": 0.22633853999999992,
"system": 0.19531874,
"min": 0.15996783106,
"max": 0.24813877706
},
{
"command": "pnpr@HEAD",
"mean": 0.18970140505999994,
"stddev": 0.010809656492951965,
"median": 0.19351466006,
"user": 0.22572940153846155,
"system": 0.20930973999999997,
"min": 0.17338926306,
"max": 0.20611895606
},
{
"command": "pnpr@main",
"mean": 0.18597868491714284,
"stddev": 0.014269332454175946,
"median": 0.18363518606,
"user": 0.20460701142857146,
"system": 0.21040645428571425,
"min": 0.17112454906,
"max": 0.22564906706
}
],
"confirmation": {
"results": [
{
"command": "pnpr@main",
"mean": 0.1857696563430769,
"stddev": 0.015784607219137138,
"median": 0.18768548142000002,
"user": 0.23179141846153842,
"system": 0.1734151123076923,
"min": 0.16486948242000002,
"max": 0.21027011142000002
},
{
"command": "pnpr@HEAD",
"mean": 0.18634031626615383,
"stddev": 0.022103420312145627,
"median": 0.18601595742000002,
"user": 0.21896057230769225,
"system": 0.20122503538461536,
"min": 0.14730463542000002,
"max": 0.21567728042000003
},
{
"command": "pacquet@main",
"mean": 0.17186950562,
"stddev": 0.01109229101744008,
"median": 0.17136441842000003,
"user": 0.20842968,
"system": 0.20232475333333333,
"min": 0.15127874042000003,
"max": 0.19530822342
},
{
"command": "pacquet@HEAD",
"mean": 0.18243077192,
"stddev": 0.019359033423147345,
"median": 0.17566423942000003,
"user": 0.23477580857142852,
"system": 0.20582784857142858,
"min": 0.16555141942,
"max": 0.23666241742000002
}
]
}
} |
PR Summary by QodoPreserve distinct workspace dependencies in outdated JSON
AI Description
Diagram
High-Level Assessment
Files changed (8)
|
|
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit d51ffce |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…json output (#7693) When multiple workspace packages depend on different versions or dependency types of the same package, `pnpm -r outdated --json` previously overwrote earlier entries keyed solely by package name. Key entries uniquely as `${packageName}@${current}${typeSuffix}` when a package has multiple outdated entries across the workspace. Distinct dependencies are now preserved in both TypeScript and Rust CLI implementations. Fixes #7693
… JSON keys The JSON key helper repeated the table's dependency-type switch in both stacks. Derive both from one label function, build the key getter once per report instead of counting names at each call site, and drop the Rust branch for an empty current version, which a semver Version cannot have. The changeset now names the key format consumers will see. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Code review by qodo was updated up to the latest commit 629eb94 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
@coderabbitai review |
|
|
Review-and-fix pass on head 629eb94 (rebased onto main, no conflicts). Changes pushed:
Validation: Review status:
The PR stays ready for review. Nothing is left in scope except the missing Greptile and CodeRabbit rounds on the current head. Written by an agent (Claude Code, claude-opus-5-5). |
…json output (pnpm#7693) (pnpm#15418) When multiple workspace packages depend on different versions or dependency types of the same package, `pnpm -r outdated --json` previously overwrote earlier entries keyed solely by package name. Key entries uniquely as `${packageName}@${current}${typeSuffix}` when a package has multiple outdated entries across the workspace. Distinct dependencies are now preserved in both TypeScript and Rust CLI implementations. Closes pnpm#7693
Summary
When multiple packages across a workspace depend on different versions or dependency types of the same package,
pnpm -r outdated --jsonpreviously indexed the JSON output map strictly by package name (acc[outdatedPkg.packageName]). Earlier entries were overwritten, causing dependencies to be silently omitted from the JSON output.This PR ensures distinct outdated workspace entries are preserved in both TypeScript (pnpm v11) and Rust (pacquet, pnpm v12). When a package has multiple outdated entries in the workspace report, its key in the JSON output is disambiguated as
${packageName}@${current}${typeSuffix}(e.g.[email protected],[email protected] (dev)). Single-entry packages retain their standard package name key for backwards compatibility. The same keying applies to non-recursivepnpm outdated --jsonwhen a name repeats there, such as one package listed in two dependency groups of the same manifest. Both stacks derive the key suffix from the same dependency-type label the table output uses.Closes #7693
Squash Commit Body
Checklist
pnpm changeset) if this PR changes any published package. Keep it short and written for pnpm users — it becomes a release note.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.