Repository navigation
Conversation
The shared-lockfile deploy built the deployed package.json dependency groups by iterating the lockfile importer's HashMap, and serialized allowBuilds into the deployed pnpm-workspace.yaml from a HashMap, so both came out in a different order on every run. Sort both by name, which matches the lockfile importer order that v11 writes. Closes #16687 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughDeploy now sorts dependency entries and workspace ChangesDeploy manifest ordering
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Assessment against linked issues
Out-of-scope changes
Suggested labels: Merge Risk: ⚪ Minimal · up to No actionable issue is established for the reviewed change; it is mergeable after normal checks. ✨ 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16692 +/- ##
=======================================
Coverage 92.36% 92.37%
=======================================
Files 1594 1594
Lines 210433 210436 +3
=======================================
+ Hits 194368 194382 +14
+ Misses 16065 16054 -11 ☔ 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-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.4509392075000003,
"stddev": 0.13885254991635024,
"median": 2.4406442082,
"user": 1.48618754,
"system": 1.4509018,
"min": 2.2929202032,
"max": 2.6276834482
},
{
"command": "pacquet@main",
"mean": 2.4539916295999995,
"stddev": 0.1320283949130851,
"median": 2.4076979002000005,
"user": 1.4772597399999996,
"system": 1.5024283,
"min": 2.3200168602,
"max": 2.6409630782000004
},
{
"command": "pnpr@HEAD",
"mean": 1.4811015872,
"stddev": 0.1561430983827592,
"median": 1.4336016462,
"user": 1.42531064,
"system": 1.405562,
"min": 1.3134612371999999,
"max": 1.7061547341999999
},
{
"command": "pnpr@main",
"mean": 1.4573602797,
"stddev": 0.1445113053514988,
"median": 1.3844311277,
"user": 1.48826464,
"system": 1.4618677999999998,
"min": 1.3272401822,
"max": 1.7135763762
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.30662228682000003,
"stddev": 0.01105908677192346,
"median": 0.30327462162,
"user": 0.35327812000000003,
"system": 0.79204962,
"min": 0.28956823462000003,
"max": 0.32490524962
},
{
"command": "pacquet@main",
"mean": 0.30608511892,
"stddev": 0.01586772790308013,
"median": 0.30265545062,
"user": 0.35240452,
"system": 0.7947544200000001,
"min": 0.28963267462000003,
"max": 0.34520649462
},
{
"command": "pnpr@HEAD",
"mean": 0.31613919352,
"stddev": 0.007875964802522813,
"median": 0.31284475812,
"user": 0.35693902000000005,
"system": 0.78473422,
"min": 0.30835388662,
"max": 0.32835738062000003
},
{
"command": "pnpr@main",
"mean": 0.32478897872000007,
"stddev": 0.010909035501269574,
"median": 0.32453232112,
"user": 0.3585785200000001,
"system": 0.7813808200000001,
"min": 0.30832195762000003,
"max": 0.34640277562
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.010808642983107573,
"stddev": 0.0011120871343067963,
"median": 0.01071446576,
"user": 0.006540505816733065,
"system": 0.005362589482071714,
"min": 0.00814265276,
"max": 0.01448463076
},
{
"command": "pacquet@main",
"mean": 0.010360958349211618,
"stddev": 0.0009381563988061645,
"median": 0.010168925760000001,
"user": 0.00603179817427386,
"system": 0.005185733112033195,
"min": 0.00837107276,
"max": 0.014022150760000001
},
{
"command": "pnpr@HEAD",
"mean": 0.011316745710704222,
"stddev": 0.0010245284031888202,
"median": 0.01119966126,
"user": 0.00634296704225352,
"system": 0.00610875464788732,
"min": 0.00906492276,
"max": 0.015129312760000001
},
{
"command": "pnpr@main",
"mean": 0.01141429664582677,
"stddev": 0.0015808917034881528,
"median": 0.011468686260000001,
"user": 0.006293743464566928,
"system": 0.006148864566929134,
"min": 0.007825181760000001,
"max": 0.015571613760000002
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.014214822434803142,
"stddev": 0.0043509397716332,
"median": 0.012239982860000002,
"user": 0.007871166456692915,
"system": 0.007956056692913386,
"min": 0.008812773860000001,
"max": 0.02632826886
},
{
"command": "pacquet@main",
"mean": 0.010129444789515418,
"stddev": 0.0011820684851180526,
"median": 0.00976937486,
"user": 0.005244797973568289,
"system": 0.006168634361233479,
"min": 0.00874996486,
"max": 0.015030302860000002
},
{
"command": "pnpr@HEAD",
"mean": 0.009502116826666669,
"stddev": 0.0004938745863494023,
"median": 0.009447410360000002,
"user": 0.005157810476190475,
"system": 0.005610937142857141,
"min": 0.008491044860000001,
"max": 0.012450842860000002
},
{
"command": "pnpr@main",
"mean": 0.00962231550285714,
"stddev": 0.0006440537224585147,
"median": 0.009546184860000001,
"user": 0.005246975462184873,
"system": 0.005595352100840337,
"min": 0.008425884860000002,
"max": 0.013059992860000001
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.61316660368,
"stddev": 0.048656615500917884,
"median": 2.60362406268,
"user": 2.2978602599999993,
"system": 1.7802782799999999,
"min": 2.56788825568,
"max": 2.70266909268
},
{
"command": "pacquet@main",
"mean": 2.6013375553799998,
"stddev": 0.027211725831609992,
"median": 2.59645882418,
"user": 2.1878319600000005,
"system": 1.7750618799999998,
"min": 2.56769613468,
"max": 2.65869039168
},
{
"command": "pnpr@HEAD",
"mean": 1.5298904154800002,
"stddev": 0.1324642961262148,
"median": 1.48360382068,
"user": 1.32702776,
"system": 1.3924787799999998,
"min": 1.42184876168,
"max": 1.79215878968
},
{
"command": "pnpr@main",
"mean": 1.6427369531800005,
"stddev": 0.1322244793656166,
"median": 1.6344661296800003,
"user": 1.3600428599999996,
"system": 1.4592050799999998,
"min": 1.44660683368,
"max": 1.8340634146800001
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.5098526639800001,
"stddev": 0.03275455624457949,
"median": 0.51337242498,
"user": 0.69532802,
"system": 0.78138626,
"min": 0.45944941698,
"max": 0.57687108398
},
{
"command": "pacquet@main",
"mean": 0.60831162008,
"stddev": 0.12663190273604372,
"median": 0.53960817398,
"user": 0.8529653199999998,
"system": 0.9614474600000001,
"min": 0.47668163298000005,
"max": 0.79261459298
},
{
"command": "pnpr@HEAD",
"mean": 0.31509570918,
"stddev": 0.01095671124621926,
"median": 0.31151697248000004,
"user": 0.28519552000000004,
"system": 0.59962946,
"min": 0.30169550898,
"max": 0.33550089198000005
},
{
"command": "pnpr@main",
"mean": 0.3111041072800001,
"stddev": 0.013382756581399424,
"median": 0.30558127648000005,
"user": 0.27291032000000004,
"system": 0.60757646,
"min": 0.28908121598000003,
"max": 0.32941973798
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.8570642892600002,
"stddev": 0.09380159652282476,
"median": 1.86707769186,
"user": 1.38660828,
"system": 1.1126680800000002,
"min": 1.73285846086,
"max": 2.00437093886
},
{
"command": "pacquet@main",
"mean": 1.73454196936,
"stddev": 0.06570215834305071,
"median": 1.72082247636,
"user": 1.10760758,
"system": 0.93384078,
"min": 1.68275720286,
"max": 1.91228597086
},
{
"command": "pnpr@HEAD",
"mean": 0.3377961984600001,
"stddev": 0.0369628429044589,
"median": 0.32933857636,
"user": 0.30232858,
"system": 0.63514598,
"min": 0.29174416286000004,
"max": 0.39317577986
},
{
"command": "pnpr@main",
"mean": 0.37364753856,
"stddev": 0.03170003233883271,
"median": 0.37106447136000004,
"user": 0.33111697999999995,
"system": 0.6939165800000001,
"min": 0.31684317386000005,
"max": 0.43298381986000006
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.23505411022333336,
"stddev": 0.01378733131442717,
"median": 0.23239134964000002,
"user": 0.20884748333333333,
"system": 0.09177243333333333,
"min": 0.21426786314000001,
"max": 0.26008962014000003
},
{
"command": "pacquet@main",
"mean": 0.23036717167846146,
"stddev": 0.01585513288255523,
"median": 0.22896319414000002,
"user": 0.22436016923076924,
"system": 0.06679713846153845,
"min": 0.20251014514000001,
"max": 0.25892310714
},
{
"command": "pnpr@HEAD",
"mean": 0.09519376634689655,
"stddev": 0.0023388666529607326,
"median": 0.09545265614,
"user": 0.03565643448275862,
"system": 0.015797110344827586,
"min": 0.09121827514,
"max": 0.10028610514
},
{
"command": "pnpr@main",
"mean": 0.0956740723124138,
"stddev": 0.0028555182405453133,
"median": 0.09627135514,
"user": 0.035862055172413795,
"system": 0.0158453724137931,
"min": 0.09129677214,
"max": 0.10294796814
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.30626020605111115,
"stddev": 0.0333200586671965,
"median": 0.29666815194,
"user": 0.31389798222222215,
"system": 0.08437405555555556,
"min": 0.27016960194,
"max": 0.36761946894
},
{
"command": "pacquet@main",
"mean": 0.2659148452733333,
"stddev": 0.022528886601171562,
"median": 0.26531196994,
"user": 0.2697683155555555,
"system": 0.08191794444444445,
"min": 0.23679952094,
"max": 0.29774827494
},
{
"command": "pnpm@HEAD",
"mean": 3.651324543717778,
"stddev": 0.14996629363721817,
"median": 3.65546182294,
"user": 5.2378163155555555,
"system": 0.45340005555555546,
"min": 3.44463260294,
"max": 3.9041719189400004
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.24530189820000003,
"stddev": 0.02012167046517878,
"median": 0.2436151112,
"user": 0.19719235384615383,
"system": 0.1012332476923077,
"min": 0.2255145262,
"max": 0.3023415802
},
{
"command": "pacquet@main",
"mean": 0.24187131753333335,
"stddev": 0.009209934781580205,
"median": 0.2425459292,
"user": 0.19946328333333332,
"system": 0.09782910666666667,
"min": 0.22870620020000001,
"max": 0.2585700122
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.517063501120001,
"stddev": 0.11636852526371315,
"median": 4.4800991021200005,
"user": 1.71971006,
"system": 1.6789012199999997,
"min": 4.41817041162,
"max": 4.76814051262
},
{
"command": "pacquet@main",
"mean": 4.54440614862,
"stddev": 0.11518238729604485,
"median": 4.54779080412,
"user": 1.7036270599999999,
"system": 1.6287059199999998,
"min": 4.41004384762,
"max": 4.67378901862
},
{
"command": "pnpr@HEAD",
"mean": 3.58187241802,
"stddev": 0.10001959778928154,
"median": 3.57915889062,
"user": 1.62646736,
"system": 1.6262521199999997,
"min": 3.4767319156200003,
"max": 3.83083454362
},
{
"command": "pnpr@main",
"mean": 3.62225651132,
"stddev": 0.1290752592205304,
"median": 3.59635920262,
"user": 1.59436836,
"system": 1.5837108199999999,
"min": 3.47543475962,
"max": 3.83339182862
}
]
}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.15055747322235294,
"stddev": 0.006541216964083143,
"median": 0.14824394934,
"user": 0.1859524670588235,
"system": 0.14175005999999998,
"min": 0.14362923234,
"max": 0.16786477234
},
{
"command": "pacquet@main",
"mean": 0.15442323216352943,
"stddev": 0.011034036536759561,
"median": 0.15064545534,
"user": 0.18657993764705885,
"system": 0.15236076588235295,
"min": 0.14034002834,
"max": 0.17781204634
},
{
"command": "pnpr@HEAD",
"mean": 0.17623997312571427,
"stddev": 0.017502465177800384,
"median": 0.17593673034,
"user": 0.21364596285714282,
"system": 0.1472788457142857,
"min": 0.14232495134,
"max": 0.20914101234000002
},
{
"command": "pnpr@main",
"mean": 0.1681153782685714,
"stddev": 0.022487000541292428,
"median": 0.16659347784,
"user": 0.2002308914285714,
"system": 0.14924977428571426,
"min": 0.13371500134,
"max": 0.21801881634
}
]
} |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
PR Summary by QodoFix nondeterministic ordering in deployed manifests
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
Qodo summary findings:
Written by an agent (Claude Code, claude-opus-5-5). |
|
Code review by qodo was updated up to the latest commit e5666f7 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Confirmed:
There are currently no active Qodo findings. |
Summary
pnpm deploy(shared-lockfile path) wrote the dependency groups of the deployedpackage.jsonin a random order on every run, because it iterated the lockfile importer'sHashMap. TheallowBuildsmap in the deployedpnpm-workspace.yamlhad the same problem. Both are now sorted by name, which matches what pnpm v11 writes (the lockfile importer order).v11 is not affected (the issue reports 11.28.2 as stable), so this fixes v12 only.
Closes #16687
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.
The new test
deploy::deploy_writes_dependencies_and_allow_builds_sorted_by_namefails without each half of the fix (verified separately forpackage.jsonandallowBuilds).🤖 Generated with Claude Code
Written by an agent (Claude Code, claude-opus-5-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
allowBuildsentries are also sorted alphabetically in the deployed workspace configuration.