Repository navigation
fix(pacquet): align deprecated package reporting - #13490
Conversation
📝 WalkthroughWalkthroughDeprecations are emitted only on first package insertion, while recursive reporter state shortens direct warnings. Package-manager installation locking is generalized, and cached-link failures fall back to full installation. ChangesDeprecation warning flow
Package-manager installation locking
Estimated code review effort: 3 (Moderate) | ~25 minutes 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 pacquet deprecated-package warnings to match pnpm behavior
AI Description
Diagram
High-Level Assessment
Files changed (9)
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (4): Last reviewed commit: "fix(reporter): preserve lockfile policy ..." | Re-trigger Greptile |
Micro-Benchmark ResultsLinux |
Code Review by Qodo
Context used✅ Compliance rules (platform):
24 rules 1. Unrelated engine-lock changes added
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13490 +/- ##
=======================================
Coverage ? 87.92%
=======================================
Files ? 549
Lines ? 95561
Branches ? 0
=======================================
Hits ? 84021
Misses ? 11540
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Code review by qodo was updated up to the latest commit fb0e6a3 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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/with/install_pnpm_to_store.rs`:
- Around line 57-69: Update install_pnpm_to_store’s package_manager_env_lock
acquisition so the synchronous DirLock::acquire and its blocking wait do not run
on the async executor. Use the project’s async-compatible lock path if
available; otherwise move the entire lock acquisition and guarded synchronous
work into spawn_blocking while preserving the lock’s scope and error
propagation.
- Around line 97-101: Update the post-lock cache-check path in the surrounding
installation flow to treat link_cached_engine_bins failures as cache misses,
matching the fallback behavior of the shown fast path. Do not return the
cached-link error directly after acquiring engine_install_lock; continue into
the full installation path while preserving successful linking.
🪄 Autofix (Beta)
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: ac0fd84f-41d6-42bf-a2a1-6ad1aafe51ac
📒 Files selected for processing (10)
.changeset/fair-warnings-report.mdpnpm/crates/cli/src/cli_args/dispatch.rspnpm/crates/cli/src/cli_args/reporter.rspnpm/crates/cli/src/cli_args/with/install_pnpm_to_store.rspnpm/crates/default-reporter/src/lib.rspnpm/crates/default-reporter/src/state.rspnpm/crates/default-reporter/src/tests.rspnpm/crates/default-reporter/tests/render.rspnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rspnpm/crates/resolving-deps-resolver/src/resolve_workspace/tests.rs
🚧 Files skipped from review as they are similar to previous changes (8)
- pnpm/crates/cli/src/cli_args/reporter.rs
- pnpm/crates/cli/src/cli_args/dispatch.rs
- .changeset/fair-warnings-report.md
- pnpm/crates/default-reporter/tests/render.rs
- pnpm/crates/resolving-deps-resolver/src/resolve_workspace/tests.rs
- pnpm/crates/default-reporter/src/lib.rs
- pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs
- pnpm/crates/default-reporter/src/state.rs
|
Code review by qodo was updated up to the latest commit 7f97363 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
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 @.changeset/quiet-policy-order.md:
- Line 5: Update the changeset text in quiet-policy-order.md to describe the
user-visible deprecation warning alignment and recursive reporter rendering
delivered by this PR, replacing the current lockfile-policy message-ordering
description.
🪄 Autofix (Beta)
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: 8f204e18-a3bd-45f1-9500-3bdfebd224bc
📒 Files selected for processing (4)
.changeset/quiet-policy-order.mdpnpm/crates/cli/src/cli_args/with/install_pnpm_to_store.rspnpm/crates/default-reporter/src/state.rspnpm/crates/default-reporter/tests/render.rs
🚧 Files skipped from review as they are similar to previous changes (3)
- pnpm/crates/default-reporter/tests/render.rs
- pnpm/crates/cli/src/cli_args/with/install_pnpm_to_store.rs
- pnpm/crates/default-reporter/src/state.rs
|
Code review by qodo was updated up to the latest commit b8d67fc |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
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.5781844746,
"stddev": 0.14175023345834512,
"median": 2.6273182078,
"user": 1.6304774399999995,
"system": 1.31779192,
"min": 2.3726670298,
"max": 2.7541763938000003,
"times": [
2.6316789098,
2.6229575058,
2.6964462018,
2.7541763938000003,
2.4944524558000003,
2.3726670298,
2.4222401768000004,
2.7391141948000004,
2.6373864748,
2.4107254028000002
]
},
{
"command": "pacquet@main",
"mean": 2.5483411412000003,
"stddev": 0.16658746724683338,
"median": 2.5518269423000004,
"user": 1.7003318399999998,
"system": 1.3165970200000001,
"min": 2.3590198658,
"max": 2.8195328928000003,
"times": [
2.4974184968000004,
2.6761460428,
2.6062353878000004,
2.8195328928000003,
2.6062728978000003,
2.7462453228,
2.4183504978,
2.3806862658,
2.3735037418,
2.3590198658
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5106076461,
"stddev": 0.1313208583336746,
"median": 1.5147842403,
"user": 1.16816754,
"system": 1.21821052,
"min": 1.3596474658,
"max": 1.7388009408,
"times": [
1.7388009408,
1.3958548998,
1.5746270277999999,
1.4752037268,
1.5738801467999999,
1.5543647538,
1.3637359547999999,
1.4062411958,
1.6637203487999999,
1.3596474658
]
},
{
"command": "pnpr@main",
"mean": 1.5451755829,
"stddev": 0.13403487936959546,
"median": 1.5031817088000001,
"user": 1.23063424,
"system": 1.2616430200000002,
"min": 1.3865615248,
"max": 1.8019466578,
"times": [
1.5118272908000001,
1.8019466578,
1.3865615248,
1.4367493748,
1.4945361268,
1.6604001738,
1.6235142768,
1.6534482257999998,
1.4766315798,
1.4061405978
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.28218959258000004,
"stddev": 0.016602963761970402,
"median": 0.28089963648000005,
"user": 0.24431206,
"system": 0.56053984,
"min": 0.26062114048,
"max": 0.30906389248000005,
"times": [
0.28797835148,
0.30652460448,
0.30906389248000005,
0.28945678848,
0.27790990148000005,
0.26434967448,
0.26735075148000004,
0.28388937148000004,
0.27475144948,
0.26062114048
]
},
{
"command": "pacquet@main",
"mean": 0.29440931857999997,
"stddev": 0.03850647177870994,
"median": 0.28015972398,
"user": 0.24238495999999995,
"system": 0.58686874,
"min": 0.25232642548,
"max": 0.36528134748,
"times": [
0.27978679848000004,
0.27678436048000005,
0.29050014948,
0.27604148448000004,
0.28272937548000004,
0.28053264948,
0.25232642548,
0.27516994748,
0.36528134748,
0.36494064748000005
]
},
{
"command": "pnpr@HEAD",
"mean": 0.32500886798000006,
"stddev": 0.04850617442389207,
"median": 0.30148805148,
"user": 0.26328936000000003,
"system": 0.6174312399999999,
"min": 0.28508266548000005,
"max": 0.40565254848000004,
"times": [
0.40107124448000003,
0.40565254848000004,
0.37429395348000005,
0.29484514048000005,
0.28718881048000006,
0.30040718648000003,
0.30256891648,
0.28508266548000005,
0.29200201048,
0.30697620348000004
]
},
{
"command": "pnpr@main",
"mean": 0.29249967368,
"stddev": 0.011127595110112434,
"median": 0.28909872198000003,
"user": 0.23524656,
"system": 0.5608278400000001,
"min": 0.28074791348000006,
"max": 0.31765508948000004,
"times": [
0.28074791348000006,
0.29663474148,
0.31765508948000004,
0.30403740448000005,
0.28616155048,
0.29268145648000005,
0.28428219148000006,
0.28459894548000003,
0.28915876948,
0.28903867448000004
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.8759583864600002,
"stddev": 0.05912015537202459,
"median": 2.86899421036,
"user": 1.9938338199999996,
"system": 1.49176506,
"min": 2.79860431936,
"max": 2.96084208136,
"times": [
2.79860431936,
2.81578673036,
2.91103065936,
2.94114837336,
2.83538503836,
2.86318089236,
2.87480752836,
2.81884768836,
2.93995055336,
2.96084208136
]
},
{
"command": "pacquet@main",
"mean": 2.81695686486,
"stddev": 0.02943250090866263,
"median": 2.8133629328599996,
"user": 1.86103822,
"system": 1.3647622600000002,
"min": 2.77938379136,
"max": 2.87896667936,
"times": [
2.87896667936,
2.81815742236,
2.81809865236,
2.79475954936,
2.84687161136,
2.78996242936,
2.83061287536,
2.80412842436,
2.77938379136,
2.80862721336
]
},
{
"command": "pnpr@HEAD",
"mean": 1.6924838301599998,
"stddev": 0.10703383672960293,
"median": 1.7010995693600002,
"user": 1.01241312,
"system": 1.19560066,
"min": 1.44858465736,
"max": 1.83315867436,
"times": [
1.6895260623600001,
1.68556850036,
1.60502929936,
1.44858465736,
1.73479310136,
1.68537175136,
1.71267307636,
1.72419899336,
1.83315867436,
1.80593418536
]
},
{
"command": "pnpr@main",
"mean": 1.55208997426,
"stddev": 0.1282226208174727,
"median": 1.50805791536,
"user": 1.08917942,
"system": 1.1725212600000001,
"min": 1.42913408036,
"max": 1.76451900536,
"times": [
1.6699310763600002,
1.75229768636,
1.5153076483599999,
1.5008081823600001,
1.51804804536,
1.48700538236,
1.43468195736,
1.4491666783600001,
1.42913408036,
1.76451900536
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6014320121600001,
"stddev": 0.011765082112757648,
"median": 0.6049836533600002,
"user": 0.7319957199999999,
"system": 0.68078266,
"min": 0.58306989886,
"max": 0.61381385986,
"times": [
0.6035392958600001,
0.5897553428600001,
0.60296443686,
0.61381385986,
0.6064280108600001,
0.6083574338600001,
0.58322080186,
0.6124180988600001,
0.6107529418600001,
0.58306989886
]
},
{
"command": "pacquet@main",
"mean": 0.59174328326,
"stddev": 0.022100539895881864,
"median": 0.58621196886,
"user": 0.71614182,
"system": 0.66701636,
"min": 0.5611833498600001,
"max": 0.6363234698600001,
"times": [
0.60308702686,
0.56797913986,
0.5611833498600001,
0.5774552538600001,
0.58558098386,
0.6363234698600001,
0.6058663658600001,
0.5868429538600001,
0.5849544668600001,
0.6081598218600001
]
},
{
"command": "pnpr@HEAD",
"mean": 0.30587157916,
"stddev": 0.009199160447374403,
"median": 0.30716894336,
"user": 0.20478882,
"system": 0.52246556,
"min": 0.29506000486000006,
"max": 0.31851710386000004,
"times": [
0.31572226386,
0.31851710386000004,
0.29590404986,
0.29650951786,
0.30344686386,
0.31089102286000003,
0.29724861386,
0.29506000486000006,
0.31173914586,
0.31367720486000006
]
},
{
"command": "pnpr@main",
"mean": 0.30309659066,
"stddev": 0.012486602466086384,
"median": 0.29984626786,
"user": 0.19324281999999998,
"system": 0.51926816,
"min": 0.29319906986000005,
"max": 0.33414806486000004,
"times": [
0.31119882986,
0.33414806486000004,
0.29604686686000004,
0.30211364086000003,
0.29358880186,
0.29319906986000005,
0.30717108686000005,
0.29757889486000005,
0.30211749686000006,
0.29380315386000005
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.9095925352599998,
"stddev": 0.00976571407487374,
"median": 1.90486876826,
"user": 0.96353884,
"system": 0.7429843799999999,
"min": 1.9024956422600001,
"max": 1.92963248126,
"times": [
1.92370741526,
1.90275149326,
1.92963248126,
1.9024956422600001,
1.90456959626,
1.9031779742600001,
1.90607182826,
1.90362433126,
1.91472665026,
1.9051679402600001
]
},
{
"command": "pacquet@main",
"mean": 1.9011599953599998,
"stddev": 0.013784679454389655,
"median": 1.89918942376,
"user": 0.9323229399999999,
"system": 0.73748598,
"min": 1.8768596622600002,
"max": 1.92195282926,
"times": [
1.91311704726,
1.89580237326,
1.92195282926,
1.88992330426,
1.90257647426,
1.8926463772600002,
1.8945538492600003,
1.91611961626,
1.90804842026,
1.8768596622600002
]
},
{
"command": "pnpr@HEAD",
"mean": 0.30090071066,
"stddev": 0.0063839980226132655,
"median": 0.29975017975999996,
"user": 0.18206144,
"system": 0.54508478,
"min": 0.28797879326,
"max": 0.31021470226,
"times": [
0.30765879326,
0.30545035526,
0.29955543426,
0.29959737226,
0.29990298726,
0.28797879326,
0.29551101826,
0.30404431426,
0.29909333626,
0.31021470226
]
},
{
"command": "pnpr@main",
"mean": 0.30529833186,
"stddev": 0.0092584200438082,
"median": 0.30373755875999997,
"user": 0.19945503999999997,
"system": 0.52835398,
"min": 0.29415050326,
"max": 0.32465367025999997,
"times": [
0.30057894626,
0.30222462726,
0.29583735126,
0.32465367025999997,
0.30914632726,
0.30542503726,
0.31571312926,
0.29415050326,
0.30000323626,
0.30525049026
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.36591584662000004,
"stddev": 0.0113832999875405,
"median": 0.3637595853200001,
"user": 0.36639928,
"system": 0.048230619999999995,
"min": 0.35459758932,
"max": 0.39516335432000005,
"times": [
0.36784741332000004,
0.36466826232000005,
0.36285090832000005,
0.35459758932,
0.37055365632000004,
0.36554845532,
0.36181349132000007,
0.35979537132000006,
0.35631996432000007,
0.39516335432000005
]
},
{
"command": "pacquet@main",
"mean": 0.36842446102000004,
"stddev": 0.010625163461227773,
"median": 0.36188761082000004,
"user": 0.36038928000000003,
"system": 0.057848619999999996,
"min": 0.35813561432,
"max": 0.38419539632000005,
"times": [
0.38419539632000005,
0.37925342332000006,
0.3837419643200001,
0.36068858832000006,
0.36282128432000005,
0.36095393732000003,
0.36021264432000005,
0.36034994232000006,
0.35813561432,
0.37389181532000004
]
},
{
"command": "pnpr@HEAD",
"mean": 0.08679005250181819,
"stddev": 0.0017992651569703469,
"median": 0.08732107732,
"user": 0.019912979999999997,
"system": 0.00955088606060606,
"min": 0.08209671632,
"max": 0.08944012632,
"times": [
0.08436167932,
0.08756536532,
0.08648557832,
0.08291891032,
0.08803683132,
0.08626399132,
0.08763524732,
0.08817692532,
0.08650206932,
0.08702992132,
0.08851964832,
0.08563365732,
0.08809109232,
0.08765192832,
0.08789325232,
0.08552953332,
0.08286703332,
0.08209671632,
0.08944012632,
0.08797750032,
0.08521199632,
0.08824477232,
0.08595567332,
0.08932854731999999,
0.08751504232,
0.08542534732,
0.08635056432,
0.08867411832,
0.08779170132,
0.08732107732,
0.08622489831999999,
0.08699046732,
0.08836051932
]
},
{
"command": "pnpr@main",
"mean": 0.08724994372625,
"stddev": 0.0014473847710956937,
"median": 0.08727613281999999,
"user": 0.019947729999999997,
"system": 0.009381528750000001,
"min": 0.08262606032,
"max": 0.09078072432,
"times": [
0.08788963632,
0.08685058432,
0.08694171432,
0.08712781332,
0.08753071132,
0.08262606032,
0.08794440832,
0.08698821232,
0.08696610132,
0.09078072432,
0.08595273732,
0.08617736932,
0.08972727632,
0.08628298832,
0.08579926832,
0.08713716232,
0.08792317732,
0.08770336532,
0.08621741432,
0.08756704032,
0.08754046932,
0.08692746732,
0.08803305432,
0.08894578832,
0.08741510331999999,
0.08527308032,
0.08951436632,
0.08600266131999999,
0.08753107232,
0.08755892432,
0.08833409032,
0.08678835632
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.49961557232,
"stddev": 0.1114475747637401,
"median": 4.4709442168199995,
"user": 1.6566992200000001,
"system": 1.39231128,
"min": 4.42289995732,
"max": 4.79224036132,
"times": [
4.451434848320001,
4.47675330832,
4.4257305143200005,
4.79224036132,
4.574681833320001,
4.474525032320001,
4.42289995732,
4.47340459732,
4.4360014343200005,
4.46848383632
]
},
{
"command": "pacquet@main",
"mean": 4.559041774720001,
"stddev": 0.14699049739121825,
"median": 4.4802984528200005,
"user": 1.7811065199999998,
"system": 1.36875488,
"min": 4.45377508332,
"max": 4.82578312432,
"times": [
4.45377508332,
4.47264018432,
4.478482977320001,
4.48211392832,
4.48413542832,
4.462151796320001,
4.664576100320001,
4.82578312432,
4.46730330132,
4.799455823320001
]
},
{
"command": "pnpr@HEAD",
"mean": 3.5229811211199995,
"stddev": 0.07160202725623183,
"median": 3.49087848082,
"user": 1.18176802,
"system": 1.30185598,
"min": 3.45622145732,
"max": 3.66635009532,
"times": [
3.57821471432,
3.50309015432,
3.51457678032,
3.47108413432,
3.47187746532,
3.66635009532,
3.61337273432,
3.47635686832,
3.4786668073199998,
3.45622145732
]
},
{
"command": "pnpr@main",
"mean": 3.5283050247199994,
"stddev": 0.05593028589918357,
"median": 3.5226766753199996,
"user": 1.2995408199999998,
"system": 1.2246819800000002,
"min": 3.46670703332,
"max": 3.6403498863199997,
"times": [
3.54215614532,
3.54445941132,
3.50319720532,
3.55511201032,
3.47264125932,
3.47953549032,
3.4931943463199997,
3.46670703332,
3.58569745932,
3.6403498863199997
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13490 |
| 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,448.58 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 287.98 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 295.06 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 82.10 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,359.65 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,456.22 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 285.08 ms |
Summary
Aligns pacquet's deprecated-package reporting with the TypeScript pnpm CLI:
emits a deprecation event only for the package's first resolved occurrence, preserving its original depth and prefix;
renders direct dependency deprecations through the workspace-relative form during recursive installs;
removes reporter-side deduplication that is not present in the TypeScript reporter.
serializes package-manager environment writes during concurrent cold-cache engine installs, preventing Windows lockfile replacement races and waiting when an engine cache entry is only partially materialized without blocking async executor workers;
keeps the lockfile-policy verdict ahead of frozen-install output when package statistics arrive during concurrent verification.
The TypeScript CLI already has the intended deprecation behavior, so that parity fix changes only pacquet. The concurrency follow-up completes the existing pacquet-only package-manager switching fix.
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