fix(ci): raise AVM check-circuit per-tx timeout to 120s#23662
Draft
AztecBot wants to merge 1 commit into
Draft
Conversation
The avm-check-circuit job runs bb-avm avm_check_circuit on every dumped e2e AVM input in parallel, each wrapped in a 30s timeout (exec_test's timeout -v $TIMEOUT). The runner uses --halt now,fail=1, so a single timeout fails the whole job. The e2e_multiple_blobs tx produces a ~700k-row AVM trace. On the default 2 CPUs, trace generation (~22s) plus the row check exceeded 30s and the check was killed with exit 124 (CI run 26755632012); every other input passed in 3-6s. Raise the per-check timeout to a 120s default and make it overridable via AVM_CHECK_CIRCUIT_TIMEOUT, so the heaviest inputs complete with margin while the common case still finishes quickly. CPU allocation stays at the default 2 (the runner core count is tuned so the parallel job count saturates it at 2 CPUs each); only wall-clock budget was the constraint. Supersedes the stale draft branch for #23662 (rebased onto current next).
b6a8894 to
e0f791e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Raise the per-input
avm_check_circuittimeout from30sto a120sdefault (overridable viaAVM_CHECK_CIRCUIT_TIMEOUT), so heavy AVM inputs complete with comfortable margin.Recurred again on 2026-06-02 as CI run 26795871178 (exit code
124, head1f6248d). It keeps recurring because this PR has the fix but remains a draft and has never been merged —nextstill runs the 30s limit. Same input (e2e_multiple_blobs, ~700k rows) timed out mid circuit-check; every other input passed in 3–5s. This PR was first opened for the same failure on 2026-05-29 and rebased ontonexton 2026-06-01.Root cause
yarn-project/end-to-end/bootstrap.sh:avm_check_circuitrunsbb-avm avm_check_circuiton every dumped e2e AVM input in parallel, each wrapped in a per-test timeout (exec_test→timeout -v $TIMEOUT). The runner uses--halt now,fail=1, so a single timeout fails the entire job. It is not a circuit-correctness failure.One input — the
e2e_multiple_blobstx — produces a ~700,560-row AVM trace. On the default 2 CPUs the per-input log shows trace generation alone takes ~21s, so the circuit check is killed only a few seconds in at the 30s cap:The check was progressing, not hung — it simply needs more than 30s on 2 CPUs. Every other input passed in 3–5s.
Fix
120sdefault, overridable viaAVM_CHECK_CIRCUIT_TIMEOUT.parallelizerunsnum_cpus/2concurrent jobs, so the runner is already sized to be fully utilized at 2 CPUs/job. RaisingCPUSwithout lowering the job count would oversubscribe the box. Only the wall-clock budget was the constraint.Testing
bash -O extglob -n yarn-project/end-to-end/bootstrap.sh— passes.