Repository navigation
feat(pacquet): add recursive rebuild selection - #13206
Conversation
|
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 (9)
🚧 Files skipped from review as they are similar to previous changes (9)
📝 WalkthroughWalkthroughRecursive ChangesRecursive rebuild workspace flow
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant CLI as Rebuild CLI
participant Args as RebuildArgs
participant Install as Install
CLI->>Args: run_from_cli(...)
Args->>Args: select and batch workspace projects
Args->>Install: run_selected_rebuild(selection, options)
Install-->>Args: rebuild result
Args-->>CLI: success or first error
Possibly related issues
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 QodoHonor workspace filters for recursive pacquet rebuild (shared + dedicated lockfiles)
AI Description
Diagram
High-Level Assessment
Files changed (9)
|
Confidence Score: 5/5This looks safe to merge.
Reviews (2): Last reviewed commit: "feat(pacquet): add recursive rebuild sel..." | Re-trigger Greptile |
Micro-Benchmark ResultsLinux |
Code Review by Qodo
1. Unbounded rebuild concurrency
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13206 +/- ##
==========================================
+ Coverage 86.87% 86.88% +0.01%
==========================================
Files 526 526
Lines 89826 89954 +128
==========================================
+ Hits 78039 78161 +122
- Misses 11787 11793 +6 ☔ 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.6425028772799997,
"stddev": 0.1538789922910169,
"median": 2.61617317798,
"user": 2.10130662,
"system": 1.62836204,
"min": 2.44578385848,
"max": 2.9131235974800003,
"times": [
2.67882076948,
2.83727848948,
2.9131235974800003,
2.62610058848,
2.45817700348,
2.74839705848,
2.44578385848,
2.5521095654800003,
2.55899207448,
2.60624576748
]
},
{
"command": "pacquet@main",
"mean": 2.69244036038,
"stddev": 0.22289192131798435,
"median": 2.67410214548,
"user": 2.0576659200000003,
"system": 1.65066274,
"min": 2.4245063144800003,
"max": 3.02378258148,
"times": [
2.7595736094800003,
2.4245063144800003,
2.45329265948,
2.87981800248,
2.78890837548,
2.97329646448,
2.57845353948,
2.58863068148,
3.02378258148,
2.45414137548
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5701002818799998,
"stddev": 0.19653530687768128,
"median": 1.56679437848,
"user": 1.2195794199999999,
"system": 1.30271014,
"min": 1.3631646914800002,
"max": 1.80344872848,
"times": [
1.77246633248,
1.74141853748,
1.38015044548,
1.3706992874800001,
1.4318108384800001,
1.3631646914800002,
1.70177791848,
1.38398665548,
1.80344872848,
1.7520793834800001
]
},
{
"command": "pnpr@main",
"mean": 1.5650196047799998,
"stddev": 0.15443478661349944,
"median": 1.48729140648,
"user": 1.3190565200000002,
"system": 1.43970064,
"min": 1.37834312148,
"max": 1.79790937148,
"times": [
1.46598227348,
1.72607711748,
1.71192209148,
1.37834312148,
1.79790937148,
1.42990135148,
1.48144612848,
1.49313668448,
1.44635649948,
1.71912140848
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.43654247869999996,
"stddev": 0.0957763293747178,
"median": 0.43194730800000003,
"user": 0.39921594,
"system": 0.7382555000000001,
"min": 0.331123343,
"max": 0.604321236,
"times": [
0.45967534600000004,
0.36129288700000006,
0.514949428,
0.604321236,
0.40421927,
0.347058603,
0.539791052,
0.46775744100000005,
0.331123343,
0.335236181
]
},
{
"command": "pacquet@main",
"mean": 0.35092378190000006,
"stddev": 0.03330374118732216,
"median": 0.34101791300000006,
"user": 0.29029734,
"system": 0.648931,
"min": 0.31593007700000003,
"max": 0.41403190700000003,
"times": [
0.35599865900000005,
0.331295716,
0.33044948700000004,
0.371576569,
0.32899481300000005,
0.39385518700000005,
0.31593007700000003,
0.35074011000000005,
0.41403190700000003,
0.316365294
]
},
{
"command": "pnpr@HEAD",
"mean": 0.33572891450000003,
"stddev": 0.013710898135919476,
"median": 0.33525841850000004,
"user": 0.28980323999999996,
"system": 0.6311351000000001,
"min": 0.314025741,
"max": 0.35729201000000005,
"times": [
0.32242074200000004,
0.33283302600000003,
0.322246921,
0.314025741,
0.347900034,
0.33929787400000005,
0.33438735700000005,
0.35075596000000003,
0.33612948000000004,
0.35729201000000005
]
},
{
"command": "pnpr@main",
"mean": 0.39829569260000003,
"stddev": 0.03668850461816764,
"median": 0.3973352345000001,
"user": 0.3336605399999999,
"system": 0.69194,
"min": 0.340791999,
"max": 0.46707142600000007,
"times": [
0.40185047800000007,
0.39281999100000003,
0.428116176,
0.37543394500000005,
0.41318344,
0.340791999,
0.419579968,
0.38895536,
0.46707142600000007,
0.35515414300000003
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.8711165547200004,
"stddev": 0.03756056110116395,
"median": 2.86809600622,
"user": 1.9771604799999998,
"system": 1.51889898,
"min": 2.81626093322,
"max": 2.95803193522,
"times": [
2.86928246022,
2.95803193522,
2.89658658022,
2.81626093322,
2.87089128322,
2.86647137922,
2.86690955222,
2.87745386422,
2.8445408752200003,
2.84473668422
]
},
{
"command": "pacquet@main",
"mean": 2.89595749272,
"stddev": 0.11633904339975372,
"median": 2.8536972787200003,
"user": 1.9818622799999996,
"system": 1.50382738,
"min": 2.79272105522,
"max": 3.14735090922,
"times": [
2.88298759122,
2.85284321422,
2.8582961082200002,
2.83077238722,
2.79272105522,
2.82535346522,
2.8545513432200003,
2.84327780222,
3.07142105122,
3.14735090922
]
},
{
"command": "pnpr@HEAD",
"mean": 1.7170505634200002,
"stddev": 0.12524372696048902,
"median": 1.72763882972,
"user": 1.2789970799999997,
"system": 1.35123638,
"min": 1.52940745422,
"max": 1.9208266582200002,
"times": [
1.58966410622,
1.77657975622,
1.6847962122200002,
1.8419868132200001,
1.9208266582200002,
1.61594905122,
1.63403596222,
1.8067781732200001,
1.52940745422,
1.7704814472200001
]
},
{
"command": "pnpr@main",
"mean": 1.65965908582,
"stddev": 0.18901624907166792,
"median": 1.6079451267200002,
"user": 1.28481518,
"system": 1.3664857799999999,
"min": 1.4476596482200002,
"max": 1.95483666722,
"times": [
1.95483666722,
1.46418574522,
1.62153270922,
1.8225384452200002,
1.94825241722,
1.54268883122,
1.68684562322,
1.51369322722,
1.5943575442200002,
1.4476596482200002
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.7015422953000001,
"stddev": 0.09374308529904171,
"median": 0.6634034557,
"user": 0.85836008,
"system": 0.7567520400000001,
"min": 0.6323312342,
"max": 0.9392364462,
"times": [
0.9392364462,
0.7243440712,
0.7708805122,
0.6613896672,
0.6363133152,
0.6323312342,
0.6654172442,
0.6531923972,
0.6509970932,
0.6813209722
]
},
{
"command": "pacquet@main",
"mean": 0.6441031426999999,
"stddev": 0.016876579320385093,
"median": 0.6479676312,
"user": 0.77311508,
"system": 0.7149289399999998,
"min": 0.6219777622,
"max": 0.6664967222,
"times": [
0.6543126122,
0.6242140252,
0.6545378642,
0.6657840632,
0.6478644672,
0.6294481472,
0.6283249682000001,
0.6219777622,
0.6480707952,
0.6664967222
]
},
{
"command": "pnpr@HEAD",
"mean": 0.3207825267,
"stddev": 0.009723903147871214,
"median": 0.3220359677,
"user": 0.21464057999999997,
"system": 0.53078614,
"min": 0.3074673822,
"max": 0.3370338092,
"times": [
0.3370338092,
0.3255271202,
0.3259943002,
0.3306481322,
0.3114411282,
0.3074673822,
0.3086662742,
0.3197031502,
0.3169751852,
0.3243687852
]
},
{
"command": "pnpr@main",
"mean": 0.31895959230000004,
"stddev": 0.007403464753860902,
"median": 0.3181300807,
"user": 0.19501657999999997,
"system": 0.55670404,
"min": 0.3091215902,
"max": 0.3339237162,
"times": [
0.3187548892,
0.3140525532,
0.3118169142,
0.3091215902,
0.3206417342,
0.32666643219999997,
0.3226052622,
0.31750527219999997,
0.3145075592,
0.3339237162
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.00184055246,
"stddev": 0.06297530600098011,
"median": 1.98437764836,
"user": 1.05037224,
"system": 0.8523192399999999,
"min": 1.94652719286,
"max": 2.13124743186,
"times": [
1.98768434586,
1.97233755286,
1.94652719286,
1.95763569286,
1.9990085408600002,
1.95378771286,
1.98745834086,
1.98129695586,
2.10142175786,
2.13124743186
]
},
{
"command": "pacquet@main",
"mean": 1.94856286416,
"stddev": 0.031305410091338054,
"median": 1.9468969828600002,
"user": 1.0200142399999998,
"system": 0.75523704,
"min": 1.9075669668600002,
"max": 2.0088823808600003,
"times": [
1.9075669668600002,
1.9649958598600001,
2.0088823808600003,
1.98071466186,
1.95634368586,
1.93691138686,
1.9521974048600002,
1.91125562686,
1.92516410686,
1.94159656086
]
},
{
"command": "pnpr@HEAD",
"mean": 0.33751210186,
"stddev": 0.020990485196927755,
"median": 0.33455997986,
"user": 0.22077764000000002,
"system": 0.56412544,
"min": 0.31460978286,
"max": 0.38482466986,
"times": [
0.31697772086000003,
0.33973032786,
0.32329013086,
0.33887229686000003,
0.33024766286,
0.31460978286,
0.32790404986,
0.35791115586,
0.34075322086,
0.38482466986
]
},
{
"command": "pnpr@main",
"mean": 0.31830904206,
"stddev": 0.010386475628340008,
"median": 0.31788361886,
"user": 0.20705703999999997,
"system": 0.5311200399999999,
"min": 0.30343923586,
"max": 0.33273024686,
"times": [
0.33273024686,
0.31662235386,
0.31036927586,
0.32869246086,
0.32742458986,
0.32694194286,
0.30490402786,
0.30343923586,
0.31914488386,
0.31282140286
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.3601028193200001,
"stddev": 0.013427633374640927,
"median": 0.35516820222,
"user": 0.35117042,
"system": 0.05863752,
"min": 0.34631628672000003,
"max": 0.38602732472000006,
"times": [
0.37899275672000005,
0.35727568672000004,
0.35306071772000003,
0.36699208172000003,
0.34631628672000003,
0.35264202172000003,
0.35105779472000004,
0.34745419472000005,
0.36120932772000003,
0.38602732472000006
]
},
{
"command": "pacquet@main",
"mean": 0.4071422106200001,
"stddev": 0.015199879182101304,
"median": 0.4088463452200001,
"user": 0.3912847200000001,
"system": 0.07199542,
"min": 0.37782911172000005,
"max": 0.42704361372000005,
"times": [
0.40309343672000003,
0.42438636072,
0.42704361372000005,
0.40611327072000003,
0.41153299272000005,
0.37782911172000005,
0.38722953272000005,
0.41650109672,
0.40886538072000006,
0.40882730972000003
]
},
{
"command": "pnpr@HEAD",
"mean": 0.09041873965548389,
"stddev": 0.002171484562422414,
"median": 0.09083712572000001,
"user": 0.021956565161290315,
"system": 0.011015987096774194,
"min": 0.08649813372000001,
"max": 0.09381337672000001,
"times": [
0.09083712572000001,
0.09051512072000001,
0.08947368472000002,
0.09350966572000001,
0.09055171872000001,
0.08892087472000001,
0.09369898272000002,
0.08882577672000001,
0.08765607972000002,
0.09114575572000001,
0.08649813372000001,
0.08732925472000001,
0.08807572772000001,
0.09105544572000002,
0.09093865672000001,
0.08802193672000001,
0.09126947772,
0.09091996072000001,
0.09366761272000002,
0.09143021872000001,
0.08955088872000001,
0.08825295972000001,
0.09202589872000001,
0.09155231872000001,
0.09350604972000001,
0.09335317172000002,
0.09381337672000001,
0.09162898272000002,
0.08949264972000001,
0.08673426772000001,
0.08872915472000001
]
},
{
"command": "pnpr@main",
"mean": 0.0906797895587097,
"stddev": 0.0040276745952421734,
"median": 0.09049139572,
"user": 0.02095988774193548,
"system": 0.011883406451612904,
"min": 0.08535794172000001,
"max": 0.10475993272000002,
"times": [
0.09178015572,
0.08766189872,
0.09059315672000001,
0.08766267172000002,
0.08657616972000001,
0.08739987772,
0.08628261772000001,
0.08769892972000001,
0.08535794172000001,
0.08882303172000001,
0.09057929072000001,
0.08726336072000002,
0.08736963072000001,
0.08749118872000002,
0.09270593672,
0.09358547972000002,
0.08902244672000001,
0.08853474872000001,
0.09214528272000001,
0.09383189172,
0.10475993272000002,
0.09846629872000001,
0.08897560672000002,
0.08776748772000001,
0.09298774572000001,
0.09184029072000001,
0.09130100672000001,
0.09266786472,
0.09408465572000001,
0.09536548272,
0.09049139572
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.56294954398,
"stddev": 0.08206836804895609,
"median": 4.5357652993799995,
"user": 1.9811421,
"system": 1.52813006,
"min": 4.50540190888,
"max": 4.78357193188,
"times": [
4.6025672988799995,
4.52481077388,
4.52889868388,
4.50540190888,
4.541296055879999,
4.78357193188,
4.55602320488,
4.51309108488,
4.53023454288,
4.54359995388
]
},
{
"command": "pacquet@main",
"mean": 4.6610575804800005,
"stddev": 0.16118252146305131,
"median": 4.62653486988,
"user": 1.9939809999999998,
"system": 1.56146886,
"min": 4.46932949188,
"max": 4.89760685988,
"times": [
4.62177622688,
4.87262555088,
4.59435911588,
4.52483089588,
4.63129351288,
4.67706556788,
4.47289435988,
4.89760685988,
4.84879422288,
4.46932949188
]
},
{
"command": "pnpr@HEAD",
"mean": 3.61047789288,
"stddev": 0.10524550744048092,
"median": 3.63714912988,
"user": 1.3836181999999997,
"system": 1.3962956599999998,
"min": 3.46550328088,
"max": 3.76110256888,
"times": [
3.48864711188,
3.48109987188,
3.6647505178800004,
3.5649250388800002,
3.76110256888,
3.46550328088,
3.65199454088,
3.7207080878800003,
3.62230371888,
3.68374419088
]
},
{
"command": "pnpr@main",
"mean": 3.6910700346800005,
"stddev": 0.10953539016721377,
"median": 3.69894540538,
"user": 1.4847345999999997,
"system": 1.46521246,
"min": 3.5163713388800004,
"max": 3.82211971288,
"times": [
3.7273639218800003,
3.81616410588,
3.67052688888,
3.53071430588,
3.66489285388,
3.5163713388800004,
3.7419700448800004,
3.7914422928800002,
3.62913488088,
3.82211971288
]
}
]
} |
af1be12 to
728503c
Compare
|
Code review by qodo was updated up to the latest commit 728503c |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Summary
Related to #13201.
Adds recursive project selection to pacquet's
rebuildcommand sopnpm -r rebuildand filter-promoted rebuilds match the existing TypeScript implementation.--no-bail.The TypeScript CLI already has this behavior, so no TypeScript change is needed.
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
/codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit
New Features
rebuildnow honors workspace filters and rebuild scope, targeting only the selected workspace projects.Bug Fixes
rebuild --recursiveis correctly limited to the selected projects.--no-bailhandling is improved for recursive rebuilds, including continuation after upstream failures.Tests