Skip to content

fix: skip heavy recursion tests in debug builds, keep one for assertion coverage#22389

Merged
federicobarbacovi merged 1 commit intomerge-train/barretenbergfrom
claudebox/fix-bb-debug-build
Apr 10, 2026
Merged

fix: skip heavy recursion tests in debug builds, keep one for assertion coverage#22389
federicobarbacovi merged 1 commit intomerge-train/barretenbergfrom
claudebox/fix-bb-debug-build

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

@AztecBot AztecBot commented Apr 8, 2026

Summary

Fixes nightly barretenberg debug build failure (CI run https://github.com/AztecProtocol/aztec-packages/actions/runs/24228497408).

Root cause: AvmRecursionInnerCircuitTests.Tampering from vm2_tests timed out at 600s. CI log: http://ci.aztec-labs.com/ee4d306df4cbfd3c

Fix:

  1. Add AvmRecursionInnerCircuitTests to the debug build skip list (matching PR fix: skip heavy recursion tests in debug builds #22446 pattern)
  2. Reinstate HonkRecursionConstraintTestWithoutPredicate/1.GenerateVKFromConstraints (241s, well within timeout) so the debug-only native_verification_debug code path in honk_recursion_constraint.cpp:126 is still exercised

Debug assertion audit of all skipped suites:

  • HonkRecursionConstraintTest: The only unique debug code is native_verification_debug (#ifndef NDEBUG, line 126) — a native side-verification sanity check. All tampering tests call BB_DISABLE_ASSERTS() so no debug assertions fire there. We keep /1.GenerateVKFromConstraints to cover this.
  • ChonkRecursionConstraintTest: All BB_ASSERT_DEBUG in chonk.cpp are disabled by BB_DISABLE_ASSERTS() in the test. ChonkTests tampering (separate binary, not skipped) still runs.
  • AvmRecursionInnerCircuitTests: Only BB_ASSERT_LTE (circuit size bounds) which is hit on the happy path by AvmRecursiveTests.

ClaudeBox log: https://claudebox.work/s/7d8cbad767a56122?run=5

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Apr 8, 2026
@AztecBot AztecBot force-pushed the claudebox/fix-bb-debug-build branch from 03bc79a to 5099c55 Compare April 10, 2026 06:11
@AztecBot AztecBot changed the title fix: increase test timeout for heavy recursion tests in debug build fix: bump timeout for AvmRecursionInnerCircuitTests in debug build Apr 10, 2026
@AztecBot AztecBot force-pushed the claudebox/fix-bb-debug-build branch from 5099c55 to 5f8202e Compare April 10, 2026 07:29
@federicobarbacovi federicobarbacovi changed the base branch from next to merge-train/barretenberg April 10, 2026 09:35
@AztecBot AztecBot changed the title fix: bump timeout for AvmRecursionInnerCircuitTests in debug build fix: skip AvmRecursionInnerCircuitTests in debug builds Apr 10, 2026
@AztecBot AztecBot force-pushed the claudebox/fix-bb-debug-build branch from 5f8202e to eed2056 Compare April 10, 2026 09:41
…on coverage

Skip AvmRecursionInnerCircuitTests in debug builds (timed out at 600s
in nightly). Same pattern as HonkRecursionConstraintTest and
ChonkRecursionConstraintTest.

Reinstate HonkRecursionConstraintTestWithoutPredicate/1.GenerateVK
FromConstraints (241s, well within timeout) so the debug-only
native_verification_debug code path in honk_recursion_constraint.cpp
is still exercised. This is the only debug assertion unique to these
skipped suites — all others either fire on the happy path (covered by
other tests) or are disabled via BB_DISABLE_ASSERTS() in the test.
@AztecBot AztecBot changed the title fix: skip AvmRecursionInnerCircuitTests in debug builds fix: skip heavy recursion tests in debug builds, keep one for assertion coverage Apr 10, 2026
@AztecBot AztecBot force-pushed the claudebox/fix-bb-debug-build branch from eed2056 to 5527afc Compare April 10, 2026 09:54
@federicobarbacovi federicobarbacovi marked this pull request as ready for review April 10, 2026 09:56
@federicobarbacovi federicobarbacovi enabled auto-merge (squash) April 10, 2026 09:57
@federicobarbacovi federicobarbacovi merged commit d0385aa into merge-train/barretenberg Apr 10, 2026
16 of 20 checks passed
@federicobarbacovi federicobarbacovi deleted the claudebox/fix-bb-debug-build branch April 10, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants