Repository navigation
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: pnpm/pnpm/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pnpm/pnpm/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughWorkspace filtering now applies selectors in order in the Rust and TypeScript implementations. A later inclusion selector can restore projects removed by an earlier exclusion. The changes add unit and integration regression tests and a patch-release changeset. ChangesOrdered workspace filtering
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 Ordered filters behave as intended in the reviewed cases, including re-inclusion. No actionable merge-blocking risk remains after normal checks. ✨ 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 |
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.3934377018,
"stddev": 0.11792165267728281,
"median": 2.3234760047,
"user": 1.4992591,
"system": 1.43250584,
"min": 2.2955833872,
"max": 2.5782009172
},
{
"command": "pacquet@main",
"mean": 2.4492535018000003,
"stddev": 0.12576558871212226,
"median": 2.4165523352000005,
"user": 1.5348002999999997,
"system": 1.4417027399999998,
"min": 2.3290417372000003,
"max": 2.6981724342
},
{
"command": "pnpr@HEAD",
"mean": 1.542885224,
"stddev": 0.13152622981346904,
"median": 1.5543887076999998,
"user": 1.4988581999999997,
"system": 1.52639444,
"min": 1.3424336032,
"max": 1.7320922502
},
{
"command": "pnpr@main",
"mean": 1.4688764861,
"stddev": 0.13303381727829763,
"median": 1.4316377512,
"user": 1.4710437,
"system": 1.50107744,
"min": 1.3267219352,
"max": 1.7254904672
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.34700101274,
"stddev": 0.040097824006519095,
"median": 0.34602075804000004,
"user": 0.39114041999999993,
"system": 0.87353956,
"min": 0.30244499454,
"max": 0.40400616454000005
},
{
"command": "pacquet@main",
"mean": 0.31753424624000004,
"stddev": 0.02235795768614138,
"median": 0.31990274404,
"user": 0.36685831999999996,
"system": 0.80067676,
"min": 0.28341883654000005,
"max": 0.36334474854000004
},
{
"command": "pnpr@HEAD",
"mean": 0.32598558584000004,
"stddev": 0.01493020924320367,
"median": 0.32715508854,
"user": 0.35060962,
"system": 0.7940700600000001,
"min": 0.29151900154000004,
"max": 0.34760410654000007
},
{
"command": "pnpr@main",
"mean": 0.34665131664000004,
"stddev": 0.015891839026895206,
"median": 0.34565289354000006,
"user": 0.36567721999999997,
"system": 0.8320740600000001,
"min": 0.32778567854,
"max": 0.37980732654000005
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.008806903446096656,
"stddev": 0.0010949446774531797,
"median": 0.008693611000000002,
"user": 0.005101394944237921,
"system": 0.004212798215613384,
"min": 0.006992387,
"max": 0.014026386000000002
},
{
"command": "pacquet@main",
"mean": 0.01197720267567567,
"stddev": 0.001974461979515932,
"median": 0.011707857500000002,
"user": 0.0069205854054054045,
"system": 0.005684688243243241,
"min": 0.008573847,
"max": 0.022001774
},
{
"command": "pnpr@HEAD",
"mean": 0.011065378325471706,
"stddev": 0.002860892138422115,
"median": 0.011768265000000002,
"user": 0.006358477169811321,
"system": 0.005312388396226415,
"min": 0.006997896,
"max": 0.017899790000000002
},
{
"command": "pnpr@main",
"mean": 0.007648335642172527,
"stddev": 0.0005766503273941903,
"median": 0.007557828,
"user": 0.004505989904153353,
"system": 0.003547150607028754,
"min": 0.0068393790000000005,
"max": 0.012494620000000001
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.009968759082081455,
"stddev": 0.0015199965149541423,
"median": 0.00963237534,
"user": 0.005426603076923075,
"system": 0.005168268778280543,
"min": 0.007373388340000001,
"max": 0.015011342340000003
},
{
"command": "pacquet@main",
"mean": 0.008530354319338851,
"stddev": 0.0011267897896120257,
"median": 0.008177714340000001,
"user": 0.0049432585123966935,
"system": 0.0041582578512396684,
"min": 0.007209209340000001,
"max": 0.013595697340000002
},
{
"command": "pnpr@HEAD",
"mean": 0.009270127580549826,
"stddev": 0.001317641448049176,
"median": 0.009033405340000002,
"user": 0.004967803711340205,
"system": 0.004901399999999999,
"min": 0.00751473134,
"max": 0.01682788734
},
{
"command": "pnpr@main",
"mean": 0.011642404373519561,
"stddev": 0.0017436433965678708,
"median": 0.011398318340000001,
"user": 0.006337138100558656,
"system": 0.005998410055865924,
"min": 0.008588361340000001,
"max": 0.01719867334
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.80829682216,
"stddev": 0.06030773247099352,
"median": 2.79580402856,
"user": 2.90734708,
"system": 2.18466492,
"min": 2.7433518760599997,
"max": 2.92809579606
},
{
"command": "pacquet@main",
"mean": 2.9961196578600005,
"stddev": 0.1456458713267898,
"median": 2.98775862706,
"user": 3.29983808,
"system": 2.45949552,
"min": 2.84126386806,
"max": 3.2186856860599997
},
{
"command": "pnpr@HEAD",
"mean": 1.62707254926,
"stddev": 0.040052473317199216,
"median": 1.62747305256,
"user": 1.9306281799999998,
"system": 1.9202470199999997,
"min": 1.55788398006,
"max": 1.70900263806
},
{
"command": "pnpr@main",
"mean": 1.6245168213599999,
"stddev": 0.09485018313853735,
"median": 1.5814664520600001,
"user": 1.8346864800000002,
"system": 1.73776762,
"min": 1.54968813406,
"max": 1.83803446606
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6100640311000001,
"stddev": 0.0656851461054446,
"median": 0.6124590326000001,
"user": 0.87996114,
"system": 0.9430152999999999,
"min": 0.5123962616000001,
"max": 0.7678340986000001
},
{
"command": "pacquet@main",
"mean": 0.5350477733,
"stddev": 0.051318701560067216,
"median": 0.5528901936000001,
"user": 0.8039130399999997,
"system": 0.834608,
"min": 0.4633758896,
"max": 0.5997640436
},
{
"command": "pnpr@HEAD",
"mean": 0.52680901,
"stddev": 0.14160220100629786,
"median": 0.5154959721,
"user": 0.45244354,
"system": 0.8829549999999999,
"min": 0.3569837506,
"max": 0.7263845426000001
},
{
"command": "pnpr@main",
"mean": 0.4128574992,
"stddev": 0.10403799459042064,
"median": 0.39358010610000005,
"user": 0.34863743999999997,
"system": 0.7313879999999999,
"min": 0.2891406296,
"max": 0.5936002016
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.70096477952,
"stddev": 0.048535130581962405,
"median": 1.68396308362,
"user": 1.02933846,
"system": 0.88741194,
"min": 1.64137741412,
"max": 1.7945673151200001
},
{
"command": "pacquet@main",
"mean": 1.7671289861200001,
"stddev": 0.08128776681124335,
"median": 1.74664751612,
"user": 1.16569426,
"system": 0.9998508399999999,
"min": 1.66018952212,
"max": 1.87634194012
},
{
"command": "pnpr@HEAD",
"mean": 0.32942824942000004,
"stddev": 0.018109808271315933,
"median": 0.32488327512000004,
"user": 0.27002015999999995,
"system": 0.60481394,
"min": 0.30845318012000006,
"max": 0.36188330412
},
{
"command": "pnpr@main",
"mean": 0.31128857472,
"stddev": 0.020172700546678614,
"median": 0.31397172562000003,
"user": 0.24332156000000005,
"system": 0.5776920400000001,
"min": 0.28094888912000004,
"max": 0.33442304612
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2503812393527273,
"stddev": 0.018372894575692467,
"median": 0.25154465308,
"user": 0.26588061999999996,
"system": 0.09066533636363637,
"min": 0.22226848508000002,
"max": 0.27843576708
},
{
"command": "pacquet@main",
"mean": 0.24583793953454547,
"stddev": 0.015871794517620805,
"median": 0.23962971608,
"user": 0.26257198363636364,
"system": 0.08365506363636363,
"min": 0.23037243208000002,
"max": 0.28207141608
},
{
"command": "pnpr@HEAD",
"mean": 0.10053855497655172,
"stddev": 0.003946952991300633,
"median": 0.10153289708,
"user": 0.04307003379310344,
"system": 0.017302941379310342,
"min": 0.09295786008000001,
"max": 0.11155398808
},
{
"command": "pnpr@main",
"mean": 0.09691378332137929,
"stddev": 0.00507058367742729,
"median": 0.09545045408,
"user": 0.03912686137931033,
"system": 0.016724768965517244,
"min": 0.09204006308,
"max": 0.11018842208
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.8830275398666667,
"stddev": 0.10679971745739449,
"median": 0.8977365252,
"user": 0.9398342888888889,
"system": 0.2399998933333333,
"min": 0.7159637912,
"max": 1.0328452032
},
{
"command": "pacquet@main",
"mean": 0.8749536637555556,
"stddev": 0.09824582125931337,
"median": 0.8502778742,
"user": 0.9226730666666665,
"system": 0.23496533777777776,
"min": 0.7666700102,
"max": 1.0994810272
},
{
"command": "pnpm@HEAD",
"mean": 4.287451696088889,
"stddev": 0.30353130954091884,
"median": 4.2993467122,
"user": 6.917819955555556,
"system": 0.3091651155555556,
"min": 3.7589836512,
"max": 4.6825763082
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2559653450236363,
"stddev": 0.016206729408101174,
"median": 0.25666320566000006,
"user": 0.19883125818181818,
"system": 0.11321574,
"min": 0.23060086266000002,
"max": 0.28966509966000004
},
{
"command": "pacquet@main",
"mean": 0.24421531741000002,
"stddev": 0.01212833451818624,
"median": 0.24304263466,
"user": 0.19622794,
"system": 0.09909182333333333,
"min": 0.22554206466,
"max": 0.26662310666000005
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.53487945206,
"stddev": 0.12455203997105291,
"median": 4.55840673846,
"user": 1.9587884000000002,
"system": 1.7609630999999997,
"min": 4.37650798296,
"max": 4.79231670396
},
{
"command": "pacquet@main",
"mean": 4.60554247696,
"stddev": 0.17759546201662538,
"median": 4.579877956460001,
"user": 1.9674337999999998,
"system": 1.7774376999999997,
"min": 4.42476492396,
"max": 4.99574907896
},
{
"command": "pnpr@HEAD",
"mean": 3.60163762066,
"stddev": 0.13134917562342233,
"median": 3.59188064596,
"user": 1.8384873000000002,
"system": 1.7268424999999996,
"min": 3.43706940796,
"max": 3.8193296769600003
},
{
"command": "pnpr@main",
"mean": 3.6196443893600003,
"stddev": 0.12927323920030023,
"median": 3.59025578196,
"user": 1.9194465,
"system": 1.8034112999999998,
"min": 3.4781918219600003,
"max": 3.8494119179600004
}
]
}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.20763638046333335,
"stddev": 0.021180388520158022,
"median": 0.20603236588,
"user": 0.25195820333333335,
"system": 0.23282225666666664,
"min": 0.16619998838,
"max": 0.24111660138000002
},
{
"command": "pacquet@main",
"mean": 0.1607014283175,
"stddev": 0.019513862301566706,
"median": 0.16421284638,
"user": 0.196541745,
"system": 0.17436740250000002,
"min": 0.12562717038000001,
"max": 0.18784307538
},
{
"command": "pnpr@HEAD",
"mean": 0.17483983380857143,
"stddev": 0.01706971095752567,
"median": 0.17732924088000002,
"user": 0.20774369142857144,
"system": 0.18025591142857142,
"min": 0.14841395338000002,
"max": 0.20575504138
},
{
"command": "pnpr@main",
"mean": 0.16884270995142855,
"stddev": 0.01399714101259682,
"median": 0.16616412638,
"user": 0.19564447714285713,
"system": 0.17766169714285712,
"min": 0.14698215338,
"max": 0.19290663238
}
]
} |
PR Summary by QodoPreserve workspace filter ordering across exclusions and inclusions
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit d299672 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15581 +/- ##
=======================================
Coverage 91.82% 91.83%
=======================================
Files 1442 1442
Lines 194563 194629 +66
=======================================
+ Hits 178664 178736 +72
+ Misses 15899 15893 -6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Code review by qodo was updated up to the latest commit a5ebca5 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…ions (pnpm#9354) (pnpm#15581) When combining multiple --filter flags with exclusions and inclusions, evaluate selectors in ordered polarity chunks so later inclusion filters can re-include packages that were excluded earlier. Fixes pnpm#9354
Summary
When combining multiple
--filterselectors with exclusions (!) and inclusions,--filterselectors are now evaluated in ordered chunks of matching polarity. When the first selector is an exclusion, selection begins with every project in the workspace; otherwise it starts empty. Subsequent inclusion selectors re-include projects that were previously excluded (e.g.--filter '!./packages/**' --filter '@scope/pkg').Fixes #9354
Squash Commit Body
When combining multiple
--filterflags with exclusions and inclusions, evaluate selectors in ordered polarity chunks so later inclusion filters can re-include packages that were excluded earlier.Fixes #9354
Checklist
.changeset/filter-multiplicity-ordered-exclusion.md) targeting@pnpm/workspace.projects-filter,pnpm, andpacquet.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
--filterselectors are applied in order. A later inclusion filter can re-include a package excluded by an earlier filter, while other excluded packages remain excluded.