Skip to content

fix(op-deployer): remove t.Parallel() from TestSuperchain to prevent CI flakes#19682

Closed
ajsutton wants to merge 1 commit intodevelopfrom
aj/fix/flake-test-superchain
Closed

fix(op-deployer): remove t.Parallel() from TestSuperchain to prevent CI flakes#19682
ajsutton wants to merge 1 commit intodevelopfrom
aj/fix/flake-test-superchain

Conversation

@ajsutton
Copy link
Copy Markdown
Contributor

Summary

Root Cause

testSuperchain called t.Parallel(), causing mainnet and sepolia subtests to run concurrently. Each subtest creates a RetryProxy + Anvil instance forking from an external RPC. Under CI load, the combined resource pressure (CPU, network, RPC rate limits) causes timeouts and connection failures.

The RetryProxy hardening in #19593 (longer timeouts, more retries) helped but was insufficient — TestSuperchain continued to flake (45 times per the tracking issue).

Why Flaky (Not Always Failing)

CI node load varies per run. Under light load, both subtests complete within their 5-minute timeout. Under heavy load, resource contention causes one or both to fail.

Test Plan

Closes #19586

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Remove t.Parallel() from testSuperchain to prevent mainnet and sepolia
subtests from running concurrently. Each subtest starts a RetryProxy +
Anvil instance forking from an external RPC; running them in parallel
causes resource contention and timeouts under CI load.

Same fix as #18019 for TestImplementations.

Closes #19586
@ajsutton ajsutton requested review from a team as code owners March 20, 2026 06:45
@ajsutton ajsutton closed this Mar 20, 2026
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.

flaky test: TestSuperchain

1 participant