Repository navigation
Conversation
Edge-aware `engineStrict` dispatch landed in #13172, and the real port of the upstream `fail on unsupported dependency of optional dependency` test landed alongside it in #13173. The `known_failures` stub for the same scenario was left behind, so `just known-failures` still advertised the behavior as unimplemented while the real test was already green. Closes #13143.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe PR removes the internal ChangesOptional dependency test coverage
Estimated code review effort: 1 (Trivial) | ~2 minutes Assessment against linked issues
Possibly related issues
Possibly related PRs
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 QodoRemove stale known-failure stub for engineStrict optional-deps test
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Confidence Score: 5/5The PR appears safe to merge because it removes only stale test bookkeeping without reducing behavioral coverage. The deleted stub did not exercise behavior, while the same test file retains an active test for the scenario that asserts installation failure and ERR_PNPM_UNSUPPORTED_PLATFORM. Reviews (1): Last reviewed commit: "test(pacquet): drop the stale engineStri..." | 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 #13282 +/- ##
==========================================
+ Coverage 86.91% 86.94% +0.03%
==========================================
Files 530 530
Lines 90785 90848 +63
==========================================
+ Hits 78903 78992 +89
+ Misses 11882 11856 -26 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.6262620332999993,
"stddev": 0.15072333757307027,
"median": 2.5932453226999996,
"user": 1.66764142,
"system": 1.39067594,
"min": 2.4147991686999997,
"max": 2.8200100017,
"times": [
2.7548102457,
2.5871384636999997,
2.7884884036999997,
2.5512988116999997,
2.4147991686999997,
2.5993521816999996,
2.5065591606999997,
2.4511419866999997,
2.8200100017,
2.7890219086999997
]
},
{
"command": "pacquet@main",
"mean": 2.5645420079999997,
"stddev": 0.18525760170642347,
"median": 2.5089213092,
"user": 1.6125565199999996,
"system": 1.37532254,
"min": 2.3470083037,
"max": 2.9263931626999997,
"times": [
2.5423693256999997,
2.4675795566999996,
2.7474272117,
2.3612307006999997,
2.3470083037,
2.9263931626999997,
2.5039820277,
2.5138605907,
2.7482544157,
2.4873147846999997
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5551392891000002,
"stddev": 0.15893872332180176,
"median": 1.5328920497,
"user": 1.08110222,
"system": 1.17220754,
"min": 1.3506185997,
"max": 1.7572277097000002,
"times": [
1.3582538357,
1.6395808497,
1.4813924777,
1.7572277097000002,
1.5082796777,
1.5575044217,
1.4126685057,
1.7302889547,
1.7555778587,
1.3506185997
]
},
{
"command": "pnpr@main",
"mean": 1.5521204960000001,
"stddev": 0.12945373075263802,
"median": 1.5834087037,
"user": 1.06788352,
"system": 1.1624767400000002,
"min": 1.3847059147,
"max": 1.7185388327,
"times": [
1.4354710657,
1.7000986357,
1.3847059147,
1.5441535627,
1.4347936027000001,
1.6445758407000002,
1.3957721007000001,
1.7185388327,
1.6404315597,
1.6226638447000001
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.25662017676,
"stddev": 0.013042512513420436,
"median": 0.25446357366000005,
"user": 0.22592565999999997,
"system": 0.5060599,
"min": 0.23746794116,
"max": 0.28721240216,
"times": [
0.25023261916,
0.26322086716000004,
0.25616238816000003,
0.25815259816,
0.23746794116,
0.25276475916,
0.25077322516,
0.26173003416,
0.24848493316,
0.28721240216
]
},
{
"command": "pacquet@main",
"mean": 0.25756977216000004,
"stddev": 0.007981942159740699,
"median": 0.25447418866000004,
"user": 0.21173515999999998,
"system": 0.5203682,
"min": 0.25047305116,
"max": 0.27440611516,
"times": [
0.25573168716,
0.25161461816,
0.26751969916,
0.26216250716,
0.25321669016000004,
0.27440611516,
0.25188806116,
0.25227139216,
0.25047305116,
0.25641390016
]
},
{
"command": "pnpr@HEAD",
"mean": 0.26389029946,
"stddev": 0.006240085537120522,
"median": 0.26573886116,
"user": 0.20913365999999994,
"system": 0.5289771999999999,
"min": 0.25311402616,
"max": 0.26958131516,
"times": [
0.25311402616,
0.26958131516,
0.26275337716,
0.25459970816,
0.26919712216,
0.25979907416000003,
0.26395093016,
0.26910138216,
0.26927926716,
0.26752679216
]
},
{
"command": "pnpr@main",
"mean": 0.26146675326,
"stddev": 0.008341135064733027,
"median": 0.26173268916000003,
"user": 0.22156765999999997,
"system": 0.5182235,
"min": 0.24931547416000002,
"max": 0.27721764216,
"times": [
0.26174412016000004,
0.25280773016,
0.26022718916000004,
0.26329452516,
0.25296443416000003,
0.27721764216,
0.26707836916,
0.26172125816,
0.26829679016,
0.24931547416000002
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.76269342074,
"stddev": 0.0215550606384966,
"median": 2.76252289264,
"user": 1.68473328,
"system": 1.29180752,
"min": 2.73029158764,
"max": 2.79258582264,
"times": [
2.76310798264,
2.78975011064,
2.73999110264,
2.78462692964,
2.79258582264,
2.76736636964,
2.75541828664,
2.73029158764,
2.74185821264,
2.76193780264
]
},
{
"command": "pacquet@main",
"mean": 2.74690000664,
"stddev": 0.016623955871007585,
"median": 2.75104552964,
"user": 1.7172341799999997,
"system": 1.24279912,
"min": 2.70820388164,
"max": 2.76443328464,
"times": [
2.73578106764,
2.7400711226400003,
2.74861936364,
2.70820388164,
2.75347169564,
2.75948242764,
2.74205058464,
2.75547185764,
2.76141478064,
2.76443328464
]
},
{
"command": "pnpr@HEAD",
"mean": 1.56172976934,
"stddev": 0.12276585460166677,
"median": 1.5426703446399999,
"user": 1.0410507800000002,
"system": 1.1185183199999997,
"min": 1.4122115476400001,
"max": 1.75394743364,
"times": [
1.49393080264,
1.6310270286400002,
1.59181251464,
1.75337573864,
1.75394743364,
1.57774396464,
1.4385304086400001,
1.4122115476400001,
1.45712152964,
1.50759672464
]
},
{
"command": "pnpr@main",
"mean": 1.51019988204,
"stddev": 0.13846044495180015,
"median": 1.43758423414,
"user": 1.05164048,
"system": 1.09397412,
"min": 1.4172565536400001,
"max": 1.77232587664,
"times": [
1.4172565536400001,
1.4225663746400001,
1.47262003764,
1.43063278964,
1.77232587664,
1.44453567864,
1.42073235164,
1.7523691106400001,
1.42330334764,
1.54565669964
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.58134361982,
"stddev": 0.012754323741812262,
"median": 0.57653218062,
"user": 0.70945102,
"system": 0.6476135,
"min": 0.56405181162,
"max": 0.60745936162,
"times": [
0.58750492962,
0.57675931162,
0.57473291862,
0.59199913462,
0.59007084562,
0.60745936162,
0.57291571762,
0.56405181162,
0.57630504962,
0.57163711762
]
},
{
"command": "pacquet@main",
"mean": 0.57481041262,
"stddev": 0.013225935404106402,
"median": 0.5778017531199999,
"user": 0.6795266200000001,
"system": 0.6867675,
"min": 0.55452557162,
"max": 0.59352403562,
"times": [
0.57822356962,
0.57253250862,
0.55542048162,
0.58063087862,
0.57897494962,
0.59139958862,
0.55452557162,
0.56549260562,
0.59352403562,
0.57737993662
]
},
{
"command": "pnpr@HEAD",
"mean": 0.29942582482,
"stddev": 0.007777109961647407,
"median": 0.29768754112000007,
"user": 0.19813292000000002,
"system": 0.525629,
"min": 0.28954853562000005,
"max": 0.31177294862000005,
"times": [
0.30604411562000006,
0.31177294862000005,
0.30542056462000006,
0.30781984762000003,
0.29909426162,
0.29225083662,
0.28954853562000005,
0.29346831362000003,
0.29255800362000006,
0.29628082062000005
]
},
{
"command": "pnpr@main",
"mean": 0.29527394632000004,
"stddev": 0.009657392281659774,
"median": 0.29538592212000003,
"user": 0.20165032,
"system": 0.4909203,
"min": 0.28022525662000003,
"max": 0.31065914762,
"times": [
0.28918195662,
0.29580042862000006,
0.28562453062000004,
0.29517255162000006,
0.29559929262,
0.30378622762,
0.30712798962000004,
0.31065914762,
0.28956208162,
0.28022525662000003
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.89287009132,
"stddev": 0.010513056145011787,
"median": 1.8947476203200002,
"user": 0.9059795200000001,
"system": 0.74156606,
"min": 1.87657684482,
"max": 1.90836642582,
"times": [
1.90836642582,
1.9000721788200001,
1.87657684482,
1.8844539478200002,
1.90516331282,
1.8952341588200001,
1.89048926382,
1.87884953982,
1.8942977308200002,
1.8951975098200002
]
},
{
"command": "pacquet@main",
"mean": 1.8829390274200002,
"stddev": 0.013240832486612562,
"median": 1.88271659682,
"user": 0.89156372,
"system": 0.75009136,
"min": 1.86040138782,
"max": 1.90656111582,
"times": [
1.88630163382,
1.87279912482,
1.89703893682,
1.87797143182,
1.90656111582,
1.89004953882,
1.87283391082,
1.88599894682,
1.86040138782,
1.87943424682
]
},
{
"command": "pnpr@HEAD",
"mean": 0.29892973102000003,
"stddev": 0.007854555472360636,
"median": 0.29991958832000004,
"user": 0.18464492,
"system": 0.5340225600000001,
"min": 0.28859248682000005,
"max": 0.31229701082000005,
"times": [
0.30110069982000004,
0.29943551482,
0.28915929982000005,
0.28859248682000005,
0.29775066382000004,
0.28988715582,
0.31229701082000005,
0.30436662082000004,
0.30040366182000006,
0.30630419582
]
},
{
"command": "pnpr@main",
"mean": 0.29197325972,
"stddev": 0.005712739263795711,
"median": 0.29307627532,
"user": 0.18794181999999998,
"system": 0.5040573600000001,
"min": 0.28236291582000006,
"max": 0.29860187082000006,
"times": [
0.28336551682000005,
0.29757135682,
0.29269605782,
0.29370924882000005,
0.29071792482000003,
0.29860187082000006,
0.28919746082000003,
0.29345649282,
0.28236291582000006,
0.29805375182000005
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.35470703729999997,
"stddev": 0.007789701322632394,
"median": 0.3560651705,
"user": 0.34829785999999996,
"system": 0.05476872000000001,
"min": 0.34342884100000004,
"max": 0.363879212,
"times": [
0.363879212,
0.360155645,
0.355719542,
0.346997938,
0.345073616,
0.34342884100000004,
0.36171761700000005,
0.356410799,
0.350110739,
0.363576424
]
},
{
"command": "pacquet@main",
"mean": 0.3497717058,
"stddev": 0.008213839915784489,
"median": 0.34683425500000004,
"user": 0.34652416,
"system": 0.05267401999999999,
"min": 0.340380721,
"max": 0.364167844,
"times": [
0.343571709,
0.347264116,
0.34520118600000005,
0.360583239,
0.340380721,
0.34414945300000005,
0.35873028,
0.34657423200000004,
0.364167844,
0.34709427800000003
]
},
{
"command": "pnpr@HEAD",
"mean": 0.0861069133939394,
"stddev": 0.0019838492603179297,
"median": 0.08677591700000001,
"user": 0.019633569090909093,
"system": 0.009118807272727273,
"min": 0.08188892900000001,
"max": 0.089445798,
"times": [
0.085490467,
0.08788598,
0.08592415,
0.088347778,
0.086695276,
0.08649861700000001,
0.083035199,
0.08620269200000001,
0.08204096400000001,
0.08223469600000001,
0.082168694,
0.089445798,
0.08631645600000001,
0.08737391000000001,
0.087161741,
0.085775471,
0.08188892900000001,
0.083621971,
0.08805464800000001,
0.08763022000000001,
0.08723718400000001,
0.08693929600000001,
0.08738875800000001,
0.08677591700000001,
0.087110136,
0.08739139300000001,
0.086118705,
0.083887078,
0.087424184,
0.087115435,
0.086967998,
0.08716029900000001,
0.086218102
]
},
{
"command": "pnpr@main",
"mean": 0.08485383911764709,
"stddev": 0.0026299541643818973,
"median": 0.08453611500000001,
"user": 0.01975789529411765,
"system": 0.008894252941176472,
"min": 0.081110388,
"max": 0.089955634,
"times": [
0.08380912100000001,
0.081110388,
0.083650814,
0.081215595,
0.084281166,
0.0866702,
0.086834056,
0.089773903,
0.08572486700000001,
0.086151165,
0.08742938400000001,
0.08818532300000001,
0.085392432,
0.082267639,
0.08421403200000001,
0.08511771700000001,
0.081818997,
0.08323583500000001,
0.089235664,
0.085875769,
0.086337435,
0.082668692,
0.08714518,
0.088452054,
0.087738223,
0.08479106400000001,
0.082430184,
0.08256458500000001,
0.08144490500000001,
0.08271542900000001,
0.082242201,
0.08243415100000001,
0.082116726,
0.089955634
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.48502373118,
"stddev": 0.13755791599981984,
"median": 4.4316422192800005,
"user": 1.7319037000000002,
"system": 1.3110901199999998,
"min": 4.417158752780001,
"max": 4.86462003978,
"times": [
4.422970187780001,
4.417158752780001,
4.86462003978,
4.4241298137800005,
4.525358955780001,
4.43694841578,
4.41820103878,
4.475315757780001,
4.439198326780001,
4.42633602278
]
},
{
"command": "pacquet@main",
"mean": 4.55876765818,
"stddev": 0.1526422918771013,
"median": 4.50688642528,
"user": 1.6976308,
"system": 1.3656781199999997,
"min": 4.432833012780001,
"max": 4.913049320780001,
"times": [
4.913049320780001,
4.4680828447800005,
4.4622243717800005,
4.54983138378,
4.44039077478,
4.68805309778,
4.432833012780001,
4.54569000578,
4.6421187787800005,
4.44540299078
]
},
{
"command": "pnpr@HEAD",
"mean": 3.5747865588799996,
"stddev": 0.14962010924840113,
"median": 3.53404194528,
"user": 1.1890444,
"system": 1.1843640199999999,
"min": 3.4398253777799996,
"max": 3.83998461378,
"times": [
3.67440749278,
3.54535916478,
3.57816256478,
3.4398253777799996,
3.4424155967799996,
3.83998461378,
3.44786796878,
3.52272472578,
3.45534591978,
3.80177216378
]
},
{
"command": "pnpr@main",
"mean": 3.5116172812799995,
"stddev": 0.09456275537612593,
"median": 3.48232331178,
"user": 1.1249741,
"system": 1.22963552,
"min": 3.4471228677799997,
"max": 3.76540962678,
"times": [
3.5271013557799997,
3.4471228677799997,
3.5340556937799996,
3.49771603178,
3.4518128777799997,
3.46425341878,
3.76540962678,
3.50605199278,
3.4557183557799998,
3.4669305917799997
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13282 |
| 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,412.21 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 288.59 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 289.55 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 81.89 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,350.62 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,439.83 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 253.11 ms |
Summary
Removes the
known_failuresstub forfail_on_unsupported_dependency_of_optional_dependencyinpnpm/crates/cli/tests/optional_dependencies.rs.Edge-aware
engineStrictdispatch — the actual subject of #13143 — already landed in #13172 (walk_lockfile_edges/LockfileEdgeReachinpnpm/crates/package-manager/src/installability.rs), and the real port of the upstream test landed alongside it in #13173. The stub for the same scenario was left behind, sojust known-failureskept advertising the behavior as unimplemented while the real test was already green, and a future regression in the stubbed path would have been masked by a trivially-passing duplicate.Verified before removing:
cargo nextest run -p pacquet-cli --test optional_dependencies— 32/32 pass, including the realfail_on_unsupported_dependency_of_optional_dependency(assertsERR_PNPM_UNSUPPORTED_PLATFORM) and itsdo_not_fail_...neighbour.cargo nextest run -p pacquet-package-manager installability— 36/36 pass, covering both dispatch directions directly (engine_strict_fails_incompatible_regular_dep_of_installed_optional,incompatible_regular_dep_of_skipped_optional_is_skipped_not_failed,regular_edge_from_installed_parent_wins_over_optional_reachability).just known-failuresno longer lists the entry; the two remaining stubs are unrelated.Closes #13143.
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 (Claude Code, claude-opus-5[1m]).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit