Repository navigation
fix(e2e): drop duplicate expect_revert breaking main - #1400
Conversation
#1387 and #1367 each landed their own `expect_revert` in `crates/e2e/src/assert.rs` — textually disjoint, so git merged both and main stopped compiling (E0428, `decdn-e2e` lib), taking clippy, test, doctest, cargo doc, and anvil e2e down with it. Keep #1367's version: same signature and behaviour, but it shares the selector check with `expect_revert_anyhow` via `assert_revert_data` instead of inlining it. Callers of either copy are unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Warning Review limit reached
Next review available in: 16 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 (1)
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 |
There was a problem hiding this comment.
Pull request overview
Fixes a build break on main caused by a duplicate expect_revert definition in the decdn-e2e assertion helpers by removing the redundant copy and leaving the canonical implementation in place.
Changes:
- Removed the duplicate
expect_revertfunction definition fromcrates/e2e/src/assert.rs, leaving the existing shared-selector-check implementation (assert_revert_data) as the single source of truth.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Coverage reportTotal: 81.29% (was 81.27%, ▲ +0.02%) — 55165/67859 lines
History
|
Problem
maindoes not compile. #1387 and #1367 each added their ownexpect_reverttocrates/e2e/src/assert.rs; the two additions were textually disjoint, so git merged both cleanly and produced a duplicate definition:That took down every Rust job in the post-merge run (29959123417): clippy, test, doctest, cargo doc, and anvil e2e.
Fix
Delete #1387's copy and keep #1367's. Both have the same signature and behaviour; #1367's shares the selector check with
expect_revert_anyhowthroughassert_revert_datarather than inlining it, so no caller of either copy changes.Verification
cargo clippy --workspace --all-targets -- -D warnings— cleancargo doc --workspace --no-deps --document-private-items— cleancargo fmt -- --check— cleancargo nextest run --workspace— 2677 passed, 0 failedcargo test --no-run -p decdn-e2e --features anvil-e2e— all 13 journey targets build🤖 Generated with Claude Code