Skip to content

fix(e2e): drop duplicate expect_revert breaking main - #1400

Merged
thiras merged 1 commit into
mainfrom
fix/e2e-duplicate-expect-revert
Jul 22, 2026
Merged

thiras merged 1 commit into
mainfrom
fix/e2e-duplicate-expect-revert

Conversation

@thiras

@thiras thiras commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Problem

main does not compile. #1387 and #1367 each added their own expect_revert to crates/e2e/src/assert.rs; the two additions were textually disjoint, so git merged both cleanly and produced a duplicate definition:

error[E0428]: the name `expect_revert` is defined multiple times
  --> crates/e2e/src/assert.rs:126:1

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_anyhow through assert_revert_data rather than inlining it, so no caller of either copy changes.

Verification

  • cargo clippy --workspace --all-targets -- -D warnings — clean
  • cargo doc --workspace --no-deps --document-private-items — clean
  • cargo fmt -- --check — clean
  • cargo nextest run --workspace — 2677 passed, 0 failed
  • cargo test --no-run -p decdn-e2e --features anvil-e2e — all 13 journey targets build

🤖 Generated with Claude Code

#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]>
Copilot AI review requested due to automatic review settings July 22, 2026 21:48
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@thiras, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 16 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Free

Run ID: 849f7e91-0f78-419b-810a-fc9db4f5a7d3

📥 Commits

Reviewing files that changed from the base of the PR and between 7897229 and 1648164.

📒 Files selected for processing (1)
  • crates/e2e/src/assert.rs

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.

@thiras
thiras merged commit 781dd9a into main Jul 22, 2026
4 checks passed
@thiras
thiras deleted the fix/e2e-duplicate-expect-revert branch July 22, 2026 21:52

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

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_revert function definition from crates/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.

@github-actions

Copy link
Copy Markdown

Coverage report

Total: 81.29% (was 81.27%, ▲ +0.02%) — 55165/67859 lines

File Coverage Lines Δ
crates/e2e/src/assert.rs 19.54% 17/87 ● 0.00%
History
Commit Total Δ vs base
1648164 (HEAD) 81.29% ▲ +0.02%

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