Repository navigation
perf(ci): split the DuckLake e2e tier into parallel legs behind a same-name gate - #388
Merged
Merged
Conversation
…e-name gate The 30m job was 2m16s of build (sccache S3, 100% hits) and ~22m of test binaries running one after the other — er-cli's lake suite 888s, then er-server's 419s (run 41461727505). Now: `lake-e2e` runs er-cli alone as two nextest hash partitions (no postgres service — er-cli's tests never touch pg), `ducklake-e2e` keeps dedupe-cli + er-server + er-entity-diff + the extensions step, and `ducklake-gate` carries the old job's exact name so the required context "DuckLake + extensions e2e" kept reporting and branch protection never changed. Expected wall: ~30m -> ~15m for ~+10 runner-minutes. nextest, though the `test` job measured it out: that tax is process-per-test on thousands of tiny tests; this suite is 44 tests averaging ~21s (recorded A/B on the combined job: 15.5m cargo vs 15.2m nextest), and hash partitioning auto-assigns new tests to a shard, so the filter-list failure mode (a new test in no leg) cannot happen. The pg suite stays on plain `cargo test` — its tests coordinate around the shared service database in-process. Also retires three pieces of prose the sccache-S3 move left stale: rust.yml's header still said "GHA backend", sccache.tf still said "NOT APPLIED YET" (applied 2026-10-28/29, live since #350), and build-cost.md/SKILL.md still carried S3 as the next step. The new build-cost.md section records the split's before-numbers; per-leg after-numbers get appended once the first runs land. Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
terraform plan
|
This was referenced Nov 2, 2026
athvin
added a commit
that referenced
this pull request
Nov 2, 2026
…titions to three (#394) The server leg (14.7m) was the e2e tier's floor after the #388 split: build, then er-server's 419s suite, then the extensions step's second build. Two slices now run in parallel — `pg` (er-server's pg_* modules, complementary by module-name prefix) and `rest` (dedupe-cli + er-entity-diff unfiltered, since their Postgres tests carry non-pg_ fn names a filter could silently drop; er-server's remaining targets with the complementary --skip; extensions). The lake partitions go 2 -> 3: the first hash run landed 518s/274s of test execution — count-balanced, duration-skewed — and three put the expected leg under the server slices' wall. Expected tier wall ~15m -> ~11m; the gate's `needs` is unchanged (the matrix aggregate covers both slices). Co-authored-by: bmoore813 <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
athvin
added a commit
that referenced
this pull request
Nov 2, 2026
…ngs (#395) The after-numbers for #388/#389/#391/#393/#394: PR wall ~32-35m -> ~13.5m, per-leg breakdowns, the completeness checks that were run rather than assumed, the remaining floors (er-server's pg suite at 423.8s, hash lumpiness, playwright shard 2) and the deliberate minutes cost. Plus two findings: a lock-touching PR runs cold until merge by design (read-only sccache role), and the disk-reclaim step stays on every leg by measurement (15G free at boot, ~7G/~2G margins without it). Co-authored-by: bmoore813 <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The 30m
DuckLake + extensions e2ejob becomes three jobs:lake-e2e— er-cli alone, twocargo nextest --partition hash:N/2legs. No postgres service: er-cli's tests never touch pg (the lake catalog is a DuckDB file under a per-tester_cli_{tag}_{pid}temp dir — which is also what makes process-per-test safe).ducklake-e2e— dedupe-cli + er-server + er-entity-diff + the extensions step, unchanged mechanics. The pg suite stays on plaincargo testdeliberately (in-process coordination around the shared service database).ducklake-gate— non-matrix, carries the old job's exactname:, so the required context "DuckLake + extensions e2e" keeps reporting with zero branch-protection edits (same pattern and reasoning as infra.yml'splan-gate; matrix per-leg names can never be required — feat(ci): four gh-aw agentic workflows, on the judgement CI cannot do #359).Why
Run 41461727505 decomposed the tier: 2m16s build at a 100% sccache hit rate, then ~22m of test binaries running serially — er-cli's suite 888s (lake_e2e = 40 tests / 13.8m), er-server's 419s. Compile is solved; serialization is the wall. A second runner now costs ~5m of setup+build (S3-era price) to take ~15m off the wall: expected ~30m → ~15m for ~+10 runner-minutes.
nextest here even though the
testjob measured it out (357s→453s): that tax is process-per-test on thousands of tiny tests; this suite averages ~21s/test, and the recorded A/B on this very job was 15.5m cargo vs 15.2m nextest. Hash partitioning auto-assigns new tests to a shard — the filter-list failure mode (a new test silently in no leg) cannot happen.Also
Retires prose the sccache-S3 move left stale: rust.yml:38 ("GHA backend"), sccache.tf ("NOT APPLIED YET" — applied 2026-10-28/29, live since #350), build-cost.md ("Next step: sccache on S3" → shipped section + the split's before-numbers), SKILL.md (GHA-backend eviction claim, "only job with disk-reclaim").
required-checks.mdregenerated byscripts/skills-check.sh.Verification
DEDUPE_E2E_DUCKLAKEgate is a runtime skip — a mis-enved leg would go green in seconds).🤖 Generated with Claude Code