Repository navigation
fix(ci,test): un-rot the anvil bring-up e2e and gate it so it cannot rot again - #1473
Conversation
…rot again `crates/node/tests/anvil_bringup_shutdown_e2e.rs` has not compiled since 2026-07-23. `ResolvedConfig` gained a `content` field in #1380 and `ResolvedCache` gained `max_rate_per_mb` in #1420; neither threaded the new field into this builder. Adding the two initializers is the whole fix — the test then passes on the first run, so nothing about the behaviour it asserts had actually regressed. The interesting part is why nobody noticed for three days. The `anvil e2e (settlement)` job ran `--test anvil_settlement_e2e`, a single-target filter, so this file was never built by any job in CI. It was even edited in its broken state by #1465 the day before this fix, because touching a file that no job compiles produces no signal. `cargo build --workspace --all-targets` does not catch it either: the target is behind the off-by-default `anvil-e2e` feature. So the job now names both anvil targets explicitly rather than filtering to one. A bare `-p decdn-node --features anvil-e2e` would have been shorter but drags the full unit suite in behind the feature flag and duplicates the `test` job; the explicit list keeps the job scoped while making a missing target a build failure instead of silence. The added target needs only `anvil` + `forge`, both already on PATH in that job, and drives `runtime::run` in-process, so it fits the "no daemon binary on disk" property the split relies on. Adds ~25s. Both targets pass together locally: 5 tests across 2 binaries. Incidental, found while auditing the metric registry for #1443: `decdn_probe_holds_disabled_total` was documented twice in `adr/appendix-observability.md` — once under § Slash-Safety Metrics and again under § Probe Metrics — and the two copies had already drifted in wording. The § Slash-Safety Metrics row is canonical (that section's preamble states the probe-hold capacity metrics are grouped there deliberately), so the § Probe Metrics copy is removed and replaced with a pointer naming all five probe-hold metrics and why they live elsewhere. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Warning Review limit reached
Next review available in: 42 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (3)
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.92% (2615/2908 lines) |
There was a problem hiding this comment.
Pull request overview
Fixes a feature-gated anvil e2e integration test that had silently stopped compiling due to newly-added config fields, and updates CI so all anvil e2e targets are explicitly built/run to prevent this kind of rot from going undetected. Also removes a duplicated metric registry row in the observability appendix to keep documentation canonical and non-divergent.
Changes:
- Update
anvil_bringup_shutdown_e2etest config builder to initialize newly-requiredResolvedCache.max_rate_per_mbandResolvedConfig.content. - Adjust CI’s anvil e2e job to run both anvil integration test binaries explicitly (settlement + bring-up/shutdown).
- Remove the duplicated
decdn_probe_holds_disabled_totalrow from the Probe Metrics section and replace it with a pointer to the canonical Slash-Safety section.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| crates/node/tests/anvil_bringup_shutdown_e2e.rs | Restores compilation by initializing newly-added resolved config fields in the test’s config builder. |
| adr/appendix-observability.md | De-duplicates metric documentation by keeping probe-hold metrics canonical in Slash-Safety and pointing to it from Probe Metrics. |
| .github/workflows/ci.yml | Prevents future anvil e2e test rot by running both feature-gated anvil test binaries explicitly in CI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Coverage reportTotal: 81.10% (was 81.10%, ● 0.00%) — 52376/64583 lines No coverage data for changed Rust files. History
|
crates/node/tests/anvil_bringup_shutdown_e2e.rshas not compiled since 2026-07-23. Two initializers fix it; the interesting part is why nobody noticed.The rot
ResolvedConfiggained acontentfield in #1380 (07-23) andResolvedCachegainedmax_rate_per_mbin #1420 (07-24). Neither threaded the new field into this test's config builder:Adding the two initializers is the entire fix — the test then passes on the first run, so nothing it asserts had actually regressed. It was only unbuildable, not broken.
Why CI stayed green for three days
The
anvil e2e (settlement)job ran a single-target filter:So this file was built by no job at all. Two things follow, and both happened:
cargo build --workspace --all-targetsdoes not catch it either — the target sits behind the off-by-defaultanvil-e2efeature.I hit this while running the full anvil suite by hand for #1472 and confirmed it reproduces on a clean
main.The gate
The job now names both anvil targets explicitly instead of filtering to one:
A bare
-p decdn-node --features anvil-e2ewould be shorter, but it drags the whole unit suite in behind the feature flag and duplicates thetestjob. The explicit list keeps the job scoped while turning a missing target into a build failure rather than silence — and the inline comment says so, so the next person adding ananvil_*target knows to extend it.The added target fits the job's existing shape: it needs only
anvil+forge(both already on PATH viafoundry-setup) and drivesruntime::runin-process, so the "no daemon/CLI binary on disk" property the settlement/journeys split relies on still holds. Costs ~25s.Verified locally — both targets together:
Incidental: a duplicated metric row
Found while auditing the metric registry for #1443.
decdn_probe_holds_disabled_totalwas documented twice inadr/appendix-observability.md— under § Slash-Safety Metrics and again under § Probe Metrics — and the two copies had already drifted in wording. The § Slash-Safety Metrics row is canonical (that section's own preamble says the probe-hold capacity metrics are grouped there deliberately), so the § Probe Metrics copy is removed and replaced with a pointer naming all five probe-hold metrics and where they live.Correction to something I wrote on #1443: I said
decdn_probe_stake_lane_reserved_totalwas missing from the informal→canonical mapping table. That was wrong, and I have not "fixed" it. That table maps informal names used in earlier ADRs to their canonical forms; the stake-lane counter was born canonical in #757 and has no informal predecessor, so having no row is correct.🤖 Generated with Claude Code