Repository navigation
Conversation
PR Summary by QodoPreserve lockfiles during pre-script dependency verification
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Confidence Score: 5/5The PR appears safe to merge, with verifier-triggered installs preserving lockfile reuse while still completing required lifecycle work. The changed flag propagation and frozen-path guard align with the verifier’s full-install contract, and the regression test covers the intended lockfile and script-ordering behavior without revealing a reachable failure. Reviews (1): Last reviewed commit: "fix(pacquet): preserve lockfile before s..." | Re-trigger Greptile |
Code Review by Qodo
Context used✅ Compliance rules (platform):
24 rules 1. Remove pacquet-only changeset
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
The changeset feedback conflicts with the current root Written by an agent (Codex, GPT-5). |
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13469 +/- ##
==========================================
- Coverage 87.69% 87.69% -0.01%
==========================================
Files 546 546
Lines 94484 94483 -1
==========================================
- Hits 82859 82858 -1
Misses 11625 11625 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
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 (4)
📝 WalkthroughWalkthroughThe install CLI no longer overrides frozen-lockfile configuration during dependency verification. The package manager bypasses its optimistic frozen-install short circuit when disabled, and regression coverage verifies script success, lockfile reuse, and unchanged lockfile contents. ChangesLockfile verification flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant InstallArgs
participant PackageManager
participant Lockfile
participant HelloScript
InstallArgs->>PackageManager: preserve configured frozen-lockfile behavior
PackageManager->>Lockfile: run full frozen materialization
PackageManager->>HelloScript: execute hello
HelloScript-->>PackageManager: report lockfile reuse
PackageManager-->>Lockfile: retain regenerated contents
Assessment against linked issues
Possibly related 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 |
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. 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.6366307957400004,
"stddev": 0.10797494749938909,
"median": 2.68155045244,
"user": 1.9424519399999998,
"system": 1.5381613399999998,
"min": 2.4334027039399997,
"max": 2.76085306394,
"times": [
2.72222317594,
2.51843851694,
2.76085306394,
2.71269541694,
2.5512471509399997,
2.66078134294,
2.58720661394,
2.71714040994,
2.4334027039399997,
2.70231956194
]
},
{
"command": "pacquet@main",
"mean": 2.5725354448399997,
"stddev": 0.14492366966242562,
"median": 2.6444229439399995,
"user": 1.8675296399999997,
"system": 1.4387933399999997,
"min": 2.36181290494,
"max": 2.74624705494,
"times": [
2.69218094394,
2.40007129394,
2.66594653694,
2.4991430759399997,
2.63465396194,
2.38890195294,
2.36181290494,
2.74624705494,
2.68220479694,
2.6541919259399998
]
},
{
"command": "pnpr@HEAD",
"mean": 1.53010609004,
"stddev": 0.17182426388128028,
"median": 1.4917684474400001,
"user": 1.39532624,
"system": 1.2892448399999998,
"min": 1.35358369794,
"max": 1.76691172294,
"times": [
1.59069006894,
1.39284682594,
1.35358369794,
1.37307841294,
1.71743646094,
1.74275315694,
1.36918181994,
1.3901796509400002,
1.60439908294,
1.76691172294
]
},
{
"command": "pnpr@main",
"mean": 1.6091597919400003,
"stddev": 0.12205905780433157,
"median": 1.62240294844,
"user": 1.5257455399999997,
"system": 1.42941544,
"min": 1.4259483159400002,
"max": 1.84495001994,
"times": [
1.4259483159400002,
1.84495001994,
1.6863529779400002,
1.6196454119400001,
1.54991128394,
1.43670671394,
1.58959447994,
1.6716793519400002,
1.62516048494,
1.6416488789400001
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.31043056892000004,
"stddev": 0.028739200737139065,
"median": 0.31407881212,
"user": 0.2660515,
"system": 0.6082509399999999,
"min": 0.27376037362000005,
"max": 0.34587022962,
"times": [
0.33648295362,
0.27376037362000005,
0.30205052162,
0.27678552362000003,
0.27544598362000006,
0.34587022962,
0.33729738262000003,
0.32610710262000003,
0.33414530162000006,
0.29636031662000006
]
},
{
"command": "pacquet@main",
"mean": 0.30065087002,
"stddev": 0.020172821511728528,
"median": 0.29500178812,
"user": 0.2613525,
"system": 0.59399824,
"min": 0.26543373462000003,
"max": 0.33360014662000004,
"times": [
0.30302872062,
0.29231318662000005,
0.28614901362000006,
0.26543373462000003,
0.29265862262000003,
0.29734495362,
0.32295843062,
0.29219321562000006,
0.32082867562000006,
0.33360014662000004
]
},
{
"command": "pnpr@HEAD",
"mean": 0.36852276672000006,
"stddev": 0.02573313137544773,
"median": 0.37726311662000006,
"user": 0.30094760000000004,
"system": 0.70595634,
"min": 0.33174742262000007,
"max": 0.40304404062000004,
"times": [
0.37291203062000006,
0.33174742262000007,
0.33826011462000005,
0.33717147462,
0.35635534362000004,
0.38409529362000006,
0.38161420262000006,
0.38757110662000005,
0.40304404062000004,
0.39245663762000005
]
},
{
"command": "pnpr@main",
"mean": 0.38557424712000005,
"stddev": 0.020589331905589685,
"median": 0.38829039712,
"user": 0.3350688,
"system": 0.7045565399999999,
"min": 0.35214674962000003,
"max": 0.41283455362000004,
"times": [
0.36962294662000006,
0.36765833062000003,
0.39881364562000005,
0.39778453062,
0.40800308062000007,
0.40093779962000003,
0.37879626362,
0.36914457062000006,
0.41283455362000004,
0.35214674962000003
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.83051045178,
"stddev": 0.08957492487492855,
"median": 2.7792842578799997,
"user": 2.1308959799999996,
"system": 1.54369584,
"min": 2.76154196138,
"max": 2.99609874738,
"times": [
2.99609874738,
2.8695269093799998,
2.9805443653799997,
2.77646171538,
2.8264662823799998,
2.78210680038,
2.76728198938,
2.76154196138,
2.7710552803799997,
2.77402046638
]
},
{
"command": "pacquet@main",
"mean": 2.81548738948,
"stddev": 0.030048055952178302,
"median": 2.8140535713799997,
"user": 2.13213778,
"system": 1.48968634,
"min": 2.77182855238,
"max": 2.86508913438,
"times": [
2.81202764138,
2.8192780053799997,
2.77966639938,
2.81607950138,
2.79721035038,
2.8478451473799997,
2.86508913438,
2.8448107983799997,
2.8010383643799996,
2.77182855238
]
},
{
"command": "pnpr@HEAD",
"mean": 1.61640888338,
"stddev": 0.150244402663057,
"median": 1.5720239633800002,
"user": 1.3363210799999998,
"system": 1.28645584,
"min": 1.4561318383800002,
"max": 1.8895525833800002,
"times": [
1.7984647983800002,
1.50872077538,
1.63312668938,
1.46578767638,
1.4561318383800002,
1.7519926113800002,
1.6094732263800002,
1.8895525833800002,
1.5162639343800002,
1.53457470038
]
},
{
"command": "pnpr@main",
"mean": 1.6676496716800002,
"stddev": 0.16378015643838298,
"median": 1.62255022138,
"user": 1.39584458,
"system": 1.35985914,
"min": 1.46497171338,
"max": 1.8681249353800002,
"times": [
1.4943221343800002,
1.8681249353800002,
1.8119354433800001,
1.8621878903800002,
1.6337692083800002,
1.51492979738,
1.56493542938,
1.46497171338,
1.8499889303800001,
1.61133123438
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6995558641399999,
"stddev": 0.038606156039612774,
"median": 0.6895165544399999,
"user": 0.8852335799999999,
"system": 0.8180410200000001,
"min": 0.65485392794,
"max": 0.79308217994,
"times": [
0.71627562694,
0.70912634794,
0.68459886594,
0.67743798994,
0.79308217994,
0.66639901594,
0.69443424294,
0.65485392794,
0.68452943294,
0.71482101094
]
},
{
"command": "pacquet@main",
"mean": 0.69409091754,
"stddev": 0.030051490906443067,
"median": 0.68048744794,
"user": 0.88588278,
"system": 0.82574492,
"min": 0.66662991694,
"max": 0.76170302394,
"times": [
0.67161129894,
0.71500695494,
0.67706493394,
0.6698176219399999,
0.71795809494,
0.70014243394,
0.66662991694,
0.6819127229399999,
0.67906217294,
0.76170302394
]
},
{
"command": "pnpr@HEAD",
"mean": 0.35029070864000006,
"stddev": 0.01826537321995251,
"median": 0.35055052094000005,
"user": 0.24505148000000002,
"system": 0.6011533200000001,
"min": 0.32065685194000004,
"max": 0.36985049094000005,
"times": [
0.36362040194,
0.36973782594000004,
0.33453144094000004,
0.32065685194000004,
0.32663426894,
0.34907010494,
0.34737872794,
0.35203093694000004,
0.36985049094000005,
0.36939603594000003
]
},
{
"command": "pnpr@main",
"mean": 0.34575593564,
"stddev": 0.015503501982060667,
"median": 0.34150517094,
"user": 0.23352057999999998,
"system": 0.59185652,
"min": 0.32885747694,
"max": 0.36796032694,
"times": [
0.36796032694,
0.36673674794000005,
0.33903232094,
0.36179664294,
0.32885747694,
0.34397802094,
0.33377189094000004,
0.35344432094,
0.33109251194,
0.33088909594000004
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.04069900416,
"stddev": 0.05081634488523354,
"median": 2.02897065556,
"user": 1.2142497,
"system": 0.94060028,
"min": 1.98526329906,
"max": 2.15157896306,
"times": [
2.15157896306,
1.98526329906,
2.00944253506,
1.99662675506,
2.00160281206,
2.01866306106,
2.07358129706,
2.04774683206,
2.0832062370599997,
2.0392782500599997
]
},
{
"command": "pacquet@main",
"mean": 2.00109430866,
"stddev": 0.05889706096860197,
"median": 1.9866752355600001,
"user": 1.190133,
"system": 0.8853735799999999,
"min": 1.93025520906,
"max": 2.10491465106,
"times": [
1.9808872510600002,
2.00252832706,
2.10491465106,
2.10184929506,
2.00974297406,
1.99246322006,
1.9739730650600003,
1.94953307106,
1.93025520906,
1.9647960230600001
]
},
{
"command": "pnpr@HEAD",
"mean": 0.33965093736,
"stddev": 0.01671109192810741,
"median": 0.33980706656000004,
"user": 0.2255627,
"system": 0.59404568,
"min": 0.31022761506,
"max": 0.36320559106,
"times": [
0.31022761506,
0.31891066306,
0.33950108406,
0.34011304906,
0.35523858206,
0.36320559106,
0.35574471406,
0.34782180906,
0.33381441706,
0.33193184906
]
},
{
"command": "pnpr@main",
"mean": 0.37341934146,
"stddev": 0.011519154495006602,
"median": 0.37198184006,
"user": 0.2407922,
"system": 0.6703524799999999,
"min": 0.35569697206,
"max": 0.39886762406,
"times": [
0.39886762406,
0.37102996606,
0.36351862406,
0.37627131406,
0.37967427206,
0.35569697206,
0.36836020106,
0.37917378206,
0.36866694506,
0.37293371406
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.44242784328000007,
"stddev": 0.024260532998213263,
"median": 0.45181019778000003,
"user": 0.43128893999999995,
"system": 0.09934208,
"min": 0.39800262128,
"max": 0.46896141028000005,
"times": [
0.39800262128,
0.41477334028000007,
0.43773682228000005,
0.41911750528,
0.44947710228000004,
0.46896141028000005,
0.45907973728000007,
0.45414329328,
0.45448727228,
0.46849932828000007
]
},
{
"command": "pacquet@main",
"mean": 0.47550713558,
"stddev": 0.011910749515700049,
"median": 0.4743100292800001,
"user": 0.46990893999999994,
"system": 0.10341467999999998,
"min": 0.46048439428000004,
"max": 0.49430203428,
"times": [
0.48119309828000006,
0.46314202428000006,
0.47143647828000007,
0.46361415128000005,
0.48643840028000007,
0.48895140528000003,
0.49430203428,
0.46832578928000007,
0.4771835802800001,
0.46048439428000004
]
},
{
"command": "pnpr@HEAD",
"mean": 0.10041458236,
"stddev": 0.0038588693268247196,
"median": 0.10006621728000001,
"user": 0.026979459999999997,
"system": 0.01627666,
"min": 0.09371401028000001,
"max": 0.10901480028000002,
"times": [
0.10901480028000002,
0.09958489828000001,
0.10779002728,
0.09891533428000002,
0.10280418528000002,
0.09709171628,
0.09646181828000001,
0.10540866928,
0.10118000628000001,
0.09712792828000001,
0.09985086628,
0.09559581628000001,
0.09371401028000001,
0.09711308428000001,
0.10143555228000001,
0.09915826628,
0.10402703928000001,
0.09436942328000002,
0.10026661028000002,
0.09941572528,
0.10006621728000001,
0.10232140428000001,
0.10317830628,
0.10407698928000002,
0.10039586428000001
]
},
{
"command": "pnpr@main",
"mean": 0.0994747326874074,
"stddev": 0.0033888340345793705,
"median": 0.09904299428,
"user": 0.027273554814814815,
"system": 0.014318491111111116,
"min": 0.09274109528,
"max": 0.10477178728000001,
"times": [
0.10246845328000001,
0.09705109828000001,
0.10118445428000002,
0.09951105428000001,
0.10350749828000001,
0.10352421428000001,
0.10088695628000001,
0.10441877028000002,
0.09525917928000001,
0.09714319628000001,
0.09506136128,
0.10290883128000002,
0.09548180928000001,
0.09743325928000002,
0.10286730528000002,
0.09904299428,
0.09658587128000001,
0.09692267128000001,
0.09873143928000001,
0.09869190728,
0.10020867828,
0.10243951028,
0.09593140328000001,
0.09274109528,
0.10383392128,
0.09720906228000001,
0.10477178728000001
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.7470696102000005,
"stddev": 0.14563581089656863,
"median": 4.6955886399,
"user": 2.7828292199999995,
"system": 2.09025666,
"min": 4.595311486400001,
"max": 5.0109969304,
"times": [
5.0109969304,
4.8155648194000005,
4.635909473400001,
4.633014545400001,
4.6415190934,
4.7975337044,
4.6378920574,
4.953295805400001,
4.7496581864000005,
4.595311486400001
]
},
{
"command": "pacquet@main",
"mean": 4.800476704700001,
"stddev": 0.161555410835694,
"median": 4.8040271164,
"user": 2.8201735200000004,
"system": 2.1959620600000003,
"min": 4.5452436274000005,
"max": 5.058306920400001,
"times": [
4.8186666024,
4.846703815400001,
4.7893876304,
4.643287727400001,
4.8714671974,
4.5452436274000005,
4.686611489400001,
5.058306920400001,
5.0268005864,
4.718291450400001
]
},
{
"command": "pnpr@HEAD",
"mean": 3.7358332843,
"stddev": 0.17931222565502875,
"median": 3.6951565604,
"user": 1.9783017199999997,
"system": 1.8134295599999999,
"min": 3.5471248674,
"max": 3.9905175534,
"times": [
3.7052408634,
3.9854695094,
3.6850722574,
3.6060357144,
3.8126103034,
3.9195181234,
3.5520500764,
3.5546935744,
3.9905175534,
3.5471248674
]
},
{
"command": "pnpr@main",
"mean": 3.7522595469000004,
"stddev": 0.13711785943066124,
"median": 3.7614616204,
"user": 2.05397342,
"system": 1.8727198600000001,
"min": 3.5514342984,
"max": 3.9735619654,
"times": [
3.6938563854,
3.7568312074,
3.8042380364,
3.6234899674,
3.5514342984,
3.9735619654,
3.5957927474,
3.7660920334,
3.8617817794,
3.8955170484
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13469 |
| 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,456.13 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 310.23 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 320.66 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 93.71 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,353.58 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,547.12 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 331.75 ms |
Summary
Fixes #13466.
Verifier-triggered installs now keep the configured
preferFrozenLockfilebehavior, so an up-to-date regenerated wanted lockfile is reused instead of freshly resolving its peer graph. The verifier mode still bypasses repeat-install exits, which ensures the required install and root lifecycle scripts finish before the requested script starts.The regression test asserts that resolution is skipped, the lockfile remains byte-identical, and
postinstallruns before the requested script. The pinned Vue reproduction also retains the original lockfile SHA-256 (3090fe80629d31be0f459ce3eb29d4d1fd87ba19df57d0f92ae1c5b7fee26f55) afterpnpm run lint.This is Rust-only because the TypeScript CLI already has the target behavior.
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).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
Bug Fixes
Documentation