Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16936 +/- ##
=======================================
Coverage 92.61% 92.62%
=======================================
Files 1713 1714 +1
Lines 222774 222837 +63
=======================================
+ Hits 206322 206392 +70
+ Misses 16452 16445 -7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Micro-Benchmark ResultsLinux |
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 and injected workspace scenarios compare 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.6597368318,
"stddev": 0.1170699947661535,
"median": 2.6458410277000004,
"user": 2.09994064,
"system": 2.0606075600000002,
"min": 2.5060971267000003,
"max": 2.8750284357
},
{
"command": "pacquet@main",
"mean": 2.5871804152999998,
"stddev": 0.15915465855945649,
"median": 2.5419000607,
"user": 2.0580673399999996,
"system": 1.9822096599999999,
"min": 2.4456083777,
"max": 3.0106626117
},
{
"command": "pnpr@HEAD",
"mean": 1.6239085473,
"stddev": 0.1443241392935664,
"median": 1.5732565602,
"user": 2.19409084,
"system": 2.22065276,
"min": 1.4920068317,
"max": 1.9521239917000002
},
{
"command": "pnpr@main",
"mean": 1.6467292763999999,
"stddev": 0.18043553496539594,
"median": 1.6890681237,
"user": 1.8424593399999996,
"system": 1.7140596599999998,
"min": 1.3703624347,
"max": 1.8628324637
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.33624530208,
"stddev": 0.09541373189509134,
"median": 0.29004381008,
"user": 0.38168898,
"system": 0.74532196,
"min": 0.25307242858,
"max": 0.5271955325800001
},
{
"command": "pacquet@main",
"mean": 0.36067945388,
"stddev": 0.03498087715509388,
"median": 0.35785143558,
"user": 0.46308598000000006,
"system": 0.8109489599999999,
"min": 0.29629601758,
"max": 0.40331461258
},
{
"command": "pnpr@HEAD",
"mean": 0.30079344257999996,
"stddev": 0.03275443711048822,
"median": 0.30205542758000004,
"user": 0.34796298,
"system": 0.65125266,
"min": 0.25209149558,
"max": 0.36244675558
},
{
"command": "pnpr@main",
"mean": 0.28966581288000004,
"stddev": 0.016960986348151266,
"median": 0.28727986608,
"user": 0.31007058,
"system": 0.64996106,
"min": 0.27378806558,
"max": 0.33147382458
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.020050643434409945,
"stddev": 0.002999926877552261,
"median": 0.01968101254,
"user": 0.011125219254658383,
"system": 0.010640467453416153,
"min": 0.014146417540000001,
"max": 0.02896144754
},
{
"command": "pacquet@main",
"mean": 0.022256226319999996,
"stddev": 0.003815937071328936,
"median": 0.021714905040000003,
"user": 0.012026020000000002,
"system": 0.011824575200000001,
"min": 0.013386344540000001,
"max": 0.03455676554
},
{
"command": "pnpr@HEAD",
"mean": 0.021256946554492753,
"stddev": 0.00437473350230592,
"median": 0.02066767154,
"user": 0.012591618840579707,
"system": 0.01007547913043478,
"min": 0.01264759254,
"max": 0.03282993054
},
{
"command": "pnpr@main",
"mean": 0.022483825681176465,
"stddev": 0.004461984251151934,
"median": 0.021661065040000003,
"user": 0.011836811764705881,
"system": 0.012020265647058824,
"min": 0.013758375540000001,
"max": 0.039719350540000004
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.018639777411034484,
"stddev": 0.003454199711402752,
"median": 0.01830142648,
"user": 0.009681551724137928,
"system": 0.010623865172413793,
"min": 0.012950690980000002,
"max": 0.03134017898
},
{
"command": "pacquet@main",
"mean": 0.018542023151232885,
"stddev": 0.003154455107597362,
"median": 0.01851988848,
"user": 0.009586184931506847,
"system": 0.010602043287671243,
"min": 0.012692214980000002,
"max": 0.02529643698
},
{
"command": "pnpr@HEAD",
"mean": 0.01741962205246377,
"stddev": 0.003236916503773554,
"median": 0.01717045298,
"user": 0.009564384057971014,
"system": 0.009429680289855072,
"min": 0.011372632980000002,
"max": 0.02438183398
},
{
"command": "pnpr@main",
"mean": 0.01873970952938272,
"stddev": 0.0037623646347997755,
"median": 0.01810525448,
"user": 0.010092246913580249,
"system": 0.01025603037037037,
"min": 0.012741738980000002,
"max": 0.031628430980000004
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.89088083848,
"stddev": 0.15735920597595188,
"median": 2.8998376764800002,
"user": 3.0011421600000006,
"system": 2.25471432,
"min": 2.6194459309800004,
"max": 3.11310849898
},
{
"command": "pacquet@main",
"mean": 3.1550019385800008,
"stddev": 0.38870754629478693,
"median": 3.01487363698,
"user": 3.2863469599999995,
"system": 2.59974182,
"min": 2.7442622189800003,
"max": 4.01966573598
},
{
"command": "pnpr@HEAD",
"mean": 2.21292988028,
"stddev": 0.34759804734982097,
"median": 2.37062501698,
"user": 2.17961226,
"system": 2.4654532199999997,
"min": 1.64946909598,
"max": 2.58431118898
},
{
"command": "pnpr@main",
"mean": 1.9718250157800004,
"stddev": 0.17982428368798728,
"median": 1.98892030598,
"user": 2.13584606,
"system": 2.2919383199999994,
"min": 1.72127602898,
"max": 2.2279556359800003
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.870657978,
"stddev": 0.07201955382254256,
"median": 0.8549276681,
"user": 1.3292061199999998,
"system": 1.2937634999999998,
"min": 0.7999869186,
"max": 1.0423915016
},
{
"command": "pacquet@main",
"mean": 0.9097690774,
"stddev": 0.043497745381755513,
"median": 0.9251476146,
"user": 1.3390811200000001,
"system": 1.2926357999999998,
"min": 0.8208643186,
"max": 0.9468853976
},
{
"command": "pnpr@HEAD",
"mean": 0.5215365362,
"stddev": 0.020052557276653553,
"median": 0.5190576861,
"user": 0.5198190200000001,
"system": 0.8853651999999999,
"min": 0.49760153760000003,
"max": 0.5621747346
},
{
"command": "pnpr@main",
"mean": 0.5099138891000001,
"stddev": 0.021602721613598597,
"median": 0.5058985076,
"user": 0.51827432,
"system": 0.8903644999999999,
"min": 0.48458636560000007,
"max": 0.5435425996
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.91314169926,
"stddev": 0.14674057586893546,
"median": 1.8966973143599999,
"user": 1.4907262,
"system": 1.2326041599999997,
"min": 1.74945392936,
"max": 2.25228896436
},
{
"command": "pacquet@main",
"mean": 2.0781724735599996,
"stddev": 0.22047793038886282,
"median": 2.07210849186,
"user": 1.7790105999999999,
"system": 1.3968485599999998,
"min": 1.78678660936,
"max": 2.5823175473599997
},
{
"command": "pnpr@HEAD",
"mean": 0.51848209666,
"stddev": 0.08750560386239468,
"median": 0.52579762586,
"user": 0.5025665,
"system": 0.9085176599999999,
"min": 0.39465777936,
"max": 0.65045866036
},
{
"command": "pnpr@main",
"mean": 0.45405273506,
"stddev": 0.06958081110184518,
"median": 0.43601673486000003,
"user": 0.4372885,
"system": 0.82248906,
"min": 0.36923838336,
"max": 0.60577604636
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.40337927896000003,
"stddev": 0.030139146829737593,
"median": 0.39938746195999997,
"user": 0.4149264,
"system": 0.16616288,
"min": 0.34954064946,
"max": 0.45875586446
},
{
"command": "pacquet@main",
"mean": 0.36481515776,
"stddev": 0.018895810587354962,
"median": 0.35868487646,
"user": 0.37613339999999995,
"system": 0.15730287999999998,
"min": 0.34234869146,
"max": 0.39743925546000003
},
{
"command": "pnpr@HEAD",
"mean": 0.1247769229382609,
"stddev": 0.008318971927748579,
"median": 0.12515318946,
"user": 0.05819095652173913,
"system": 0.024775758260869564,
"min": 0.11170139246,
"max": 0.14159382446000002
},
{
"command": "pnpr@main",
"mean": 0.12028794434888888,
"stddev": 0.012690445308413097,
"median": 0.11881233746,
"user": 0.055001222222222215,
"system": 0.023585835555555552,
"min": 0.10284179446000001,
"max": 0.16018884346000004
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.35667005280666664,
"stddev": 0.03268739486330768,
"median": 0.34732298914000004,
"user": 0.3728298644444445,
"system": 0.07423508666666666,
"min": 0.29357750214000006,
"max": 0.39187685914000003
},
{
"command": "pacquet@main",
"mean": 0.3589086426955556,
"stddev": 0.02516474852792287,
"median": 0.36417542514000006,
"user": 0.38086842,
"system": 0.07812630888888888,
"min": 0.31911780014,
"max": 0.40043088114000003
},
{
"command": "pnpm@HEAD",
"mean": 4.294286027028889,
"stddev": 0.5016992671670346,
"median": 4.08348208214,
"user": 6.602089531111111,
"system": 0.44756519777777776,
"min": 3.7813067521400003,
"max": 5.32989006614
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.23657168399333336,
"stddev": 0.005699161112276025,
"median": 0.23642726766000002,
"user": 0.18129672666666666,
"system": 0.09553923999999997,
"min": 0.22667880766000004,
"max": 0.24473557766000004
},
{
"command": "pacquet@main",
"mean": 0.24110547249333336,
"stddev": 0.00901955255757416,
"median": 0.23842609066000003,
"user": 0.19326097666666667,
"system": 0.09138940666666666,
"min": 0.23089544466000003,
"max": 0.25760738666
}
]
}Scenario: Isolated linker: injected workspace repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.10817478121833334,
"stddev": 0.016096192881526552,
"median": 0.10167801726,
"user": 0.043830296666666664,
"system": 0.07385563833333335,
"min": 0.08644606976000001,
"max": 0.14409559476000003
},
{
"command": "pacquet@main",
"mean": 0.10455625406769231,
"stddev": 0.017237186805522484,
"median": 0.09858256776000002,
"user": 0.044519610769230764,
"system": 0.06951533384615384,
"min": 0.08719395876000001,
"max": 0.14463787676000003
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.782705577300001,
"stddev": 0.15518621130792254,
"median": 4.7852060106,
"user": 2.2091133399999996,
"system": 2.03482336,
"min": 4.5648219250999995,
"max": 5.0553444011
},
{
"command": "pacquet@main",
"mean": 4.7415956821,
"stddev": 0.14756415937395342,
"median": 4.7122692136,
"user": 2.0942793399999995,
"system": 1.8457470599999997,
"min": 4.5670699270999995,
"max": 5.0067508031
},
{
"command": "pnpr@HEAD",
"mean": 3.7131886231,
"stddev": 0.20563971544717682,
"median": 3.6145624996,
"user": 1.9599105399999996,
"system": 1.82242536,
"min": 3.5164021820999998,
"max": 4.0309710491
},
{
"command": "pnpr@main",
"mean": 4.0590845156,
"stddev": 0.09538246690752279,
"median": 4.066830533099999,
"user": 2.55290854,
"system": 2.34300996,
"min": 3.8563048661,
"max": 4.1954555661
}
]
}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.
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.24061399592000005,
"stddev": 0.021676713297350773,
"median": 0.23465028232000001,
"user": 0.28522171999999996,
"system": 0.19246121999999996,
"min": 0.21934166832000002,
"max": 0.28216305532
},
{
"command": "pacquet@main",
"mean": 0.22756619685846152,
"stddev": 0.01912625039424454,
"median": 0.22879585432000002,
"user": 0.276808843076923,
"system": 0.18806969692307693,
"min": 0.19920884332000002,
"max": 0.26178393632
},
{
"command": "pnpr@HEAD",
"mean": 0.29227692092,
"stddev": 0.0417159523403884,
"median": 0.28041217932,
"user": 0.32939582,
"system": 0.21219881999999995,
"min": 0.23706517532000002,
"max": 0.36567906132
},
{
"command": "pnpr@main",
"mean": 0.34101752242,
"stddev": 0.04147891180824956,
"median": 0.34155336332,
"user": 0.36270932,
"system": 0.23417422000000002,
"min": 0.27267697732,
"max": 0.43119183632
}
]
}Scenario: Store only: unlocked direct deps, cold cache + hot storeStore-only install (
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.4465297742,
"stddev": 0.08278936422412563,
"median": 1.4270734193,
"user": 0.9900777,
"system": 0.45273534,
"min": 1.3460434553,
"max": 1.5929045893000002
},
{
"command": "pacquet@main",
"mean": 1.5446790218,
"stddev": 0.10923910639755914,
"median": 1.5502461898000002,
"user": 1.0777502,
"system": 0.4666751400000001,
"min": 1.4037425593,
"max": 1.7454664493
}
]
} |
|
Status: 67 checks pass. The only failure is Written by an agent (Claude Code, claude-opus-5-5). |
|
Review-and-fix pass on 5a32c62:
CI is green on 5a32c62. This PR is still a draft, and I kept it that way, so no automated review round has started (CodeRabbit skips drafts). No external review exists yet. Nothing else is left within this pass. Written by an agent (Claude Code, claude-opus-5-5). |
A filtered install whose selection matched every project on disk was treated as a full install, so it pruned lockfile importers of workspace projects that are listed but not on disk, as in a sparse checkout. pnpm v12: - A --filter selection now always requests its importers, so the stale-importer prune is skipped and the filtered lockfile merge runs. The workspace state still records the install as unfiltered when every project was selected. - The filtered merge keeps importers the previous lockfile records for projects outside the workspace walk, plus their packages and catalog entries. Before, it dropped them even for a narrower filter. pnpm v11: - pruneLockfileImporters defaults to false when a filter is given. - The lockfile catalogs keep the entries used by importers that the resolution left untouched. Before, a narrower filter kept the importer but dropped its catalog entries. Closes #16931
|
#16941 (rustls 0.23.46) has merged. This branch is rebased onto it at d95f2fe with no conflicts.
Written by an agent (Claude Code, claude-opus-5-5). |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
PR Summary by QodoPreserve missing workspace projects during filtered installs
AI Description
Diagram
High-Level Assessment
Files changed (15)
|
Code Review by Qodo
1. New catalog helper omits trailing commas
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Summary
A filtered install drops lockfile entries of workspace projects that are listed in
pnpm-workspace.yamlbut missing from disk, as in a sparse checkout. Closes #16931.Measured on the reporter's repro (
packages/coff disk, a dependency added topackages/a, thenpnpm install --lockfile-only --filter ...):cimporter,only-ccatalog,left-padleft-pad, dropsonly-ccatalogChanges:
--filterselection now always requests its importers. The stale-importer prune is skipped and the filtered lockfile merge runs, even when the filter matches every project on disk. The workspace state'sfilteredInstallstays count-based, as in v11, so--filter "*"still records an unfiltered install (install_filters::filter_matching_every_real_project_is_not_partialstill passes).merge_filtered_wanted_lockfilekeeps previous importers outside the workspace walk, plus their packages and catalog entries. It used to drop them for any filter. One unit test pinned the drop and was updated.pruneLockfileImportersdefaults tofalsewhenfilter/filterProdis set.createNewLockfilecarries over the catalog entries used by importers the resolution left untouched.Not covered: an unfiltered
pnpm installin a sparse checkout still prunes the off-disk importer (the issue's scenario 1). Without a filter, pnpm can't tell a project removed from the workspace from one a sparse checkout hides. This PR fixes the filter case the issue asks for.Squash Commit Body
Checklist
already linked to it solves it.
are implemented in every affected version.
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-5).
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit