Repository navigation
fix: restore pacquet current lockfile on repeat install - #12643
Conversation
|
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 (2)
📝 WalkthroughWalkthroughThe install flow now handles a missing virtual-store ChangesMissing current lockfile handling
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Assessment against linked issues
Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
✨ Finishing Touches🧪 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 |
PR Summary by QodoFix pacquet repeat install when current lockfile is missing Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
|
Code review by qodo was updated up to the latest commit 59063f9 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12643 +/- ##
=======================================
Coverage 88.58% 88.58%
=======================================
Files 339 339
Lines 49171 49193 +22
=======================================
+ Hits 43557 43580 +23
+ Misses 5614 5613 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.677284544720001,
"stddev": 0.18903350305302047,
"median": 4.646223254720001,
"user": 3.8583116399999993,
"system": 3.3800015800000005,
"min": 4.4594450317200005,
"max": 4.93262915872,
"times": [
4.4594450317200005,
4.52149362872,
4.88081743672,
4.75956135072,
4.93262915872,
4.78132290172,
4.892336146720001,
4.50766406672,
4.50469056672,
4.53288515872
]
},
{
"command": "pacquet@main",
"mean": 4.6003794759200005,
"stddev": 0.0903639630044336,
"median": 4.596720358220001,
"user": 3.8573447399999994,
"system": 3.3932930800000003,
"min": 4.473566383720001,
"max": 4.733389290720001,
"times": [
4.733389290720001,
4.61265258372,
4.473566383720001,
4.7280823427200005,
4.58068584972,
4.66697101272,
4.48493116972,
4.6050560237200004,
4.53007540972,
4.58838469272
]
},
{
"command": "pnpr@HEAD",
"mean": 3.02481831552,
"stddev": 0.1974720562739997,
"median": 2.94474804772,
"user": 2.8394540399999997,
"system": 2.9596697799999996,
"min": 2.80378756072,
"max": 3.35698350772,
"times": [
2.90173037672,
3.35698350772,
2.94241173872,
2.94708435672,
2.85823259872,
2.80378756072,
3.02208216572,
2.88827805672,
3.30355805072,
3.22403474272
]
},
{
"command": "pnpr@main",
"mean": 2.89861274872,
"stddev": 0.03621829697597164,
"median": 2.89163070072,
"user": 2.83851184,
"system": 2.97076078,
"min": 2.8416179967199997,
"max": 2.96870331172,
"times": [
2.88135839772,
2.88086495672,
2.96870331172,
2.8416179967199997,
2.87125903872,
2.9168300017199997,
2.91035447872,
2.87767735672,
2.9019030037199998,
2.93555894472
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.67146945602,
"stddev": 0.013792023134165754,
"median": 0.67369569222,
"user": 0.41692804,
"system": 1.3472617799999997,
"min": 0.64971348372,
"max": 0.6878190807200001,
"times": [
0.67525666772,
0.6609781357200001,
0.6576991467200001,
0.64971348372,
0.68317855372,
0.68373110772,
0.6585152727200001,
0.6878190807200001,
0.6856683947200001,
0.67213471672
]
},
{
"command": "pacquet@main",
"mean": 0.66394134512,
"stddev": 0.021690406378718604,
"median": 0.6587952237200001,
"user": 0.39360414,
"system": 1.3401988799999998,
"min": 0.64291657572,
"max": 0.7164169447200001,
"times": [
0.6742038087200001,
0.65081065872,
0.6453003297200001,
0.6532306157200001,
0.6687235357200001,
0.7164169447200001,
0.6732522847200001,
0.6501988657200001,
0.64291657572,
0.66435983172
]
},
{
"command": "pnpr@HEAD",
"mean": 0.7285894918200001,
"stddev": 0.02128794291072698,
"median": 0.7313096752200001,
"user": 0.43457033999999994,
"system": 1.3713139799999998,
"min": 0.69616729072,
"max": 0.7569910937200001,
"times": [
0.7537871807200001,
0.71380945872,
0.7380102417200001,
0.69616729072,
0.7084076327200001,
0.74800022172,
0.7258318367200001,
0.7569910937200001,
0.7081024477200001,
0.7367875137200001
]
},
{
"command": "pnpr@main",
"mean": 0.7286225179200001,
"stddev": 0.028921059671420456,
"median": 0.71992558122,
"user": 0.41748814,
"system": 1.3861189799999998,
"min": 0.70429402572,
"max": 0.78338087672,
"times": [
0.7126600137200001,
0.7272618537200001,
0.70604182372,
0.72719114872,
0.7086859307200001,
0.78338087672,
0.70830983672,
0.73128220472,
0.70429402572,
0.7771174647200001
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.98902213478,
"stddev": 0.0528545414494311,
"median": 4.99382835258,
"user": 4.08369926,
"system": 3.41479158,
"min": 4.90968125408,
"max": 5.061285049079999,
"times": [
5.0090204390799995,
4.98074539608,
4.95286597308,
4.97228803008,
4.90968125408,
4.915077762079999,
5.028085830079999,
5.0069113090799995,
5.05426030508,
5.061285049079999
]
},
{
"command": "pacquet@main",
"mean": 5.02488055848,
"stddev": 0.0524821294648333,
"median": 5.008309302579999,
"user": 4.0767767599999996,
"system": 3.43447998,
"min": 4.94406267908,
"max": 5.110383113079999,
"times": [
5.0033791460799995,
4.98568382908,
5.074328643079999,
5.110383113079999,
4.94406267908,
5.05413131308,
5.00265662908,
4.98069175608,
5.08024901708,
5.013239459079999
]
},
{
"command": "pnpr@HEAD",
"mean": 3.40950617668,
"stddev": 0.1408394112472943,
"median": 3.4374672225800005,
"user": 3.00091956,
"system": 3.2145221800000003,
"min": 3.23175335208,
"max": 3.63705840108,
"times": [
3.30521171008,
3.53926583708,
3.4294102690800004,
3.46555693008,
3.23175335208,
3.2410998390800003,
3.63705840108,
3.44552417608,
3.26959634408,
3.5305849080800003
]
},
{
"command": "pnpr@main",
"mean": 3.4373172277800004,
"stddev": 0.11897390717177564,
"median": 3.4595968270800004,
"user": 2.99361536,
"system": 3.21943878,
"min": 3.2417522350800003,
"max": 3.58770848708,
"times": [
3.58770848708,
3.2673197760800003,
3.3931655590800003,
3.57913521008,
3.2417522350800003,
3.52409752708,
3.4754831310800003,
3.37363264708,
3.44371052308,
3.4871671820800003
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.4736729969,
"stddev": 0.01988275994138461,
"median": 1.4725461172999998,
"user": 1.48093824,
"system": 1.74893644,
"min": 1.4445979398,
"max": 1.5068167927999998,
"times": [
1.4939646057999998,
1.4852475297999999,
1.4675453108,
1.4760688868,
1.4594067778,
1.4858923128,
1.4481664647999999,
1.4690233477999999,
1.4445979398,
1.5068167927999998
]
},
{
"command": "pacquet@main",
"mean": 1.4567829922999997,
"stddev": 0.009725489404982754,
"median": 1.4575337868,
"user": 1.41337924,
"system": 1.7513766400000002,
"min": 1.4437291957999998,
"max": 1.4723695918,
"times": [
1.4723695918,
1.4484561688,
1.4638862747999999,
1.4637713267999999,
1.4437291957999998,
1.4496257838,
1.4587093037999999,
1.4451983188,
1.4563582698,
1.4657256887999999
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5177424932999999,
"stddev": 0.013026551806215848,
"median": 1.5174364627999999,
"user": 0.6480081400000001,
"system": 1.5933245399999998,
"min": 1.4977605907999998,
"max": 1.5383577197999998,
"times": [
1.5353325418,
1.5383577197999998,
1.5180746048,
1.5141679938,
1.5217263477999998,
1.5106505008,
1.4977605907999998,
1.5010113587999998,
1.5235449537999999,
1.5167983207999998
]
},
{
"command": "pnpr@main",
"mean": 1.5569991043,
"stddev": 0.039990690480012386,
"median": 1.5378240927999998,
"user": 0.62949044,
"system": 1.6218846399999998,
"min": 1.5209878698,
"max": 1.6376384588,
"times": [
1.5800830897999998,
1.6376384588,
1.6139576618,
1.5362554927999998,
1.5294985657999998,
1.5301853077999998,
1.5393926928,
1.5209878698,
1.5343291857999999,
1.5476627178
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.25700590494,
"stddev": 0.06398961006732744,
"median": 3.25169131224,
"user": 1.9978721,
"system": 2.07206746,
"min": 3.1819651227400003,
"max": 3.40302433374,
"times": [
3.25694165874,
3.24644096574,
3.19668531374,
3.26801062974,
3.20627294774,
3.2260747967400003,
3.1819651227400003,
3.40302433374,
3.29104438774,
3.29359889274
]
},
{
"command": "pacquet@main",
"mean": 3.2470729066399997,
"stddev": 0.03425593501701547,
"median": 3.25205300524,
"user": 1.9498722999999998,
"system": 2.0743220599999996,
"min": 3.19831519274,
"max": 3.29089097674,
"times": [
3.22278056674,
3.19831519274,
3.21624277474,
3.29089097674,
3.2516849417400002,
3.28885512374,
3.2742954987400004,
3.2693067297400003,
3.25242106874,
3.2059361927400003
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5419212412399999,
"stddev": 0.026816789530662553,
"median": 1.5312341222399999,
"user": 0.6656525,
"system": 1.6317052599999997,
"min": 1.51925847474,
"max": 1.59625729374,
"times": [
1.58337938174,
1.53075359474,
1.52531341574,
1.53811584174,
1.51947541774,
1.59625729374,
1.51925847474,
1.5317146497399998,
1.54807598174,
1.5268683607399998
]
},
{
"command": "pnpr@main",
"mean": 1.5420977486400003,
"stddev": 0.030830070337618636,
"median": 1.53432625774,
"user": 0.6209104,
"system": 1.5954412599999999,
"min": 1.5111745587399998,
"max": 1.59558266674,
"times": [
1.5376447817399999,
1.55412262674,
1.59558266674,
1.53500516574,
1.59547340574,
1.53364734974,
1.52585459574,
1.5111745587399998,
1.51553799374,
1.51693434174
]
}
]
} |
|
| Branch | pr/12643 |
| Testbed | pacquet |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result milliseconds (ms) (Result Δ%) | Upper Boundary milliseconds (ms) (Limit %) |
|---|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot 🚷 view threshold | 4,989.02 ms(+4.65%)Baseline: 4,767.28 ms | 5,720.74 ms (87.21%) |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot 🚷 view threshold | 3,257.01 ms(+7.10%)Baseline: 3,041.08 ms | 3,649.30 ms (89.25%) |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot 🚷 view threshold | 1,473.67 ms(+9.25%)Baseline: 1,348.95 ms | 1,618.74 ms (91.04%) |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot 🚷 view threshold | 4,677.28 ms(+0.09%)Baseline: 4,672.86 ms | 5,607.43 ms (83.41%) |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot 🚷 view threshold | 671.47 ms(+6.99%)Baseline: 627.61 ms | 753.14 ms (89.16%) |
|
| Branch | pr/12643 |
| 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 | 3,409.51 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 1,541.92 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 1,517.74 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 3,024.82 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 728.59 ms |
|
Code review by qodo was updated up to the latest commit 27e17c6 |
1 similar comment
|
Code review by qodo was updated up to the latest commit 27e17c6 |
Summary
Fixes #12582.
Already up to datewhen the wanted lockfile records packages but the current lockfile under the virtual store is missing.preferFrozenLockfileauto-frozen materialization path, not only after explicit--frozen-lockfile.Squash Commit Body
Checklist
pacquet/port, or the description notes what still needs porting.TypeScript pnpm already repairs this scenario; this PR ports the matching behavior to pacquet.
Not needed; this is a parity bug fix with no documented surface change.
Written by an agent (Codex, GPT-5).
Summary by CodeRabbit