Repository navigation
ci: split anvil-e2e into parallel settlement + journeys jobs, add mold/debuginfo tuning - #1417
Conversation
…d/debuginfo tuning The single anvil-e2e job was compile-dominated (~17m cold: settlement ~6m, build daemon+CLI ~4m, journeys ~5m). The three decdn-node compiles are genuinely distinct build contexts cargo can't share, so the redundancy can't be dissolved in-place. Two orthogonal wins instead: - Split into `anvil-e2e-settlement` (in-process settlement e2e, no bin build) and `anvil-e2e-journeys` (bins + cross-layer journeys), running concurrently so the two independent compiles overlap. Distinct rust-cache shared-keys; ci-success gate updated in both `needs` and `allowed-skips`. - Apply the `test` job's proven tuning to both: mold linker + `debuginfo=line-tables-only` + `split-debuginfo=unpacked` + `CARGO_INCREMENTAL=0` at job level (so rust-cache keys it, per the PR #484 pattern). The job links ~16 binaries with the system linker and full debuginfo today. Settlement bound sized at 60m for the cold-cache first run (new key, nothing to restore); journeys keeps 130m. Corrected the relocated journeys timeout inventory to the actual 16 tests / 13 files (summing to 218m, ~109m balanced): dropped the phantom G-ORIGIN-04, added the G-GOV-02 and G-NODE-08 journeys. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (1)
WalkthroughThe CI workflow splits the former Anvil end-to-end job into settlement and journeys jobs, each with distinct execution settings and cache partitions. The CI success gate is updated to account for the new job identifiers. ChangesAnvil E2E CI split
Estimated code review effort: 3 (Moderate) | ~20 minutes Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Gas snapshotNo gas changes vs base. |
Contracts coverageLine coverage: 89.58% (2631/2937 lines) |
There was a problem hiding this comment.
Pull request overview
This PR optimizes CI wall-clock time by splitting the previously monolithic anvil-e2e workflow job into two parallel jobs (settlement vs. cross-layer journeys) and applying build/link tuning (mold + reduced debuginfo + no incremental) so the heavy, distinct build contexts overlap instead of running serially.
Changes:
- Split
anvil-e2eintoanvil-e2e-settlementandanvil-e2e-journeys, both gated by the existing Rust/Solidity change filters. - Add job-level compile/link tuning (
mold,debuginfo=line-tables-only,split-debuginfo=unpacked,CARGO_INCREMENTAL=0) to ensureSwatinem/rust-cachekeys correctly. - Update
ci-successgating (needsandallowed-skips) to reference the two new job IDs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Coverage reportTotal: 81.16% (was 81.16%, ● 0.00%) — 54166/66742 lines No Rust files changed in this PR. History
|
What & why
The single
anvil-e2ejob is compile-dominated (~17m cold: settlement ~6m, build daemon+CLI ~4m, journeys ~5m; the test execution is minor). Investigation established the threedecdn-nodecompiles are genuinely distinct build contexts cargo can't share — the settlement integration-test scope, the daemon bin-context (dev-deps off), and thedecdn-e2escope. Unifying via Cargo.toml features was tested and proven not to work (whole-graph feature unification is scoped to the selected package set, so different-pselections pull different dev-deps that re-key shared crates likealloy/iroh/tokio). So the redundancy can't be dissolved in-place — two orthogonal levers instead.Changes (
.github/workflows/ci.ymlonly)Split
anvil-e2e→ two parallel jobs:anvil-e2e-settlement— in-process settlement e2e only (--test anvil_settlement_e2e), no bin build (the test spawns onlyanvil/forge, never adecdn-node/decdnbinary — verified).anvil-e2e-journeys—cargo build -p decdn-node -p decdn-clithen the cross-layer journeys at--test-threads 2.Running concurrently overlaps the two independent compiles instead of running them back-to-back. Distinct rust-cache
shared-keys;ci-successgate updated in bothneedsandallowed-skips.Compile-speed tuning on both jobs, mirroring the existing
testjob: mold linker +debuginfo=line-tables-only+split-debuginfo=unpacked+CARGO_INCREMENTAL=0, at job level soSwatinem/rust-cachekeys it (per the PR ci: speed up coverage build with mold linker + debug-info trim #484 pattern). Today this path links ~16 binaries with the system linker and full debuginfo.line-tables-onlypreserves panic-backtrace line numbers for flaky-journey triage.Notes
shared-keyis new, so the introducing PR runs a fully cold compile with nothing to restore.G-ORIGIN-04, added theG-GOV-02and twoG-NODE-08journeys.Test plan
yaml.safe_loadparses;actionlintclean.ci-successneeds/allowed-skipsresolve to the two new job IDs; no stale bareanvil-e2ereference remains.anvil/forge).Install mold linker,ci-successgoes green, and compare per-job wall-clock against the ~17m baseline.🤖 Generated with Claude Code
Summary by CodeRabbit