Repository navigation
Conversation
|
Warning Review limit reached
Next review available in: 2 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe install pipeline now carries a ChangesMinimum release age persistence
Estimated code review effort: 3 (Moderate) | ~25 minutes Assessment against linked issues
Sequence Diagram(s)sequenceDiagram
participant User
participant Install
participant MinimumReleaseAge
participant WorkspaceManifest
User->>Install: run clean loose-mode install
Install->>MinimumReleaseAge: handle immature package selections
MinimumReleaseAge->>WorkspaceManifest: persist minimumReleaseAgeExclude entries
WorkspaceManifest-->>Install: updated workspace configuration
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 |
PR Summary by QodoFix loose-mode minimumReleaseAge to persist excludes in pnpm-workspace.yaml
AI Description
Diagram
High-Level Assessment
Files changed (21)
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pnpm/crates/cli/src/cli_args/dedupe.rs`:
- Line 110: Update the dedupe options construction around
persist_policy_excludes to disable exclusion persistence when self.check is
enabled, ensuring non-mutating check mode cannot write the workspace manifest.
Add a regression test verifying dedupe --check leaves the workspace manifest
unchanged.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 24c3bb4d-5539-40c8-b5da-de18ba3dd703
📒 Files selected for processing (21)
.changeset/loose-minimum-release-age-persist.mdpnpm/crates/cli/src/cli_args/dedupe.rspnpm/crates/cli/src/cli_args/deploy.rspnpm/crates/cli/src/cli_args/fetch.rspnpm/crates/cli/src/cli_args/import.rspnpm/crates/cli/src/cli_args/install.rspnpm/crates/cli/src/cli_args/link.rspnpm/crates/cli/src/cli_args/prune.rspnpm/crates/cli/src/cli_args/rebuild.rspnpm/crates/napi/src/install.rspnpm/crates/package-manager/src/add.rspnpm/crates/package-manager/src/install.rspnpm/crates/package-manager/src/install/materialize.rspnpm/crates/package-manager/src/install/run.rspnpm/crates/package-manager/src/install/tests.rspnpm/crates/package-manager/src/install_with_fresh_lockfile.rspnpm/crates/package-manager/src/minimum_release_age.rspnpm/crates/package-manager/src/minimum_release_age/tests.rspnpm/crates/package-manager/src/remove.rspnpm/crates/package-manager/src/update.rspnpr/crates/pnpr/src/resolver/resolve.rs
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (3): Last reviewed commit: "test(cli): pin the dedupe --check regres..." | Re-trigger Greptile |
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13708 +/- ##
==========================================
+ Coverage 88.19% 88.20% +0.01%
==========================================
Files 615 615
Lines 99955 100003 +48
==========================================
+ Hits 88157 88211 +54
+ Misses 11798 11792 -6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Re the Qodo summary findings:
Written by an agent (Claude Code, claude-fable-5). |
…he exclude list A fresh resolve that lets immature versions through under minimumReleaseAgeStrict: false now appends them to minimumReleaseAgeExclude in pnpm-workspace.yaml, matching the TypeScript CLI's loose-mode auto-persist. Without the entries, the committed lockfile failed verification on the next frozen install with ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION (e.g. in CI). The new Install.persist_policy_excludes flag gates the write: it is set for the user-facing resolving commands (install, add, update with --save, dedupe) and off for embedder-driven installs (napi, pnpr server) and commands that must not touch the workspace manifest, mirroring which TypeScript commands route through the policy handlers. Closes #13687 Co-Authored-By: Claude Fable 5 <[email protected]>
The check contract is mutate-nothing: the lockfile guard already restores pnpm-lock.yaml, so the loose-mode exclude persist must be gated off too. The TypeScript CLI cannot reach its persist step under dedupe --check (a poisoned lockfile fails eager verification first, and a lockfile diff throws before the persist point), so this keeps the stacks identical. Also shrinks a test doc comment that restated the test body. Co-Authored-By: Claude Fable 5 <[email protected]>
An interactive strict-mode approval during a non-persisting run (dedupe --check) proceeded with the install but must not write the exclude list. Also short-circuits before scanning violations when neither strict mode nor persistence is active. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pnpm/crates/cli/tests/dedupe.rs`:
- Around line 335-342: Strengthen the `dedupe --check` test by asserting the
canonical `DedupeError::CheckIssues` code or message from the command output,
rather than accepting any non-zero exit status. Keep the existing manifest
immutability assertion, and ensure the test still specifically exercises
loose-mode minimum-release-age handling.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 2105b446-95bb-4df3-8c5c-4483c60f6785
📒 Files selected for processing (5)
pnpm/crates/cli/src/cli_args/dedupe.rspnpm/crates/cli/tests/dedupe.rspnpm/crates/package-manager/src/install/tests.rspnpm/crates/package-manager/src/minimum_release_age.rspnpm/crates/package-manager/src/minimum_release_age/tests.rs
🚧 Files skipped from review as they are similar to previous changes (4)
- pnpm/crates/package-manager/src/minimum_release_age/tests.rs
- pnpm/crates/package-manager/src/install/tests.rs
- pnpm/crates/cli/src/cli_args/dedupe.rs
- pnpm/crates/package-manager/src/minimum_release_age.rs
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…rror Any earlier failure (registry, config) also exits nonzero and leaves the workspace manifest untouched, which would pass the assertion without exercising the loose-mode persistence gate. Co-Authored-By: Claude Fable 5 <[email protected]>
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit d434ac8 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
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. 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.6250547389200003,
"stddev": 0.1653637374458853,
"median": 2.65705860092,
"user": 1.7758048600000003,
"system": 1.3910832999999998,
"min": 2.39695687592,
"max": 2.87565085792,
"times": [
2.70136115592,
2.61275604592,
2.87565085792,
2.7973606159199997,
2.39695687592,
2.71511067792,
2.50044581292,
2.41725499492,
2.73653849392,
2.49711185792
]
},
{
"command": "pacquet@main",
"mean": 2.5571419451199997,
"stddev": 0.15782626274190528,
"median": 2.50147355292,
"user": 1.7678364600000003,
"system": 1.3930694999999997,
"min": 2.37503950792,
"max": 2.8191671339199997,
"times": [
2.57426914892,
2.37503950792,
2.73835702692,
2.49681299492,
2.5061341109199997,
2.75163874892,
2.8191671339199997,
2.46937075792,
2.41766649892,
2.42296352192
]
},
{
"command": "pnpr@HEAD",
"mean": 1.62533838952,
"stddev": 0.12753676462147773,
"median": 1.62985948242,
"user": 1.21786126,
"system": 1.3393068000000004,
"min": 1.4322022429199999,
"max": 1.77542711892,
"times": [
1.5938888009199998,
1.76420896092,
1.57973416592,
1.4322022429199999,
1.66583016392,
1.77542711892,
1.54212226492,
1.76071156792,
1.69435134092,
1.44490726792
]
},
{
"command": "pnpr@main",
"mean": 1.5298826178199998,
"stddev": 0.16005272673682355,
"median": 1.4732663064199998,
"user": 1.13708576,
"system": 1.226079,
"min": 1.3729142589199999,
"max": 1.76722626092,
"times": [
1.40616326692,
1.76600545292,
1.50097196492,
1.76722626092,
1.55331509592,
1.40281718792,
1.3729142589199999,
1.4455606479199998,
1.37823496392,
1.70561707792
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.28573399834,
"stddev": 0.01879777782083539,
"median": 0.2799830481400001,
"user": 0.21787035999999999,
"system": 0.5818703399999999,
"min": 0.26710400614,
"max": 0.31796200014000003,
"times": [
0.30357417714,
0.31796200014000003,
0.30674243014,
0.28709599714000006,
0.26710400614,
0.26933728914000005,
0.26968508414000003,
0.26913558014000005,
0.27287009914000004,
0.29383332014
]
},
{
"command": "pacquet@main",
"mean": 0.27343672764000004,
"stddev": 0.013880867587231928,
"median": 0.27232384064000004,
"user": 0.21047925999999997,
"system": 0.5474851399999999,
"min": 0.25292466314000006,
"max": 0.29657381914000003,
"times": [
0.27559591014,
0.26744719114000004,
0.25292466314000006,
0.27456258514000004,
0.25634164614000005,
0.29301411814000006,
0.29657381914000003,
0.27886252914000004,
0.27008509614000004,
0.26895971814
]
},
{
"command": "pnpr@HEAD",
"mean": 0.28760466864000006,
"stddev": 0.012472685766998755,
"median": 0.28483509214,
"user": 0.23558386000000003,
"system": 0.54221774,
"min": 0.27561507614,
"max": 0.31745866214,
"times": [
0.31745866214,
0.29324084514000004,
0.27709787814000003,
0.28640997714000005,
0.29087490214000006,
0.28326020714000005,
0.29384761814000004,
0.27699746814000004,
0.28124405214000003,
0.27561507614
]
},
{
"command": "pnpr@main",
"mean": 0.28448533294,
"stddev": 0.008929290724226503,
"median": 0.28276131864000004,
"user": 0.24901365999999997,
"system": 0.51888764,
"min": 0.27419784814000003,
"max": 0.30265459614000007,
"times": [
0.27419784814000003,
0.28203713514000006,
0.29583158214000005,
0.27629056814,
0.28348550214,
0.28149441414000004,
0.28785747114000004,
0.27684822814000004,
0.30265459614000007,
0.28415598414000004
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.69704952182,
"stddev": 0.07190934001063885,
"median": 2.68504007852,
"user": 1.82651434,
"system": 1.5210524800000003,
"min": 2.59865200102,
"max": 2.80104214102,
"times": [
2.66603598502,
2.69482551802,
2.59865200102,
2.61527928002,
2.65269988102,
2.67962791102,
2.69045224602,
2.80104214102,
2.77428086502,
2.7975993900200002
]
},
{
"command": "pacquet@main",
"mean": 2.68090731082,
"stddev": 0.05545947925172743,
"median": 2.67206637652,
"user": 1.8116600400000002,
"system": 1.46844858,
"min": 2.60252531302,
"max": 2.75653499002,
"times": [
2.74525130002,
2.70150008302,
2.75653499002,
2.70622765202,
2.7405947040200003,
2.63245872902,
2.6426326700200002,
2.64134715102,
2.60252531302,
2.64000051602
]
},
{
"command": "pnpr@HEAD",
"mean": 1.6629699854200002,
"stddev": 0.15507572663948374,
"median": 1.5930429140200002,
"user": 1.14467334,
"system": 1.2239267799999998,
"min": 1.4880078970200001,
"max": 1.91685751202,
"times": [
1.5970781400200003,
1.79249647402,
1.5890076880200001,
1.77209406902,
1.91685751202,
1.8550233250200001,
1.5557744700200002,
1.5347603790200002,
1.4880078970200001,
1.5285999000200001
]
},
{
"command": "pnpr@main",
"mean": 1.5946865835200004,
"stddev": 0.1367093538630116,
"median": 1.5568864525200001,
"user": 1.15337024,
"system": 1.3137380799999998,
"min": 1.45740878702,
"max": 1.84279672102,
"times": [
1.7887033470200002,
1.49543066102,
1.49106477202,
1.5337814870200002,
1.5840473730200002,
1.6995307780200002,
1.4741104910200002,
1.57999141802,
1.45740878702,
1.84279672102
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.4512807708000001,
"stddev": 0.03195015294275767,
"median": 0.43966933970000005,
"user": 0.5865826999999999,
"system": 0.71443608,
"min": 0.41481661970000006,
"max": 0.5096010737,
"times": [
0.42041588170000005,
0.41481661970000006,
0.44108431370000006,
0.5096010737,
0.5009223537,
0.45676189170000003,
0.43615008470000005,
0.43196127870000006,
0.43825436570000004,
0.46283984470000006
]
},
{
"command": "pacquet@main",
"mean": 0.4430312752000001,
"stddev": 0.02212167894183725,
"median": 0.44064193620000003,
"user": 0.5820220999999999,
"system": 0.70803328,
"min": 0.4102223997000001,
"max": 0.47302982070000005,
"times": [
0.44267332570000006,
0.43556945170000005,
0.47302982070000005,
0.41370040770000005,
0.43183736470000006,
0.4721868927,
0.46540565470000006,
0.44707688770000004,
0.4102223997000001,
0.43861054670000005
]
},
{
"command": "pnpr@HEAD",
"mean": 0.33641237580000005,
"stddev": 0.026727710937596454,
"median": 0.32693149020000006,
"user": 0.23062189999999996,
"system": 0.5696748800000001,
"min": 0.31474692470000004,
"max": 0.39623113770000007,
"times": [
0.32885680070000006,
0.32500617970000006,
0.3316026697,
0.31624483470000003,
0.3188027707,
0.3687465207,
0.39623113770000007,
0.34552716470000006,
0.3183587547,
0.31474692470000004
]
},
{
"command": "pnpr@main",
"mean": 0.33186590930000004,
"stddev": 0.023569091061182393,
"median": 0.32269408720000003,
"user": 0.22325519999999996,
"system": 0.56023188,
"min": 0.30504086170000005,
"max": 0.37970744770000003,
"times": [
0.31697165270000005,
0.30504086170000005,
0.34080119870000003,
0.31092269470000006,
0.31631387470000005,
0.3274489997,
0.31793917470000005,
0.35320891870000004,
0.37970744770000003,
0.35030426970000006
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.7834352261000004,
"stddev": 0.03106362860228742,
"median": 1.7746641686000002,
"user": 0.8499642199999998,
"system": 0.8579291399999999,
"min": 1.7359168726000003,
"max": 1.8507015216,
"times": [
1.7721284296000002,
1.7741620386,
1.8146421616000001,
1.8507015216,
1.7815051836000002,
1.7949058336000001,
1.7751662986,
1.7698094326000002,
1.7359168726000003,
1.7654144886000003
]
},
{
"command": "pacquet@main",
"mean": 1.7370074177000003,
"stddev": 0.01570117201824746,
"median": 1.7332820521,
"user": 0.77865242,
"system": 0.78312254,
"min": 1.7164798076,
"max": 1.7597629486000002,
"times": [
1.7413197746,
1.7269335496,
1.7235983796,
1.7597629486000002,
1.7556258786,
1.7164798076,
1.7396305546000002,
1.7245479176000003,
1.7262958186000001,
1.7558795476000002
]
},
{
"command": "pnpr@HEAD",
"mean": 0.32745647640000003,
"stddev": 0.007909453529796065,
"median": 0.32854904910000005,
"user": 0.21734922,
"system": 0.54694884,
"min": 0.31524991760000004,
"max": 0.3434403536,
"times": [
0.3274635576,
0.33030034160000005,
0.3256176566,
0.33058522960000003,
0.31885705760000005,
0.3296345406,
0.31524991760000004,
0.32134715560000005,
0.33206895360000005,
0.3434403536
]
},
{
"command": "pnpr@main",
"mean": 0.3339403106000001,
"stddev": 0.019579003876564603,
"median": 0.33098042860000004,
"user": 0.24460342000000002,
"system": 0.5434968399999999,
"min": 0.3089937876,
"max": 0.3623329436,
"times": [
0.33021524360000004,
0.31442256760000004,
0.31284446860000004,
0.3089937876,
0.33746516260000003,
0.33174561360000004,
0.3622795736,
0.3517661796,
0.3623329436,
0.32733756560000005
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.23849362964666668,
"stddev": 0.016573000379937947,
"median": 0.24145004848,
"user": 0.19349283666666664,
"system": 0.07722048,
"min": 0.21233520648,
"max": 0.25838774448,
"times": [
0.23338722348000002,
0.24951287348,
0.25838774448,
0.23289395348000003,
0.21233520648,
0.25103534948,
0.25826322947999997,
0.21643197948,
0.21966725148000002,
0.25080042748,
0.25007337048,
0.22913494648000002
]
},
{
"command": "pacquet@main",
"mean": 0.23577474411636362,
"stddev": 0.013887689050595193,
"median": 0.23541940848,
"user": 0.18844119272727272,
"system": 0.0691705709090909,
"min": 0.21187539048,
"max": 0.25538916748,
"times": [
0.24589046348000002,
0.23505949048000002,
0.23711708648000002,
0.23005999748000003,
0.25092346948,
0.25538916748,
0.21739701648,
0.23541940848,
0.22570431748000003,
0.21187539048,
0.24868637748000003
]
},
{
"command": "pnpr@HEAD",
"mean": 0.09545095444666665,
"stddev": 0.004907359948904837,
"median": 0.09482459498000001,
"user": 0.02335072,
"system": 0.013443913333333333,
"min": 0.08724763348,
"max": 0.10660683248000001,
"times": [
0.09521089648000002,
0.08791621248,
0.08724763348,
0.09223157748000001,
0.09443829348,
0.09319883748,
0.08929373548000001,
0.09744249848000001,
0.09343688748000001,
0.10470560448,
0.10000702648000001,
0.10660683248000001,
0.09764138248000001,
0.10627559048000002,
0.10125459548000001,
0.09371021148000001,
0.09678682448,
0.09190286748000001,
0.09019861048000001,
0.09061315948000001,
0.09629377548000001,
0.09588953348000001,
0.09278977748,
0.09965697848,
0.09619623248,
0.09532661448,
0.09314626948,
0.09164821848,
0.09843546948000001,
0.09402648648
]
},
{
"command": "pnpr@main",
"mean": 0.09181945268000001,
"stddev": 0.0038247046182209405,
"median": 0.09130754848,
"user": 0.022922286666666663,
"system": 0.011690530666666669,
"min": 0.08529721148000001,
"max": 0.10697992448000002,
"times": [
0.09228996748000001,
0.09545805248000001,
0.10697992448000002,
0.09434475548000001,
0.09481940948,
0.09155788848,
0.09106346948,
0.09089160448000001,
0.09346634148,
0.08884649348000001,
0.09254943548000001,
0.09045745848,
0.09588065748,
0.09348056948000001,
0.08968709648,
0.08913528748,
0.09023719348,
0.08682395548,
0.08872216948,
0.08978134348000001,
0.08845285248000001,
0.08529721148000001,
0.08966053648000001,
0.09339319448000001,
0.08989174148000001,
0.09183512048,
0.09333815048,
0.09008258148,
0.09460749048000001,
0.09155162748000001
]
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.1749374888155557,
"stddev": 0.37771309951214715,
"median": 1.08507593026,
"user": 1.1445153311111111,
"system": 0.2185547,
"min": 0.9132051562600001,
"max": 2.11929133026,
"times": [
1.08507593026,
0.9951945082600001,
1.10894994126,
1.10158073726,
2.11929133026,
0.9714813412600001,
0.9312007292600001,
1.3484577252599999,
0.9132051562600001
]
},
{
"command": "pacquet@main",
"mean": 1.1716021899266669,
"stddev": 0.2070718388808955,
"median": 1.21947010326,
"user": 1.143475331111111,
"system": 0.21651647777777777,
"min": 0.7396902152600001,
"max": 1.43473220726,
"times": [
1.04464847226,
1.2470547002599999,
1.3758756292599998,
1.0428018852599998,
0.7396902152600001,
1.43473220726,
1.22803890626,
1.21210759026,
1.21947010326
]
},
{
"command": "pnpm@HEAD",
"mean": 3.9106064274822225,
"stddev": 0.35420495109912004,
"median": 4.05293877526,
"user": 6.002184553333332,
"system": 0.37694947777777776,
"min": 3.41279620026,
"max": 4.361789440260001,
"times": [
3.61793847026,
3.54726517326,
3.64258188026,
3.41279620026,
4.27753383126,
4.361789440260001,
4.11429105126,
4.05293877526,
4.16832302526
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.865893981280001,
"stddev": 0.17985874162064658,
"median": 4.82590106798,
"user": 2.9596028199999997,
"system": 2.1505872999999993,
"min": 4.67944233898,
"max": 5.14291984198,
"times": [
5.11102943598,
4.93394014698,
4.68618400198,
5.03172779598,
5.14291984198,
4.7826707419800005,
4.70191736598,
4.67944233898,
4.86913139398,
4.71997674898
]
},
{
"command": "pacquet@main",
"mean": 5.250209720480001,
"stddev": 0.2606580554870681,
"median": 5.272669777480001,
"user": 3.6474819199999997,
"system": 2.7351967,
"min": 4.85749092198,
"max": 5.66930886798,
"times": [
5.19976868898,
5.66930886798,
5.44431948798,
4.96440556898,
5.29953856198,
5.4092562629800005,
4.95305717298,
5.45915067798,
5.2458009929800005,
4.85749092198
]
},
{
"command": "pnpr@HEAD",
"mean": 3.9218101131800003,
"stddev": 0.13494648645569968,
"median": 3.8930396709800004,
"user": 2.22369432,
"system": 2.2917575,
"min": 3.74612733998,
"max": 4.21307649398,
"times": [
4.21307649398,
3.98237677798,
3.9633926229800003,
3.81245422298,
3.92911238298,
3.85696695898,
4.0356656629800005,
3.8341912329800003,
3.74612733998,
3.84473743598
]
},
{
"command": "pnpr@main",
"mean": 3.6628704941800003,
"stddev": 0.06182514839661247,
"median": 3.65890264648,
"user": 1.85706192,
"system": 1.7966954999999998,
"min": 3.5919818659800002,
"max": 3.78631935298,
"times": [
3.6283046149800002,
3.60112072998,
3.65836267998,
3.68012788498,
3.5919818659800002,
3.60911948798,
3.7387524559800003,
3.65944261298,
3.67517325598,
3.78631935298
]
}
]
} |
Summary
Fixes #13687.
In the Rust CLI (v12), a fresh resolve that let immature versions through under
minimumReleaseAgewithminimumReleaseAgeStrict: false(the default) did not record them inminimumReleaseAgeExcludeinpnpm-workspace.yaml. The TypeScript CLI has done this since v11.20 (Added N entries to minimumReleaseAgeExclude in pnpm-workspace.yaml (set minimumReleaseAgeStrict to true to gate these updates with a prompt)). Without the persisted entries, the committed lockfile then failed verification on the next frozen install withERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION— the CI failure reported in the issue.handle_minimum_release_age_violationsnow has a loose-mode branch that merges the immature picks intominimumReleaseAgeExcludeand emits the same notice as the TypeScript CLI. A newInstall.persist_policy_excludesflag gates the write, mirroring which TypeScript commands route through the policy handlers (installDeps/recursive/ global policy callbacks):trueforinstall(incl. the re-resolving installs triggered bypatch-commit/unlink),add,dedupe, andupdatewith--save;falseforupdate --no-save, embedder-driven installs (napi, the pnpr server), and commands that must not touch the workspace manifest (remove,link,import,prune,fetch,deploy,rebuild). Frozen installs never resolve, so the flag is inert there.Persistence is also skipped under
--dry-run, matching the TypeScript gate (opts.save !== false && !opts.dryRun).Rust-only change: the TypeScript CLI already has this behavior, so nothing needs porting.
Squash Commit Body
Checklist
already linked to it solves it.
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 (Claude Code, claude-fable-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
New Features
Bug Fixes
dedupe --checkremain non-persistent.