Repository navigation
chore(ci): run checks through pnpm pipelines - #14690
Conversation
PR Summary by QodoRoute CI checks through named pnpm pipelines
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughCI workflows now use centralized pnpm pipeline targets. Root scripts and workspace task mappings define targets for TypeScript, Rust, testing, formatting, linting, and pnpr builds. Test chunk arguments can use environment-variable defaults. Ambient pnpm filtering also removes lifecycle environment variables. ChangesCI Pipeline Consolidation
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested labels: Merge Risk: ⚪ Minimal · up to CI checks now use centralized pnpm pipelines, with inherited lifecycle state stripped to preserve script filtering behavior. Supplied validation shows no remaining merge-blocking production risk. ✨ 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 |
Confidence Score: 5/5The PR appears safe to merge, with the pipeline mappings preserving the existing checks, ordering, sharding, and build outputs. No actionable failure remains: root tasks are selected exactly once, compile precedes lint, workflow environment variables reach chunked tests, and the wrapped Rust commands retain their prerequisites and expected output paths. Reviews (1): Last reviewed commit: "chore(ci): run checks through pnpm pipel..." | Re-trigger Greptile |
Code Review by Qodo
1. Rust jobs download unused Node
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
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. 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.55698394632,
"stddev": 0.052202768811547326,
"median": 2.5496988573199997,
"user": 2.13783444,
"system": 2.11217914,
"min": 2.49141963082,
"max": 2.66378115782
},
{
"command": "pacquet@main",
"mean": 2.68918238852,
"stddev": 0.15353855683993378,
"median": 2.63691263632,
"user": 2.3805958400000007,
"system": 2.29379284,
"min": 2.5668080818199996,
"max": 3.0965940378199996
},
{
"command": "pnpr@HEAD",
"mean": 1.50228528382,
"stddev": 0.11953790432802752,
"median": 1.47203498482,
"user": 1.70525354,
"system": 1.7951447399999996,
"min": 1.3767471078200002,
"max": 1.70389359582
},
{
"command": "pnpr@main",
"mean": 1.5384697039200002,
"stddev": 0.16976013330935333,
"median": 1.4915935983200002,
"user": 1.7156944399999996,
"system": 1.7999799399999996,
"min": 1.35643539482,
"max": 1.87768598382
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.39749127456,
"stddev": 0.05230866266942648,
"median": 0.37732624346,
"user": 0.43041866000000006,
"system": 0.87755028,
"min": 0.33981614746,
"max": 0.5146683444600001
},
{
"command": "pacquet@main",
"mean": 0.4006797518600001,
"stddev": 0.0546610989001646,
"median": 0.38045916296,
"user": 0.44050076000000005,
"system": 0.8701439800000002,
"min": 0.33276995646,
"max": 0.5133499454600001
},
{
"command": "pnpr@HEAD",
"mean": 0.41633869536000007,
"stddev": 0.03136608243341248,
"median": 0.42370085446,
"user": 0.44643466,
"system": 0.8866961800000001,
"min": 0.35810596646,
"max": 0.47189345446000003
},
{
"command": "pnpr@main",
"mean": 0.44785068926000005,
"stddev": 0.07526079480594702,
"median": 0.41495090396,
"user": 0.48953645999999995,
"system": 0.89263218,
"min": 0.38056650846,
"max": 0.5864372614600001
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.015121302422732918,
"stddev": 0.002647756793464491,
"median": 0.01473345346,
"user": 0.008058287453416151,
"system": 0.008018262608695653,
"min": 0.01114071246,
"max": 0.02046205946
},
{
"command": "pacquet@main",
"mean": 0.015601415982167487,
"stddev": 0.0029343810495471717,
"median": 0.015449294460000002,
"user": 0.008826647487684736,
"system": 0.007737705221674877,
"min": 0.009974338460000001,
"max": 0.023266137460000003
},
{
"command": "pnpr@HEAD",
"mean": 0.01679405988253521,
"stddev": 0.0025221193693244224,
"median": 0.01749165096,
"user": 0.0088017476056338,
"system": 0.008922013239436621,
"min": 0.011301756460000001,
"max": 0.02092168346
},
{
"command": "pnpr@main",
"mean": 0.016355670466896552,
"stddev": 0.002823315315477411,
"median": 0.01664642546,
"user": 0.009020804137931035,
"system": 0.008311706206896549,
"min": 0.01090069446,
"max": 0.021939299460000002
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.008873484243708608,
"stddev": 0.0008262990538396739,
"median": 0.008841377800000001,
"user": 0.005187069801324505,
"system": 0.004238270198675495,
"min": 0.006736597800000001,
"max": 0.012128967800000001
},
{
"command": "pacquet@main",
"mean": 0.008876534685496177,
"stddev": 0.0008950711319874422,
"median": 0.008750798800000001,
"user": 0.005392727022900761,
"system": 0.004016587022900764,
"min": 0.0071792288000000004,
"max": 0.0136062998
},
{
"command": "pnpr@HEAD",
"mean": 0.008903418170370367,
"stddev": 0.0010108082757442113,
"median": 0.0087659868,
"user": 0.005036334238683129,
"system": 0.004399866666666664,
"min": 0.0069994618000000005,
"max": 0.013571334800000001
},
{
"command": "pnpr@main",
"mean": 0.009283554076729556,
"stddev": 0.001414093241094385,
"median": 0.0090783018,
"user": 0.005693546289308174,
"system": 0.004128441006289305,
"min": 0.007090106800000001,
"max": 0.014944055800000001
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.5708325560000005,
"stddev": 0.04777189630925142,
"median": 2.5694394151,
"user": 2.1373100399999996,
"system": 1.83742338,
"min": 2.4938025746,
"max": 2.6384345816000003
},
{
"command": "pacquet@main",
"mean": 2.5294214699,
"stddev": 0.0746430149227375,
"median": 2.5137806861,
"user": 1.9549534399999995,
"system": 1.73175718,
"min": 2.4543872756000003,
"max": 2.7229507596
},
{
"command": "pnpr@HEAD",
"mean": 1.512869414,
"stddev": 0.10351349152649866,
"median": 1.5010500616,
"user": 1.2088915399999998,
"system": 1.45514008,
"min": 1.3889070265999999,
"max": 1.7062366366
},
{
"command": "pnpr@main",
"mean": 1.5826018526999996,
"stddev": 0.10800765762359575,
"median": 1.5404194691,
"user": 1.3814295399999996,
"system": 1.66809558,
"min": 1.4732961456,
"max": 1.8160491445999998
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.52320926492,
"stddev": 0.018323507097178397,
"median": 0.52356044272,
"user": 0.8542248599999999,
"system": 1.1807729,
"min": 0.49391045922000004,
"max": 0.55609255122
},
{
"command": "pacquet@main",
"mean": 0.5446289711200001,
"stddev": 0.03321251810741113,
"median": 0.5415206992199999,
"user": 0.88687346,
"system": 1.2587984,
"min": 0.48441281822000004,
"max": 0.5933651612199999
},
{
"command": "pnpr@HEAD",
"mean": 0.36793364832000003,
"stddev": 0.010607318410029999,
"median": 0.36690892672000003,
"user": 0.31626466,
"system": 0.7514942,
"min": 0.35452937422,
"max": 0.38498453022
},
{
"command": "pnpr@main",
"mean": 0.38981897422000006,
"stddev": 0.03300671832167163,
"median": 0.37716009272000006,
"user": 0.35355336,
"system": 0.8131007,
"min": 0.34880933422000004,
"max": 0.45566087722000004
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.6302183497400002,
"stddev": 0.045060763832826686,
"median": 1.6133573242400001,
"user": 0.9826982,
"system": 1.0664062,
"min": 1.5875592887399999,
"max": 1.70623591874
},
{
"command": "pacquet@main",
"mean": 1.6454633394399998,
"stddev": 0.07043582481768448,
"median": 1.63180529674,
"user": 1.0506749000000002,
"system": 1.0396644,
"min": 1.5733373927399998,
"max": 1.8369026417399998
},
{
"command": "pnpr@HEAD",
"mean": 0.31006951433999996,
"stddev": 0.017729602527746986,
"median": 0.31060032424000006,
"user": 0.24981330000000002,
"system": 0.5892341000000001,
"min": 0.27683736374,
"max": 0.33366851674000003
},
{
"command": "pnpr@main",
"mean": 0.40499920763999997,
"stddev": 0.07236445016765505,
"median": 0.37532490024,
"user": 0.34438179999999996,
"system": 0.7359739,
"min": 0.34961707374,
"max": 0.57348813774
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2424647619,
"stddev": 0.0194384849141905,
"median": 0.2434848569,
"user": 0.2538053333333333,
"system": 0.08607320666666667,
"min": 0.2075991169,
"max": 0.27716565890000006
},
{
"command": "pacquet@main",
"mean": 0.22772488773333335,
"stddev": 0.021762829297597763,
"median": 0.2337003379,
"user": 0.22923974999999996,
"system": 0.09165212333333334,
"min": 0.1922664419,
"max": 0.26160545490000003
},
{
"command": "pnpr@HEAD",
"mean": 0.09650252953333335,
"stddev": 0.005887297571535666,
"median": 0.09460832690000001,
"user": 0.0354323,
"system": 0.017550738666666666,
"min": 0.08871743590000002,
"max": 0.11188551790000001
},
{
"command": "pnpr@main",
"mean": 0.09624234322258066,
"stddev": 0.0027853924238457235,
"median": 0.09608348290000002,
"user": 0.03806282258064516,
"system": 0.01586268516129032,
"min": 0.0910147579,
"max": 0.1015979659
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.7697493386977778,
"stddev": 0.05609505630677376,
"median": 0.76614050292,
"user": 0.8165948622222223,
"system": 0.21549451777777776,
"min": 0.68579170192,
"max": 0.84976484192
},
{
"command": "pacquet@main",
"mean": 0.7957548732533335,
"stddev": 0.07218061228975114,
"median": 0.79360267892,
"user": 0.8453367511111111,
"system": 0.22961007333333333,
"min": 0.7023310849200001,
"max": 0.90095758392
},
{
"command": "pnpm@HEAD",
"mean": 4.021196861142223,
"stddev": 0.24023663522299202,
"median": 3.97274999692,
"user": 6.451824417777777,
"system": 0.28540907333333326,
"min": 3.77898729392,
"max": 4.51822813392
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.62571540188,
"stddev": 0.1759465893375982,
"median": 4.65634749428,
"user": 1.93381564,
"system": 1.82869474,
"min": 4.38432184178,
"max": 4.89609153478
},
{
"command": "pacquet@main",
"mean": 4.858301919480001,
"stddev": 0.45055298787654774,
"median": 4.71755294078,
"user": 2.18372084,
"system": 2.08175024,
"min": 4.4244579577800005,
"max": 5.842474145780001
},
{
"command": "pnpr@HEAD",
"mean": 3.8765408101800007,
"stddev": 0.348471855116245,
"median": 3.7681995382799998,
"user": 2.2038376399999997,
"system": 2.27375914,
"min": 3.48025559378,
"max": 4.67890852978
},
{
"command": "pnpr@main",
"mean": 3.8121304538800005,
"stddev": 0.1522379442633355,
"median": 3.78788216628,
"user": 2.3708819400000003,
"system": 2.42670854,
"min": 3.61793541478,
"max": 4.15574116478
}
]
}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.19130658974000003,
"stddev": 0.028120972754987473,
"median": 0.19636258524000003,
"user": 0.22569892749999998,
"system": 0.17917956499999999,
"min": 0.14032837474,
"max": 0.24302886174000002
},
{
"command": "pacquet@main",
"mean": 0.19500443457333336,
"stddev": 0.01534089163123323,
"median": 0.19281991074000002,
"user": 0.21120898999999996,
"system": 0.20170010666666663,
"min": 0.16434089574000002,
"max": 0.21723568374000002
},
{
"command": "pnpr@HEAD",
"mean": 0.23036148674000004,
"stddev": 0.021729508308705892,
"median": 0.22551784874000003,
"user": 0.25806260363636363,
"system": 0.1869450309090909,
"min": 0.19778731674000002,
"max": 0.26939257174000003
},
{
"command": "pnpr@main",
"mean": 0.21422624364909096,
"stddev": 0.014545980083076,
"median": 0.21581016774000003,
"user": 0.22638060363636364,
"system": 0.19805203090909088,
"min": 0.19241860074000003,
"max": 0.24294238874000001
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/14690 |
| 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) |
|---|---|---|
| gvs-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 140.53 ms |
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,381.77 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 250.60 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 254.23 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 93.38 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,342.50 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,357.23 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 212.95 ms |
| isolated-linker.repeat-install.cold-cache.hot-store | 📈 view plot | 5.70 ms |
| isolated-linker.repeat-install.hot-cache.hot-store | 📈 view plot | 5.98 ms |
`pnpm pipeline` performs a frozen install before it runs any task, so the install landed inside the commands wrapped by `measure-command.mjs`, whose wall-clock result is uploaded to Bencher. Install and registry latency would have been reported as test duration on the pnpm, pacquet and pnpr testbeds. Install in an earlier step again so the pipeline's own install is a no-op; in the Rust test job that step unsets the same variables the test steps do, so both installs resolve the same store. Drop the `dependsOn: []` task entries. A declared entry with `dependsOn` omitted already means an empty dependency list, so only the compile-before-lint edge carries information; the task graph is unchanged without them. Replace the workspace comments with the reasons the invocation flags are there, and name the environment fallbacks in the chunk runner's usage message. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HrGzjn4rW2m7v42DBzPVqy
ec3123c to
e252fb3
Compare
|
Code review by qodo was updated up to the latest commit e252fb3 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
`pnpm run` treats an inherited `npm_lifecycle_event` as "a script is calling me" and stops filtering hidden scripts out of a selector's matches. Running the suite under `pnpm pipeline` sets that variable, so the pacquet a test spawns inherited it and ran a `.hidden` script the test asserts is skipped. `without_ambient_pnpm_config` already exists to keep the pnpm under test free of the ambient environment; the variable simply did not match its `*_config_*` name test. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HrGzjn4rW2m7v42DBzPVqy
|
Two follow-ups on this run.
Verified both ways locally: with the fix the test passes under Qodo's "Rust jobs download unused Node" — declining. The runtime is not unused. The frozen install those jobs perform runs dependency build scripts, all of them Node programs. From the The whole Written by an agent (Claude Code, claude-opus-5). |
|
Code review by qodo was updated up to the latest commit f14fcdb |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14690 +/- ##
==========================================
+ Coverage 90.78% 90.79% +0.01%
==========================================
Files 801 1236 +435
Lines 159560 160133 +573
==========================================
+ Hits 144852 145400 +548
- Misses 14708 14733 +25 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Declare CI pipelines and root task scripts, and invoke them from the TypeScript, Rust, reusable test, and pnpr build workflows. Let pipelines perform frozen installs and order TypeScript compilation before linting. Keep existing test runners responsible for affected-package selection, file-level sharding, and summary generation. Read shard settings from the workflow environment, with explicit command-line arguments taking precedence. Run root tasks with --include-workspace-root --full: the scripts live in the root manifest only, and the test runners already select their own scope. Pass --no-cache so a task that later declares outputs cannot skip a check. Keep the dependency install in its own step in the two jobs whose commands are timed for Bencher, so the reported duration stays a test duration. Preserve existing job gates and artifact handoffs.
Declare CI pipelines and root task scripts, and invoke them from the TypeScript, Rust, reusable test, and pnpr build workflows. Let pipelines perform frozen installs and order TypeScript compilation before linting. Keep existing test runners responsible for affected-package selection, file-level sharding, and summary generation. Read shard settings from the workflow environment, with explicit command-line arguments taking precedence. Run root tasks with --include-workspace-root --full: the scripts live in the root manifest only, and the test runners already select their own scope. Pass --no-cache so a task that later declares outputs cannot skip a check. Keep the dependency install in its own step in the two jobs whose commands are timed for Bencher, so the reported duration stays a test duration. Preserve existing job gates and artifact handoffs.
Summary
Run the TypeScript CI, reusable test workflow, Rust CI, and shared pnpr build through 12 named pnpm 12.4 pipelines. Pipelines perform frozen installs and declare the compile-before-lint dependency. Existing runners retain affected-package selection, Windows test sharding, and Bencher report generation.
The two jobs whose commands are wrapped in
measure-command.mjsstill install in an earlier step, so the wall-clock figure they upload to Bencher stays a test duration rather than a test duration plus registry latency. The pipeline's own frozen install is a no-op there. In the Rust test job that earlier step unsets the same variables the test steps do, so both installs resolve the same store.Validation:
ts-check,rust-formatandrust-denyend to end against pnpm 12.4.1: compile is ordered before lint, the two format tasks run concurrently, all exit 0.ts-test-chunkthrough the pipeline to confirmTEST_SCRIPT,TEST_CHUNKandTEST_CHUNK_TOTALreach the chunk runner, and that unset or non-numeric values are rejected.--include-workspace-rootand--full:--fullalone selects nothing, and--include-workspace-rootalone falls back to affected selection.dependsOn: []entries were dropped.Full CI suites were not run locally.
Squash Commit Body
Checklist
Written by an agent (Codex, GPT-6), reviewed and revised by an agent (Claude Code, claude-opus-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
Tests
Chores