Repository navigation
chore: make just known-failures work with an empty list and the CLI suite - #13355
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
PR Summary by QodoPin v12 subset-install link-target dependency closure via CLI regression test
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
[Low impact] The reviewed changes appear safe to merge. Reviews (3) · Last reviewed commit: "chore: list known-failure stubs inside t..." · Reviewed by Greptile |
Micro-Benchmark ResultsLinux |
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
There was a problem hiding this comment.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pnpm/plans/TEST_PORTING.md (1)
301-305: 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick winStale "Rust port notes" entry contradicts the line-276 decision.
Line 304 still says the link-target divergence "is pinned by the
known_failuresstub on themultipleImporters.ts:540tail and needs a cross-stack decision." Both premises are now false: theknown_failuresstub was removed and replaced bysubset_install_materializes_a_linked_targets_dependencies, and line 276 in this same file now states the divergence is "Decided rather than pending." This note should be updated (or removed) in this PR to avoid misleading future readers into looking for a stub that no longer exists.📝 Proposed fix
-- Pacquet's subset closure deep-installs importer-level link targets where upstream keeps them shallow (only `--filter <project>...` widens the selection upstream); the divergence is pinned by the `known_failures` stub on the `multipleImporters.ts:540` tail and needs a cross-stack decision. +- Pacquet's subset closure deep-installs importer-level link targets where upstream keeps them shallow (only `--filter <project>...` widens the selection upstream); this divergence is decided as intentional v12 behavior, pinned by `subset_install_materializes_a_linked_targets_dependencies` (see the `multipleImporters.ts:540` entry above and the `link-target-dependencies-are-installed` changeset).🤖 Prompt for 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. In `@pnpm/plans/TEST_PORTING.md` around lines 301 - 305, Update or remove the stale Rust port note in the “Rust port notes” section: replace the claim that the link-target divergence is pinned by the removed known_failures stub and requires a cross-stack decision with the current decision recorded near line 276, referencing subset_install_materializes_a_linked_targets_dependencies only if needed.
🤖 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/link-target-dependencies-are-installed.md:
- Around line 1-9: Synchronize filtered-install behavior across both CLI
implementations: update the TypeScript CLI’s link/workspace target resolution so
selecting a project also installs each linked target’s dependency closure,
matching the documented pnpm v12 behavior. Locate the TypeScript install/filter
traversal and ensure the existing shallow default is removed or, if parity
cannot be implemented, revise the changeset to explicitly document the
intentional divergence.
- Line 2: Update the pacquet release designation in
link-target-dependencies-are-installed.md from minor to major to match the
declared breaking Rust CLI behavior change.
In `@justfile`:
- Around line 76-84: Update both known-failures recipes to preserve and check
cargo test’s exit status before processing output, returning that status when
nonzero. Continue treating only rg’s no-match status as success, and replace the
Windows pipeline’s `|| true` with a shell-native conditional; keep the existing
filters and platform-specific stderr redirection.
---
Outside diff comments:
In `@pnpm/plans/TEST_PORTING.md`:
- Around line 301-305: Update or remove the stale Rust port note in the “Rust
port notes” section: replace the claim that the link-target divergence is pinned
by the removed known_failures stub and requires a cross-stack decision with the
current decision recorded near line 276, referencing
subset_install_materializes_a_linked_targets_dependencies only if needed.
🪄 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: 2a95d551-02dc-4825-a50b-2d422e861899
📒 Files selected for processing (4)
.changeset/link-target-dependencies-are-installed.mdjustfilepnpm/crates/cli/tests/multiple_importers.rspnpm/plans/TEST_PORTING.md
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13355 +/- ##
==========================================
+ Coverage 87.06% 87.21% +0.15%
==========================================
Files 535 536 +1
Lines 91916 92034 +118
==========================================
+ Hits 80023 80265 +242
+ Misses 11893 11769 -124 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Same-run syscall checkEach install runs 2 more times per revision, untimed, under
Integrated-Benchmark Report (Linux)Commit: Compared against main at: Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm; the linked, injected, and Cargo workspace scenarios compare 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.50644826828,
"stddev": 0.16325545179838793,
"median": 2.4847007770799996,
"user": 2.61727462,
"system": 1.8068852400000002,
"min": 2.29471898458,
"max": 2.86146386658
},
{
"command": "pacquet@main",
"mean": 2.44339399228,
"stddev": 0.13673183702493738,
"median": 2.39525160458,
"user": 2.37790252,
"system": 1.6110889400000001,
"min": 2.30551759958,
"max": 2.71598051758
},
{
"command": "pnpr@HEAD",
"mean": 1.5261979371799999,
"stddev": 0.11599765469434895,
"median": 1.52835577958,
"user": 2.16120192,
"system": 1.5946319400000002,
"min": 1.33386592958,
"max": 1.72965330458
},
{
"command": "pnpr@main",
"mean": 1.52143349158,
"stddev": 0.0957762997766365,
"median": 1.49538673758,
"user": 2.4182667199999996,
"system": 1.81683904,
"min": 1.41373785658,
"max": 1.71485344758
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.3205661476,
"stddev": 0.010749700158150185,
"median": 0.3210840829,
"user": 0.419164,
"system": 0.7283008599999999,
"min": 0.3029503214,
"max": 0.33452845540000004
},
{
"command": "pacquet@main",
"mean": 0.33405996410000005,
"stddev": 0.01629722677119473,
"median": 0.32785607390000004,
"user": 0.4432359999999999,
"system": 0.75964596,
"min": 0.3143517584,
"max": 0.3645447814
},
{
"command": "pnpr@HEAD",
"mean": 0.3782545107,
"stddev": 0.020637248925108747,
"median": 0.3732231889,
"user": 0.45607229999999993,
"system": 0.81644486,
"min": 0.3509878574,
"max": 0.4162861794
},
{
"command": "pnpr@main",
"mean": 0.3799445346,
"stddev": 0.033365007796684616,
"median": 0.38407383790000005,
"user": 0.45556159999999996,
"system": 0.7989663599999999,
"min": 0.3254864984,
"max": 0.4269215434
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.012792197588712877,
"stddev": 0.0018474490498728046,
"median": 0.01259547846,
"user": 0.008045598019801982,
"system": 0.005812926336633661,
"min": 0.00944895996,
"max": 0.01961952996
},
{
"command": "pacquet@main",
"mean": 0.011037299677557256,
"stddev": 0.0009290358720928295,
"median": 0.01090969696,
"user": 0.0071524992366412184,
"system": 0.0048625981679389346,
"min": 0.009349020960000001,
"max": 0.01503184596
},
{
"command": "pnpr@HEAD",
"mean": 0.011307916967843142,
"stddev": 0.0010917439486078958,
"median": 0.010980110960000001,
"user": 0.006946472549019606,
"system": 0.005407716705882352,
"min": 0.00958994996,
"max": 0.01525849496
},
{
"command": "pnpr@main",
"mean": 0.011070418896000009,
"stddev": 0.0010887143372844243,
"median": 0.01080427146,
"user": 0.007180403999999997,
"system": 0.004938195199999997,
"min": 0.00901654996,
"max": 0.01442662496
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.014913583464705886,
"stddev": 0.00243441945808582,
"median": 0.014525266700000001,
"user": 0.009302219999999993,
"system": 0.006910511176470591,
"min": 0.011435254200000002,
"max": 0.0218818372
},
{
"command": "pacquet@main",
"mean": 0.013167541412290495,
"stddev": 0.0015530534804159878,
"median": 0.013018807200000001,
"user": 0.008011745139664801,
"system": 0.0062982537430167585,
"min": 0.0103854662,
"max": 0.0191177832
},
{
"command": "pnpr@HEAD",
"mean": 0.01124328672534563,
"stddev": 0.00124003922744983,
"median": 0.011016493200000001,
"user": 0.006912104792626729,
"system": 0.005341171797235027,
"min": 0.009214903200000001,
"max": 0.0169573432
},
{
"command": "pnpr@main",
"mean": 0.010819430462443446,
"stddev": 0.0011297852093359135,
"median": 0.010569539200000002,
"user": 0.006919147601809953,
"system": 0.004851343257918554,
"min": 0.0092433662,
"max": 0.0173163622
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.5164446439,
"stddev": 0.07821071199599602,
"median": 2.4883264273999997,
"user": 2.87941888,
"system": 1.8184545399999998,
"min": 2.4601158829,
"max": 2.7061911059
},
{
"command": "pacquet@main",
"mean": 2.6054022595999995,
"stddev": 0.16721427831331143,
"median": 2.5326576609,
"user": 3.2467715799999994,
"system": 2.01909664,
"min": 2.4698843059,
"max": 3.0260030139
},
{
"command": "pnpr@HEAD",
"mean": 1.5873686126000002,
"stddev": 0.07944505564851559,
"median": 1.5874666669,
"user": 2.40786128,
"system": 1.7671859399999998,
"min": 1.5009541119,
"max": 1.7116375679000002
},
{
"command": "pnpr@main",
"mean": 1.8591848445,
"stddev": 0.16036145939372076,
"median": 1.8248717829000003,
"user": 3.0175619799999995,
"system": 2.3061748399999997,
"min": 1.6343784469000002,
"max": 2.2352828589
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6198451175200003,
"stddev": 0.03991191534554345,
"median": 0.6276216306200001,
"user": 0.9193904599999998,
"system": 1.24533162,
"min": 0.5509927806200001,
"max": 0.6854473496200001
},
{
"command": "pacquet@main",
"mean": 0.63074179172,
"stddev": 0.038476957817245874,
"median": 0.6230243761200001,
"user": 0.8833958599999999,
"system": 1.35332872,
"min": 0.5714937276200001,
"max": 0.6918023006200001
},
{
"command": "pnpr@HEAD",
"mean": 0.33181646022,
"stddev": 0.01253386164177344,
"median": 0.33455966662000003,
"user": 0.3400218600000001,
"system": 0.6505391200000001,
"min": 0.31245859362,
"max": 0.35541195862
},
{
"command": "pnpr@main",
"mean": 0.36052495332,
"stddev": 0.0174959475435123,
"median": 0.36022838562000004,
"user": 0.34666575999999993,
"system": 0.71314482,
"min": 0.33276748962,
"max": 0.39251857662
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.7645141954999999,
"stddev": 0.13279633342502367,
"median": 1.7265268293000002,
"user": 1.4314892799999999,
"system": 1.3562955799999998,
"min": 1.6723327853,
"max": 2.1253373993
},
{
"command": "pacquet@main",
"mean": 1.728826965,
"stddev": 0.1500987784459753,
"median": 1.7026604863,
"user": 1.3759508799999998,
"system": 1.2352931799999998,
"min": 1.6166526483,
"max": 2.1446917433
},
{
"command": "pnpr@HEAD",
"mean": 0.39677685139999996,
"stddev": 0.02020725869416725,
"median": 0.3905997868,
"user": 0.40527667999999994,
"system": 0.77388328,
"min": 0.3653738203,
"max": 0.4383468943
},
{
"command": "pnpr@main",
"mean": 0.3859517448,
"stddev": 0.026967874710636767,
"median": 0.3803966903,
"user": 0.40337077999999993,
"system": 0.74527268,
"min": 0.3544595873,
"max": 0.4521456743
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.38599524462000007,
"stddev": 0.04120900033251895,
"median": 0.37637162592000006,
"user": 0.39310977999999996,
"system": 0.49173368,
"min": 0.33153884092,
"max": 0.46783722492000007
},
{
"command": "pacquet@main",
"mean": 0.35834631602000006,
"stddev": 0.013578011144591794,
"median": 0.35995961492000006,
"user": 0.36557897999999994,
"system": 0.42691647999999993,
"min": 0.33558455392000003,
"max": 0.37860974092000005
},
{
"command": "pnpr@HEAD",
"mean": 0.1062809341051852,
"stddev": 0.004940562657399897,
"median": 0.10435505092000001,
"user": 0.05021612444444445,
"system": 0.033046854074074074,
"min": 0.09731439092000001,
"max": 0.11464316892000001
},
{
"command": "pnpr@main",
"mean": 0.11136876357384616,
"stddev": 0.008120085912411623,
"median": 0.11067875592000001,
"user": 0.05441594923076924,
"system": 0.03692912615384615,
"min": 0.09618705392,
"max": 0.13059156492000001
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2674677070866667,
"stddev": 0.016513932279320447,
"median": 0.26041790642,
"user": 0.3028704222222222,
"system": 0.06505344888888889,
"min": 0.24817511342,
"max": 0.29345206142
},
{
"command": "pacquet@main",
"mean": 0.3098612796422222,
"stddev": 0.040372449624805885,
"median": 0.30970410942,
"user": 0.35398831111111106,
"system": 0.07351067111111112,
"min": 0.25233479642,
"max": 0.39306904542000004
},
{
"command": "pnpm@HEAD",
"mean": 6.197279448753333,
"stddev": 0.8477398393001684,
"median": 5.95962619042,
"user": 9.635721422222225,
"system": 0.5172766711111111,
"min": 5.31258253642,
"max": 7.6814022384200005
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.14027460069000003,
"stddev": 0.015947801483466174,
"median": 0.14065510104,
"user": 0.13342890000000002,
"system": 0.08664432,
"min": 0.11342465354000002,
"max": 0.17182408154
},
{
"command": "pacquet@main",
"mean": 0.15141589589294116,
"stddev": 0.012425079321099989,
"median": 0.14932472554,
"user": 0.14855250588235291,
"system": 0.0912585494117647,
"min": 0.12736104954000002,
"max": 0.17141292154
}
]
}Scenario: Isolated linker: injected workspace repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.11050290863586211,
"stddev": 0.006092473512342708,
"median": 0.10915379036,
"user": 0.04161321517241378,
"system": 0.08029213586206894,
"min": 0.09735742936000001,
"max": 0.12315760336
},
{
"command": "pacquet@main",
"mean": 0.11628313782153847,
"stddev": 0.011429303116725506,
"median": 0.11437461536000001,
"user": 0.04670305999999999,
"system": 0.0817186676923077,
"min": 0.10168358336000001,
"max": 0.14200480136000002
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.71419339712,
"stddev": 0.16183104062984371,
"median": 4.654392982620001,
"user": 2.91245918,
"system": 1.96911138,
"min": 4.57427069912,
"max": 5.10804930112
},
{
"command": "pacquet@main",
"mean": 4.63780058902,
"stddev": 0.1235930012635099,
"median": 4.60395496462,
"user": 2.63078148,
"system": 1.8108040799999998,
"min": 4.47909710412,
"max": 4.81012341912
},
{
"command": "pnpr@HEAD",
"mean": 3.69291237682,
"stddev": 0.10413617588834836,
"median": 3.68134317062,
"user": 2.8423529800000003,
"system": 1.9584179800000001,
"min": 3.56371570212,
"max": 3.9214436451199997
},
{
"command": "pnpr@main",
"mean": 3.67948660022,
"stddev": 0.16654787453694353,
"median": 3.64091466462,
"user": 2.5766814800000004,
"system": 1.8387864800000002,
"min": 3.5129753241199997,
"max": 3.96078613712
}
]
}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.17834706264000003,
"stddev": 0.029030092575292817,
"median": 0.18072414764000003,
"user": 0.24856288545454544,
"system": 0.23719254727272726,
"min": 0.14269018264000002,
"max": 0.23721236464000003
},
{
"command": "pacquet@main",
"mean": 0.14961988447333333,
"stddev": 0.008546921865393697,
"median": 0.14793827464000003,
"user": 0.21247061777777773,
"system": 0.18973432,
"min": 0.13664103264000002,
"max": 0.17102138364000002
},
{
"command": "pnpr@HEAD",
"mean": 0.16490917064000005,
"stddev": 0.00697627382529303,
"median": 0.16444898214000003,
"user": 0.2247344114285714,
"system": 0.1922641057142857,
"min": 0.15617111564000002,
"max": 0.18144334964000003
},
{
"command": "pnpr@main",
"mean": 0.15702120726500002,
"stddev": 0.0081575400323739,
"median": 0.15481191264000002,
"user": 0.20948140250000002,
"system": 0.18362244500000002,
"min": 0.14637046764000003,
"max": 0.17014074864
}
]
}Scenario: Store only: unlocked direct deps, cold cache + hot storeStore-only install (
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.2188615649399999,
"stddev": 0.02618101115008589,
"median": 1.20769456434,
"user": 0.8717402599999999,
"system": 0.4120205799999999,
"min": 1.19096932784,
"max": 1.28049838084
},
{
"command": "pacquet@main",
"mean": 1.2903442085399999,
"stddev": 0.041524858627715544,
"median": 1.27826047734,
"user": 1.0292793599999999,
"system": 0.4347838799999999,
"min": 1.2513555028399999,
"max": 1.3663337898399999
}
]
}Scenario: Cargo: repeat install, hot cache + hot storeFrozen repeat install of a Cargo workspace (
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.09826511083230768,
"stddev": 0.02427944140573948,
"median": 0.09329271164000001,
"user": 0.041739692307692304,
"system": 0.06133607384615384,
"min": 0.06157285414000001,
"max": 0.15847414914
},
{
"command": "pacquet@main",
"mean": 0.08025515424526314,
"stddev": 0.016465128019557154,
"median": 0.07539454964,
"user": 0.04214668421052631,
"system": 0.04857594631578948,
"min": 0.060781953140000004,
"max": 0.13682868714
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13355 |
| 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,430.89 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 300.72 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 297.36 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 81.77 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,342.13 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,451.46 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 257.90 ms |
The recipe listed the stubs with `cargo test -- --list | rg` and swallowed the pipeline's status with `|| true` so that an empty list — now the normal state — did not read as a recipe failure. That also swallowed a workspace that fails to compile: cargo's diagnostics were already discarded by `2>/dev/null`, so the recipe printed nothing and exited 0. The build now runs on its own line, un-silenced, so a compile failure aborts the recipe with cargo's own output. Only the listing line tolerates a nonzero status, via just's `-` prefix instead of a shell `|| true`, which keeps the tolerance out of the shell and behaves the same on both platforms. Reported by Greptile and Qodo on #13355.
|
Triage of the four findings: 4. 1. Historical v11/v12 commentary — declining. The rule bans narrating this code's past shape ("previously", "the original X"). These comments describe a live parallel implementation: pnpm 11 is the shipping TypeScript CLI in 2. Subset install diverges from pnpm — declining, this is the PR. pnpm 12 changes the behavior on purpose; the parity rule keeps a shipping behavior identical across the stacks, it doesn't freeze 12 to 11's semantics. Back-porting the wider closure into 11.x would be a breaking change to a stable release. The decision is recorded in the changeset, in 3. Written by an agent (Claude Code, claude-opus-5). |
|
Code review by qodo was updated up to the latest commit e9d8fb5 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
A subset install materializes the dependencies of a workspace project it links in, so the selected project runs without a second install. Upstream asserts the opposite tail — v11 keeps link targets shallow and reserves `--filter <project>...` for widening, which leaves a selected project linked to a target whose own dependencies are missing. Keeping pacquet's behavior is the decision for v12, so the divergence stops being a pending question: the known-failure stub becomes a real test asserting it, and the porting plan records the upstream tail as deliberately not ported rather than blocked. This clears the last allow_known_failure! stub in the repo. `just known-failures` piped to `rg`, which exits 1 on no matches, so an empty list reported as a failure; it now exits 0. Refs #13167 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The recipe listed the stubs with `cargo test -- --list | rg` and swallowed the pipeline's status with `|| true` so that an empty list — now the normal state — did not read as a recipe failure. That also swallowed a workspace that fails to compile: cargo's diagnostics were already discarded by `2>/dev/null`, so the recipe printed nothing and exited 0. The build now runs on its own line, un-silenced, so a compile failure aborts the recipe with cargo's own output. Only the listing line tolerates a nonzero status, via just's `-` prefix instead of a shell `|| true`, which keeps the tolerance out of the shell and behaves the same on both platforms. Reported by Greptile and Qodo on #13355.
The CLI end-to-end tests build as one target, so a stub lists as `<module>::known_failures::<name>` and the `^known_failures::` anchor never matched it. Match the segment at any depth instead. TEST_PORTING.md still pointed at a hoisted-layout stub that a real test replaced; point it at that test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
e9d8fb5 to
7847e39
Compare
just known-failures work with an empty list and the CLI suite
|
Code review by qodo was updated up to the latest commit 7847e39 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Re Qodo's finding 3 ("Known-failures builds workspace"): no extra work there. Findings 1 and 2 were on the link-target test and changeset, which were dropped on rebase after #13634 kept filtered workspace links shallow. Written by an agent (Claude Code, claude-opus-5-5). |
Summary
Makes
just known-failuresusable now that the expected-failure list is empty, and makes it able to find stubs again inside the CLI test suite.rgexits 1 when nothing matches, so an empty list reported as a recipe failure. The workspace build now runs on its own un-silenced line, so a compile failure still aborts with cargo's diagnostics. Only the listing line tolerates a nonzero status, through just's-prefix.<module>::known_failures::<name>. The^known_failures::anchor never matched that; the pattern is now(^|::)known_failures::.TEST_PORTING.mdpointed at aknown_failures::hoisted_workspace_layout_does_not_duplicate_root_versionstub that fix(package-manager): stop nesting hoisted deps that won the root slot #13306 replaced with real assertions. The entry now names that test.This PR originally pinned pacquet's deep link-target closure for filtered installs as intended v12 behavior. #13634 settled that the other way: filtered workspace links stay shallow, matching v11. That part was dropped on rebase, along with its changeset.
Verified:
just known-failuresbuilds the workspace and exits 0 with an empty list. A real suite test name rewritten into stub form is listed by the new pattern and missed by the old one.Squash Commit Body
Checklist
Written by an agent (Claude Code, claude-opus-5-5).
🤖 Generated with Claude Code
Summary by CodeRabbit