Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Execution Profiles recorded for 1 job, triggered by
−1 ·
|
|
Found 4 test failures on Blacksmith runners: Failures
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17174 +/- ##
=======================================
Coverage ? 92.46%
=======================================
Files ? 1853
Lines ? 239198
Branches ? 0
=======================================
Hits ? 221177
Misses ? 18021
Partials ? 0 ☔ 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, injected, and Cargo 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": 3.0677860234199996,
"stddev": 0.09321571933127347,
"median": 3.0914182819200002,
"user": 3.1351514199999997,
"system": 2.4453557599999995,
"min": 2.90362252292,
"max": 3.16816968892
},
{
"command": "pacquet@main",
"mean": 3.14037083852,
"stddev": 0.11779979093704455,
"median": 3.1466439464200002,
"user": 3.2688299199999995,
"system": 2.4857189599999994,
"min": 2.8945604259200004,
"max": 3.29429253792
},
{
"command": "pnpr@HEAD",
"mean": 1.6120520751199998,
"stddev": 0.07597790318726785,
"median": 1.56759129642,
"user": 2.7011848199999995,
"system": 2.1669502599999997,
"min": 1.54219937992,
"max": 1.74978400492
},
{
"command": "pnpr@main",
"mean": 1.6787300076199998,
"stddev": 0.10799389787653012,
"median": 1.6642164799199999,
"user": 2.65417292,
"system": 2.15783826,
"min": 1.5226435969199998,
"max": 1.88442636592
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.4296869795400001,
"stddev": 0.04511719189923327,
"median": 0.4298834906400001,
"user": 0.49614675999999996,
"system": 0.9239094800000001,
"min": 0.35364478614000006,
"max": 0.48522198314000003
},
{
"command": "pacquet@main",
"mean": 0.46568913444,
"stddev": 0.04780997147384907,
"median": 0.46155164814000005,
"user": 0.50681806,
"system": 0.9668534799999999,
"min": 0.37944916814000007,
"max": 0.51856190914
},
{
"command": "pnpr@HEAD",
"mean": 0.48908614934,
"stddev": 0.028180575888314727,
"median": 0.50074451464,
"user": 0.50682826,
"system": 0.99096118,
"min": 0.43971879514000006,
"max": 0.52190664114
},
{
"command": "pnpr@main",
"mean": 0.44656175504,
"stddev": 0.037928211219672714,
"median": 0.43395465814000006,
"user": 0.50442046,
"system": 0.9542050799999998,
"min": 0.40519161014000005,
"max": 0.52298133314
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.013695695868677258,
"stddev": 0.0017941447918622493,
"median": 0.01327794862,
"user": 0.007494871746031744,
"system": 0.00746533989417989,
"min": 0.010809984620000001,
"max": 0.01967233062
},
{
"command": "pacquet@main",
"mean": 0.01353228291787234,
"stddev": 0.0016978052896046171,
"median": 0.013062305120000001,
"user": 0.007381126382978727,
"system": 0.007354187659574469,
"min": 0.01069763362,
"max": 0.02006569762
},
{
"command": "pnpr@HEAD",
"mean": 0.0136018677121659,
"stddev": 0.001772227780970016,
"median": 0.013152112620000002,
"user": 0.007725591244239637,
"system": 0.007101774377880179,
"min": 0.009314120620000001,
"max": 0.02003567062
},
{
"command": "pnpr@main",
"mean": 0.014152063725990784,
"stddev": 0.0017326471983109188,
"median": 0.013865489620000001,
"user": 0.007902370230414745,
"system": 0.00747114119815668,
"min": 0.01090844862,
"max": 0.02008151762
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.022590303582882894,
"stddev": 0.00381912200597371,
"median": 0.0217966777,
"user": 0.012828576936936936,
"system": 0.010974929729729728,
"min": 0.0164502067,
"max": 0.033949723700000004
},
{
"command": "pacquet@main",
"mean": 0.022753766576288657,
"stddev": 0.0027977676617768044,
"median": 0.0227030307,
"user": 0.012335464742268045,
"system": 0.011867504329896906,
"min": 0.0172349817,
"max": 0.033359073700000005
},
{
"command": "pnpr@HEAD",
"mean": 0.027717351261403515,
"stddev": 0.004486133209839785,
"median": 0.0272431007,
"user": 0.014097982105263161,
"system": 0.01503346736842106,
"min": 0.0197947947,
"max": 0.041754585700000006
},
{
"command": "pnpr@main",
"mean": 0.02807542489999999,
"stddev": 0.004237435659966803,
"median": 0.0271598692,
"user": 0.013407325714285713,
"system": 0.01645830571428571,
"min": 0.0206595797,
"max": 0.04270520170000001
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.63241962588,
"stddev": 0.046527256665267205,
"median": 2.64451357228,
"user": 2.6174725999999997,
"system": 1.8025872399999998,
"min": 2.55184284628,
"max": 2.69233809728
},
{
"command": "pacquet@main",
"mean": 2.79207085028,
"stddev": 0.11133415726755481,
"median": 2.7366646357800004,
"user": 2.9704395,
"system": 2.11498734,
"min": 2.7119080592800002,
"max": 3.02827962428
},
{
"command": "pnpr@HEAD",
"mean": 1.7337515678800002,
"stddev": 0.113181984034082,
"median": 1.73228454528,
"user": 2.0485227999999998,
"system": 1.7300860400000002,
"min": 1.56671610028,
"max": 1.9128566542799998
},
{
"command": "pnpr@main",
"mean": 1.6437636062799998,
"stddev": 0.10661321891989352,
"median": 1.66978556378,
"user": 2.0025759,
"system": 1.69989554,
"min": 1.4846442172799998,
"max": 1.77486212128
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.7886502864600001,
"stddev": 0.09756836856015062,
"median": 0.7601922892600002,
"user": 1.1481634999999997,
"system": 1.1041891999999998,
"min": 0.6911872427600001,
"max": 0.9677029647600001
},
{
"command": "pacquet@main",
"mean": 0.74299210356,
"stddev": 0.03787216995136357,
"median": 0.74990075426,
"user": 1.0751012999999998,
"system": 1.0880013,
"min": 0.6845844507600001,
"max": 0.79540002076
},
{
"command": "pnpr@HEAD",
"mean": 0.7261260019600001,
"stddev": 0.16447546030934665,
"median": 0.7471036822600001,
"user": 0.6007924000000001,
"system": 0.9946670999999998,
"min": 0.4559879317600001,
"max": 0.9871635027600001
},
{
"command": "pnpr@main",
"mean": 0.4883511096600001,
"stddev": 0.05176325664390969,
"median": 0.4846075817600001,
"user": 0.4485806,
"system": 0.8280350999999999,
"min": 0.40065400176000004,
"max": 0.55862080376
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.9903324896,
"stddev": 0.04470497168964058,
"median": 1.9823602909,
"user": 1.57306782,
"system": 1.4763174200000002,
"min": 1.9318674959,
"max": 2.1034260189
},
{
"command": "pacquet@main",
"mean": 1.9032364633,
"stddev": 0.051689865617063256,
"median": 1.9073596104,
"user": 1.45561972,
"system": 1.38101122,
"min": 1.8260307859,
"max": 2.0187534909
},
{
"command": "pnpr@HEAD",
"mean": 0.4303896827000001,
"stddev": 0.016072510691087057,
"median": 0.4333415869,
"user": 0.40648951999999994,
"system": 0.8654885199999999,
"min": 0.4072636139,
"max": 0.4569104619
},
{
"command": "pnpr@main",
"mean": 0.4973688473,
"stddev": 0.05677697810157545,
"median": 0.49359661590000004,
"user": 0.47695282,
"system": 1.0217314200000003,
"min": 0.4091301199,
"max": 0.5888797899000001
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.40228799346000005,
"stddev": 0.08124705320476454,
"median": 0.37748374436,
"user": 0.41931586000000004,
"system": 0.15882616,
"min": 0.30189990086,
"max": 0.53863660786
},
{
"command": "pacquet@main",
"mean": 0.62295377446,
"stddev": 0.10662686607335306,
"median": 0.58168999086,
"user": 0.6644427599999999,
"system": 0.24712595999999998,
"min": 0.52265539186,
"max": 0.8158651838600001
},
{
"command": "pnpr@HEAD",
"mean": 0.12894488296,
"stddev": 0.012614438464732806,
"median": 0.12647159986,
"user": 0.06129675999999999,
"system": 0.02530366,
"min": 0.11204044286,
"max": 0.16785895386
},
{
"command": "pnpr@main",
"mean": 0.12162974736000001,
"stddev": 0.011692466928519682,
"median": 0.11874489986,
"user": 0.05504800545454546,
"system": 0.023974450909090908,
"min": 0.10353992286000001,
"max": 0.14882021686
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.3379275044511111,
"stddev": 0.044230580020258765,
"median": 0.31922026834,
"user": 0.3634726822222222,
"system": 0.06571518444444444,
"min": 0.29373514834000003,
"max": 0.42696687834
},
{
"command": "pacquet@main",
"mean": 0.32422814734000005,
"stddev": 0.029382056439749102,
"median": 0.32469132334,
"user": 0.34724457111111107,
"system": 0.062275073333333326,
"min": 0.29016007534000005,
"max": 0.36904364334
},
{
"command": "pnpm@HEAD",
"mean": 5.735770587228888,
"stddev": 0.771142078549327,
"median": 5.39672435634,
"user": 8.872187015555555,
"system": 0.6105742955555554,
"min": 4.98130731834,
"max": 7.15215888034
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.15341904891411764,
"stddev": 0.017207028457440498,
"median": 0.15023087762,
"user": 0.1387142164705882,
"system": 0.07621460470588236,
"min": 0.13358563962,
"max": 0.18895086162
},
{
"command": "pacquet@main",
"mean": 0.14774056198842103,
"stddev": 0.011411239238956709,
"median": 0.14816721762,
"user": 0.14526277684210523,
"system": 0.0646267347368421,
"min": 0.12628158562,
"max": 0.17206026162000002
}
]
}Scenario: Isolated linker: injected workspace repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.11142042102,
"stddev": 0.011056006340440629,
"median": 0.11161693290000001,
"user": 0.041537239999999996,
"system": 0.07845375999999998,
"min": 0.0884983389,
"max": 0.1347546949
},
{
"command": "pacquet@main",
"mean": 0.1088341643074074,
"stddev": 0.014196004969022668,
"median": 0.11170918090000001,
"user": 0.038739607407407416,
"system": 0.0774260488888889,
"min": 0.0878378569,
"max": 0.1350799459
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 5.681938090359999,
"stddev": 0.44712679239526093,
"median": 5.671123064160001,
"user": 3.65530938,
"system": 2.5952701199999995,
"min": 4.77712685266,
"max": 6.53050723966
},
{
"command": "pacquet@main",
"mean": 6.493916777460001,
"stddev": 0.6261491445529624,
"median": 6.447612854660001,
"user": 3.98758658,
"system": 2.85058782,
"min": 5.54454051366,
"max": 7.245864780660001
},
{
"command": "pnpr@HEAD",
"mean": 4.28235805596,
"stddev": 0.18910935942815976,
"median": 4.20993027116,
"user": 3.11183798,
"system": 2.3797428199999997,
"min": 4.10434595366,
"max": 4.6923112086600005
},
{
"command": "pnpr@main",
"mean": 4.872537450459999,
"stddev": 0.39912874061079007,
"median": 4.78557990366,
"user": 3.31467768,
"system": 2.55669112,
"min": 4.36670411866,
"max": 5.542042432660001
}
]
}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.17775036046307696,
"stddev": 0.01758056798535623,
"median": 0.17162328254000003,
"user": 0.22070119692307688,
"system": 0.17110003999999998,
"min": 0.15414828954,
"max": 0.20088425354000003
},
{
"command": "pacquet@main",
"mean": 0.1989506500066667,
"stddev": 0.03853143197601276,
"median": 0.19223881354000003,
"user": 0.24268051999999998,
"system": 0.19790570666666665,
"min": 0.14462286854,
"max": 0.30418099254000003
},
{
"command": "pnpr@HEAD",
"mean": 0.27731493934,
"stddev": 0.043569484068494355,
"median": 0.26076044454,
"user": 0.32506331999999993,
"system": 0.24802483999999997,
"min": 0.22862580554000003,
"max": 0.36318658454
},
{
"command": "pnpr@main",
"mean": 0.21489902844000003,
"stddev": 0.01953009357415424,
"median": 0.21075360804000004,
"user": 0.25371851999999995,
"system": 0.21162244000000002,
"min": 0.18744559654,
"max": 0.24953835554000003
}
]
}Scenario: Store only: unlocked direct deps, cold cache + hot storeStore-only install (
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.34037955992,
"stddev": 0.06057281018903048,
"median": 1.32675313742,
"user": 0.80070692,
"system": 0.27029487999999996,
"min": 1.28000460342,
"max": 1.49492559042
},
{
"command": "pacquet@main",
"mean": 1.32995731082,
"stddev": 0.03964991494384263,
"median": 1.31410992192,
"user": 0.7748678199999998,
"system": 0.25964448,
"min": 1.28076716142,
"max": 1.38875441842
}
]
}Scenario: Cargo: repeat install, hot cache + hot storeFrozen repeat install of a Cargo workspace (
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.054521711098181824,
"stddev": 0.008947874259927557,
"median": 0.05295317308,
"user": 0.037365979999999986,
"system": 0.028853810181818176,
"min": 0.03856553508,
"max": 0.08964803208000001
},
{
"command": "pacquet@main",
"mean": 0.05387421261333333,
"stddev": 0.007816723548173149,
"median": 0.05240355008,
"user": 0.039194735555555554,
"system": 0.027355073333333327,
"min": 0.04189063408,
"max": 0.07447109008000001
}
]
} |
Micro-Benchmark ResultsLinux |
…anted lockfile When pnpm-lock.yaml is missing after a filtered install (or when a covered project is missing a per-project lockfile under sharedWorkspaceLockfile: false), the recorded validation proof is not used and the current lockfile stands in as the wanted lockfile: 1. In pnpm v11 (`@pnpm/deps.status`), gate the skip of `findProjectMissingFromCurrentLockfile` in `findModulesDirIssue` on a usable validation proof rather than the presence of `workspaceState.validation`, and verify in `readCurrentLockfileAsWanted` that the current lockfile records the direct dependencies of every checked project after a filtered install. 2. In pnpm v12 (`pnpm-package-manager`), check that the current lockfile records each unproven project and the snapshots of its direct dependencies both when comparing against a wanted lockfile and when the current lockfile stands in for a missing wanted lockfile. Closes pnpm/tasks#180 Related to #17150
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
PR Summary by QodoRequire current-lockfile proof for filtered installs
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1. Missing lockfiles incur a second full parse
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Summary
Fixes a follow-up from
pnpm/pnpm#17150where a workspace project skipped by a filtered install (with an existingnode_modulesdirectory) could be reported as up to date afterpnpm-lock.yamlwas deleted (or when a covered project lacked a per-project lockfile undersharedWorkspaceLockfile: false):@pnpm/deps.status):findModulesDirIssuepreviously skippedfindProjectMissingFromCurrentLockfilewheneverworkspaceState.validationwas set, assumingcheckRecordedWorkspacewould run. However, whenproof == null(such as whenpnpm-lock.yamlis missing and the current lockfile stands in for it, or undersharedWorkspaceLockfile: falsewhen covered projects are missing a lockfile),checkModifiedSinceLastValidationruns instead. Gate the skip infindModulesDirIssueonproof != null(hasValidationProof), and also verify inreadCurrentLockfileAsWantedthat the current lockfile records the direct dependencies of every checked project whenworkspaceState.filteredInstallis set.pnpm-package-manager): Inheld_projects_match_lockfile, checkrequire_recorded_in_currentboth when comparing against a wanted lockfile and whencurrentstands in for a missing wanted lockfile, and verify thatcurrentrecords not only the importer key incurrent.importersbut also a snapshot incurrent.snapshotsfor each of its direct non-link dependencies (handling current lockfiles written by pnpm v11 filtered installs, which retain every importer while pruning unselected packages).Closes pnpm/tasks#180
Related to #17150
Squash Commit Body
Checklist
already linked to it solves it.
are implemented in every affected version.
Written by an agent (Antigravity, Gemini 4 Argon).
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit