Skip to content

ci: split anvil-e2e into parallel settlement + journeys jobs, add mold/debuginfo tuning - #1417

Merged
thiras merged 1 commit into
mainfrom
ci/split-tune-anvil-e2e
Jul 23, 2026
Merged

thiras merged 1 commit into
mainfrom
ci/split-tune-anvil-e2e

Conversation

@thiras

@thiras thiras commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

What & why

The single anvil-e2e job is compile-dominated (~17m cold: settlement ~6m, build daemon+CLI ~4m, journeys ~5m; the test execution is minor). Investigation established the three decdn-node compiles are genuinely distinct build contexts cargo can't share — the settlement integration-test scope, the daemon bin-context (dev-deps off), and the decdn-e2e scope. 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 -p selections pull different dev-deps that re-key shared crates like alloy/iroh/tokio). So the redundancy can't be dissolved in-place — two orthogonal levers instead.

Changes (.github/workflows/ci.yml only)

  1. Split anvil-e2e → two parallel jobs:

    • anvil-e2e-settlement — in-process settlement e2e only (--test anvil_settlement_e2e), no bin build (the test spawns only anvil/forge, never a decdn-node/decdn binary — verified).
    • anvil-e2e-journeys — cargo build -p decdn-node -p decdn-cli then 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-success gate updated in both needs and allowed-skips.

  2. Compile-speed tuning on both jobs, mirroring the existing test job: mold linker + debuginfo=line-tables-only + split-debuginfo=unpacked + CARGO_INCREMENTAL=0, at job level so Swatinem/rust-cache keys 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-only preserves panic-backtrace line numbers for flaky-journey triage.

Notes

  • Settlement bound is 60m (journeys keeps 130m): its shared-key is new, so the introducing PR runs a fully cold compile with nothing to restore.
  • First run re-keys the cache (new RUSTFLAGS + new shared-keys) → one-time cold miss, warm after. Cache footprint roughly doubles (two partitions) — accepted tradeoff of the split.
  • Corrected the relocated journeys timeout inventory to the actual 16 tests / 13 files (218m sum, ~109m balanced): dropped a phantom G-ORIGIN-04, added the G-GOV-02 and two G-NODE-08 journeys.
  • Expected: ~17m → ~8–9m wall-clock on cold cache, at ~2× runner minutes.

Test plan

  • yaml.safe_load parses; actionlint clean.
  • ci-success needs/allowed-skips resolve to the two new job IDs; no stale bare anvil-e2e reference remains.
  • Settlement test confirmed in-process (spawns only anvil/forge).
  • Confirm on this PR's Actions run: both jobs run concurrently, each logs Install mold linker, ci-success goes green, and compare per-job wall-clock against the ~17m baseline.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Split end-to-end testing into separate settlement and cross-layer journey test suites.
    • Updated CI status checks to account for both new test jobs.
    • Preserved targeted execution based on relevant code changes while improving test isolation and reporting.

…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]>
Copilot AI review requested due to automatic review settings July 23, 2026 16:54
@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

Review Change Stack

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Free

Run ID: ff7c8bc8-f3b0-4d08-a9e4-f7dc8f4eb656

📥 Commits

Reviewing files that changed from the base of the PR and between 6d00951 and 37e804b.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

Walkthrough

The 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.

Changes

Anvil E2E CI split

Layer / File(s) Summary
Split Anvil E2E jobs
.github/workflows/ci.yml
Adds separate settlement and journeys jobs with distinct entrypoints, gating conditions, timeouts, build flags, tooling setup, and cache partitions.
CI success gate wiring
.github/workflows/ci.yml
Updates the CI success job’s dependency and allowed-skips configuration for the new E2E job identifiers.

Estimated code review effort: 3 (Moderate) | ~20 minutes


Note

🎁 Summarized by CodeRabbit Free

Your 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 @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

Gas snapshot

No gas changes vs base.

@github-actions

Copy link
Copy Markdown

Contracts coverage

Line coverage: 89.58% (2631/2937 lines)
▲ +0.00pp vs base (89.58% → 89.58%)
Run: 30027151826

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-e2e into anvil-e2e-settlement and anvil-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 ensure Swatinem/rust-cache keys correctly.
  • Update ci-success gating (needs and allowed-skips) to reference the two new job IDs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown

Coverage report

Total: 81.16% (was 81.16%, ● 0.00%) — 54166/66742 lines

No Rust files changed in this PR.

History
Commit Total Δ vs base
37e804b (HEAD) 81.16% ● 0.00%

@thiras
thiras merged commit 50e8306 into main Jul 23, 2026
25 checks passed
@thiras
thiras deleted the ci/split-tune-anvil-e2e branch July 23, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants