Skip to content

fix(op-devstack): add 5m timeout to txs in GameHelper#19556

Merged
ajsutton merged 2 commits intodevelopfrom
aj/fix/estimategas-timeout
Mar 18, 2026
Merged

fix(op-devstack): add 5m timeout to txs in GameHelper#19556
ajsutton merged 2 commits intodevelopfrom
aj/fix/estimategas-timeout

Conversation

@ajsutton
Copy link
Copy Markdown
Contributor

@ajsutton ajsutton commented Mar 16, 2026

Summary

  • Add a 5-minute context.WithTimeout around each Eval call in GameHelper (deploy, AuthEOA, CreateGameWithClaims, PerformMoves)

Motivation

TestChallengerRespondsToMultipleInvalidClaimsEOA hung for 2 hours in CI (the full Go binary timeout) on PR #19525. Investigation showed:

  • The test's EOA variant uses EIP-7702 (SetCodeTxType) to delegate an EOA to a GameHelper contract
  • All Eval calls in GameHelper pass gs.t.Ctx() which inherits the test's ~2-hour context deadline
  • If any RPC call hangs (e.g. eth_estimateGas for a 7702-delegated EOA), it blocks silently for the entire duration
  • Op-challenger's claim logic is claimant-agnostic (verified by tracing ClaimID, shouldCounter, honestClaimTracker) — the hang occurs in the tx lifecycle, not in game resolution

The 5-minute timeout bounds the entire tx lifecycle (estimation, signing, submission, inclusion) so any single hanging operation fails fast instead of consuming the full test budget.

Test plan

  • go build ./op-devstack/dsl/proofs/... compiles
  • Existing acceptance tests pass
  • Monitor CI for TestChallengerRespondsToMultipleInvalidClaimsEOA — should either pass or fail fast (not hang for 2 hours)

🤖 Generated with Claude Code

ajsutton and others added 2 commits March 16, 2026 02:00
TestChallengerRespondsToMultipleInvalidClaimsEOA hung for 2 hours in CI
(the full Go binary timeout) with no deterministic code-level bug. The
EOA variant uses EIP-7702 to delegate code to a GameHelper contract,
then calls PerformMoves which relies on gas estimation. If
eth_estimateGas hangs for a 7702-delegated EOA target, the call blocks
for the entire parent context lifetime (~2 hours in CI).

Add a 30-second timeout context around the EstimateGas call in
WithEstimator so a hanging RPC call fails fast instead of consuming the
entire test budget.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
TestChallengerRespondsToMultipleInvalidClaimsEOA hung for 2 hours in CI
(the full Go binary timeout). All Eval calls in GameHelper inherited the
test's ~2-hour context with no per-transaction timeout, so a hanging RPC
call (e.g. eth_estimateGas for an EIP-7702 delegated EOA) blocked
silently for the entire duration.

Add a 5-minute timeout context around each Eval call in GameHelper
(deploy, AuthEOA, CreateGameWithClaims, PerformMoves). This bounds the
entire tx lifecycle — estimation, signing, submission, and inclusion —
so any single hanging operation fails fast.

Also reverts the txplan.WithEstimator timeout from the previous commit,
since the timeout belongs at the caller level, not in infrastructure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ajsutton ajsutton marked this pull request as ready for review March 16, 2026 02:51
@ajsutton ajsutton requested a review from a team as a code owner March 16, 2026 02:51
@wwared wwared changed the title fix(op-service): add 30s timeout to eth_estimateGas in txplan fix(op-devstack): add 5m timeout to txs in GameHelper Mar 16, 2026
@ajsutton ajsutton added this pull request to the merge queue Mar 17, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Mar 17, 2026
@ajsutton ajsutton added this pull request to the merge queue Mar 18, 2026
Merged via the queue into develop with commit 7215bf8 Mar 18, 2026
97 checks passed
@ajsutton ajsutton deleted the aj/fix/estimategas-timeout branch March 18, 2026 04:11
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