Repository navigation
Conversation
The runtime and package manager checks run before the command and warned through the command's reporter, which writes to stdout. A command whose stdout is a value a script reads, such as `pnpm cache path` or `pnpm list --json`, got the warning prepended to its output. In v12 the default reporter's pre-command warnings are written to stderr with the same `[WARN]` label, still gated by the log level. The ndjson and silent reporters are unchanged. In v11 the same warnings are printed with `formatWarn` to stderr, unless the log level or reporter hides them; the ndjson reporter still receives them as log records. Closes #16584 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughProject package-manager and runtime warnings are routed to stderr or the configured reporter. Tests verify that warnings do not appear in command stdout and that configured log levels suppress them. ChangesProject warning routing
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Assessment against linked issues
Suggested labels: Merge Risk: ⚪ Minimal · up to Project warnings are routed away from command output, with the described reporter and log-level handling. No material merge blocker is identified. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 2 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
pnpm11/pnpm/src/packageManagerCheck.tsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. pnpm11/pnpm/test/packageManagerCheck.test.tsESLint skipped: the matched ESLint configuration already failed (missing-dependency). 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 |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16587 +/- ##
=======================================
Coverage 92.29% 92.30%
=======================================
Files 1565 1565
Lines 207794 207806 +12
=======================================
+ Hits 191788 191808 +20
+ Misses 16006 15998 -8 ☔ 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.43520033256,
"stddev": 0.0889099610786022,
"median": 2.3972709356600004,
"user": 1.52694154,
"system": 1.8472215199999997,
"min": 2.3488368096600003,
"max": 2.60929522766
},
{
"command": "pacquet@main",
"mean": 2.4301658980600003,
"stddev": 0.1352102173942001,
"median": 2.39291121616,
"user": 1.5318529399999998,
"system": 1.74231612,
"min": 2.3011011096600003,
"max": 2.6744993896600002
},
{
"command": "pnpr@HEAD",
"mean": 1.6058839124600002,
"stddev": 0.14156920593739633,
"median": 1.67915882216,
"user": 1.49484344,
"system": 1.62330962,
"min": 1.34982949566,
"max": 1.72508388666
},
{
"command": "pnpr@main",
"mean": 1.5048051053600002,
"stddev": 0.13837026372848263,
"median": 1.53612921566,
"user": 1.37100674,
"system": 1.66729752,
"min": 1.3415353026599999,
"max": 1.70328713666
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.23081568617999998,
"stddev": 0.009359541962972595,
"median": 0.22912215988,
"user": 0.24072748000000002,
"system": 0.5641662999999999,
"min": 0.21814800788000002,
"max": 0.24935656288000002
},
{
"command": "pacquet@main",
"mean": 0.23155936788,
"stddev": 0.012091698615031895,
"median": 0.23369478238000002,
"user": 0.25132988,
"system": 0.5738833999999999,
"min": 0.21447932388000002,
"max": 0.25190353588
},
{
"command": "pnpr@HEAD",
"mean": 0.24571172238,
"stddev": 0.011320437442997345,
"median": 0.24453003638000004,
"user": 0.25478958,
"system": 0.5696174999999999,
"min": 0.23338664388000002,
"max": 0.26816089587999997
},
{
"command": "pnpr@main",
"mean": 0.23860877168000005,
"stddev": 0.010424080437831763,
"median": 0.23590445988000003,
"user": 0.25259178000000004,
"system": 0.5331016,
"min": 0.22128309788,
"max": 0.25612208688
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.008225925343925234,
"stddev": 0.000823471016256968,
"median": 0.0082035779,
"user": 0.004845380373831776,
"system": 0.004193971401869161,
"min": 0.0068199694000000005,
"max": 0.012728673400000001
},
{
"command": "pacquet@main",
"mean": 0.007778919220359284,
"stddev": 0.000646345348049904,
"median": 0.007614236400000001,
"user": 0.004588261676646703,
"system": 0.00394427401197605,
"min": 0.006706006400000001,
"max": 0.0103114744
},
{
"command": "pnpr@HEAD",
"mean": 0.007773385807051283,
"stddev": 0.0006876859155702754,
"median": 0.0076427489,
"user": 0.0044529974358974355,
"system": 0.004145669487179488,
"min": 0.006645401400000001,
"max": 0.0102766294
},
{
"command": "pnpr@main",
"mean": 0.0071144715091954,
"stddev": 0.00043696159773452445,
"median": 0.0070247989,
"user": 0.004228637356321837,
"system": 0.003553677011494252,
"min": 0.0064150094,
"max": 0.0094790124
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.009475025713333337,
"stddev": 0.0008866111751501725,
"median": 0.00941095408,
"user": 0.005709055833333337,
"system": 0.004602879166666666,
"min": 0.00771118258,
"max": 0.013266441580000001
},
{
"command": "pacquet@main",
"mean": 0.009558907043636364,
"stddev": 0.0009342862702694028,
"median": 0.009362262080000001,
"user": 0.005697673636363634,
"system": 0.004643853636363636,
"min": 0.00801139558,
"max": 0.01396695258
},
{
"command": "pnpr@HEAD",
"mean": 0.009432912253076919,
"stddev": 0.0007705040457125665,
"median": 0.00929915508,
"user": 0.006022440923076923,
"system": 0.004140901923076925,
"min": 0.007888835580000001,
"max": 0.012295063580000001
},
{
"command": "pnpr@main",
"mean": 0.00943812229268657,
"stddev": 0.0008534393854242983,
"median": 0.00930248208,
"user": 0.005858467611940295,
"system": 0.004358975373134325,
"min": 0.00783323158,
"max": 0.01305873058
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.51925927062,
"stddev": 0.02897543406905499,
"median": 2.51970316882,
"user": 1.8864481999999998,
"system": 1.5524908599999996,
"min": 2.46369971082,
"max": 2.57868943482
},
{
"command": "pacquet@main",
"mean": 2.5100595928199994,
"stddev": 0.017181011069476584,
"median": 2.51154688932,
"user": 1.8388333,
"system": 1.5595085599999996,
"min": 2.47892109882,
"max": 2.53459217782
},
{
"command": "pnpr@HEAD",
"mean": 1.5062851412199998,
"stddev": 0.11178618157340842,
"median": 1.4609921198200002,
"user": 1.0960493,
"system": 1.2550208599999997,
"min": 1.38041103782,
"max": 1.68111416682
},
{
"command": "pnpr@main",
"mean": 1.4912650263200002,
"stddev": 0.110138431369562,
"median": 1.46873907332,
"user": 1.0400953999999998,
"system": 1.2838007599999997,
"min": 1.37878216582,
"max": 1.7497648808200001
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.54336890948,
"stddev": 0.1586245176661163,
"median": 0.45188772678,
"user": 0.7220484,
"system": 0.8912775400000001,
"min": 0.43615863028,
"max": 0.82225747328
},
{
"command": "pacquet@main",
"mean": 0.4464058677800001,
"stddev": 0.04045138153219034,
"median": 0.43617221128,
"user": 0.6007737000000001,
"system": 0.71709674,
"min": 0.40522969328,
"max": 0.54973902428
},
{
"command": "pnpr@HEAD",
"mean": 0.3048146179800001,
"stddev": 0.017882641650436515,
"median": 0.29995423978,
"user": 0.26166239999999996,
"system": 0.60567944,
"min": 0.28578744528,
"max": 0.34800026228000003
},
{
"command": "pnpr@main",
"mean": 0.31168208127999997,
"stddev": 0.011603980385225093,
"median": 0.31012712978,
"user": 0.27159999999999995,
"system": 0.5957081399999999,
"min": 0.29571793028,
"max": 0.33163977028
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.7354617193,
"stddev": 0.03003657299389088,
"median": 1.7382556268,
"user": 1.1187206800000002,
"system": 1.1516741,
"min": 1.6856895418,
"max": 1.7819303308
},
{
"command": "pacquet@main",
"mean": 1.8621748088,
"stddev": 0.10173495280945963,
"median": 1.8576164538,
"user": 1.37215758,
"system": 1.4537444999999998,
"min": 1.7357257577999998,
"max": 1.9823850168000001
},
{
"command": "pnpr@HEAD",
"mean": 0.3598564337,
"stddev": 0.008455593952479582,
"median": 0.35987129529999995,
"user": 0.3386583799999999,
"system": 0.7788337000000001,
"min": 0.3482395048,
"max": 0.3759476218
},
{
"command": "pnpr@main",
"mean": 0.3610173786,
"stddev": 0.005448281302593207,
"median": 0.36029076429999995,
"user": 0.33483078,
"system": 0.7851855,
"min": 0.3546186908,
"max": 0.3716274238
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.24603029540000002,
"stddev": 0.011237029393283261,
"median": 0.24387530990000003,
"user": 0.23123216666666668,
"system": 0.08506936666666669,
"min": 0.22860321340000003,
"max": 0.2682713944
},
{
"command": "pacquet@main",
"mean": 0.26409129167272727,
"stddev": 0.01748801070770263,
"median": 0.2615647794,
"user": 0.2297715454545454,
"system": 0.09628424545454545,
"min": 0.23728001440000002,
"max": 0.2968213194
},
{
"command": "pnpr@HEAD",
"mean": 0.09673541084827587,
"stddev": 0.0035790094061468286,
"median": 0.0967335444,
"user": 0.03755196551724138,
"system": 0.017253262068965516,
"min": 0.0914875954,
"max": 0.1043277264
},
{
"command": "pnpr@main",
"mean": 0.09582611049677421,
"stddev": 0.0037020286336621575,
"median": 0.0958709854,
"user": 0.03715777419354839,
"system": 0.016757248387096774,
"min": 0.0904124884,
"max": 0.10290917940000001
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.20818348053555555,
"stddev": 0.011884633416603115,
"median": 0.20767548998,
"user": 0.20922547111111112,
"system": 0.03872276,
"min": 0.18873425098,
"max": 0.22124728498
},
{
"command": "pacquet@main",
"mean": 0.23135310320222224,
"stddev": 0.042378999821273175,
"median": 0.21595667798,
"user": 0.23719602666666667,
"system": 0.05232787111111112,
"min": 0.18784271498,
"max": 0.31239976698000005
},
{
"command": "pnpm@HEAD",
"mean": 3.78618431298,
"stddev": 0.313229399920403,
"median": 3.74015925598,
"user": 5.9149582488888885,
"system": 0.40478364888888885,
"min": 3.41875681898,
"max": 4.448091344980001
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2104107810971429,
"stddev": 0.008571572105233996,
"median": 0.20952044324000002,
"user": 0.16271527714285713,
"system": 0.08517303142857144,
"min": 0.19838428624,
"max": 0.22579199724000001
},
{
"command": "pacquet@main",
"mean": 0.21514361970153845,
"stddev": 0.008469860229222855,
"median": 0.21343386624000002,
"user": 0.1671471123076923,
"system": 0.08600080615384617,
"min": 0.20472037524,
"max": 0.23776219924000003
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.513533564559999,
"stddev": 0.11426698162391496,
"median": 4.46846854276,
"user": 1.8398962399999998,
"system": 2.01727734,
"min": 4.41868480426,
"max": 4.76912487126
},
{
"command": "pacquet@main",
"mean": 4.55865835716,
"stddev": 0.15438802230109408,
"median": 4.49524939576,
"user": 1.75542724,
"system": 1.86853814,
"min": 4.44492459126,
"max": 4.92064571826
},
{
"command": "pnpr@HEAD",
"mean": 3.60690356996,
"stddev": 0.1315597493020706,
"median": 3.53926613476,
"user": 1.5614739399999997,
"system": 1.8074958399999996,
"min": 3.48273406426,
"max": 3.85131392926
},
{
"command": "pnpr@main",
"mean": 3.60014226816,
"stddev": 0.13327409864056106,
"median": 3.56022402576,
"user": 1.6132134400000002,
"system": 1.82450944,
"min": 3.46796283326,
"max": 3.9418245612600002
}
]
}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.14892993350947367,
"stddev": 0.013411927584030963,
"median": 0.14562865372,
"user": 0.1860562115789474,
"system": 0.18095673052631575,
"min": 0.13668627772,
"max": 0.19691029172
},
{
"command": "pacquet@main",
"mean": 0.22481252621999995,
"stddev": 0.018671299708854425,
"median": 0.22848184472,
"user": 0.2961367466666667,
"system": 0.24519593666666664,
"min": 0.18526218472,
"max": 0.24967743471999998
},
{
"command": "pnpr@HEAD",
"mean": 0.22815612413666667,
"stddev": 0.011730572886611506,
"median": 0.22857397322,
"user": 0.27192557999999994,
"system": 0.23856285333333335,
"min": 0.20926719672,
"max": 0.24921790772
},
{
"command": "pnpr@main",
"mean": 0.22543350272000004,
"stddev": 0.01032189423787528,
"median": 0.22896330472,
"user": 0.261234489090909,
"system": 0.25001597454545454,
"min": 0.21005968672,
"max": 0.24373019272000002
}
]
} |
|
@coderabbitai review |
PR Summary by QodoPrint pre-command project warnings on stderr in pnpm 11 and 12
AI Description
Diagram
High-Level Assessment
Files changed (10)
|
Code Review by Qodo
1. A comment describes discarded behavior
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
The ndjson reporter attaches after the project checks run, so a warning logged through it was dropped. Print it on stderr like the others. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Qodo findings:
Written by an agent (Claude Code, claude-opus-5-5). |
Thanks for the context. My assessment is:
I have not dismissed any findings because that requires an explicit dismissal request. Findings 1 and 2 remain scope/design decisions; finding 3 appears dismissible as a false positive. |
|
Code review by qodo was updated up to the latest commit 22f8b02 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
|
Qodo's new finding, "A comment describes discarded behavior": not acting. The comment states a current fact. In Written by an agent (Claude Code, claude-opus-5-5). |
Your point is valid:
I have not taken action on findings 2–4; your message does not explicitly request dismissal or implementation. |
Summary
With
devEngines.runtime.onFail: "warn"(or apackageManager/devEngines.packageManagermismatch withonFail: "warn"), the warning was printed on stdout ahead of the command's own output, breakingpnpm cache path,pnpm list --json,pnpm run,pnpm exec, and others whose stdout a script reads.Both versions had the bug (v11:
cache path,run,exec; v12: also every--jsoncommand). Fixed in both: these pre-command warnings now go to stderr.--loglevel=errorstill hides them. Under--reporter=ndjson, v12 still emits them as records; v11 used to drop them (its ndjson sink attaches after the checks) and now prints them on stderr.Closes #16584
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.
Not addressed here: the issue also notes that
pnpm_config_loglevel=errorin the environment does not hide the warning. With the warning on stderr that no longer corrupts output.Written by an agent (Claude Code, claude-opus-5-5).
🤖 Generated with Claude Code
Summary by CodeRabbit
devEngines, package manager, and runtime warnings are written to stderr, keeping command results on stdout clear.