From e7ba586a933fbbbee1070afae0c5961f32e388fa Mon Sep 17 00:00:00 2001 From: AztecBot Date: Sat, 11 Apr 2026 05:37:52 +0000 Subject: [PATCH] fix: skip heavy recursion tests in nightly debug builds --- barretenberg/cpp/bootstrap.sh | 9 +++++++++ .../dsl/acir_format/chonk_recursion_constraints.test.cpp | 1 + 2 files changed, 10 insertions(+) diff --git a/barretenberg/cpp/bootstrap.sh b/barretenberg/cpp/bootstrap.sh index 7d6dff3049c7..46c9488a525b 100755 --- a/barretenberg/cpp/bootstrap.sh +++ b/barretenberg/cpp/bootstrap.sh @@ -243,6 +243,15 @@ function test_cmds_native { awk '/^[a-zA-Z]/ {suite=$1} /^[ ]/ {print suite$1}' | \ grep -v 'DISABLED_' | \ while read -r test; do + # Skip heavy recursion tests in debug builds — they take 400-600s and the same + # code paths are already exercised (with assertions) by faster tests in the suite. + # Keep WithoutPredicate/1.GenerateVKFromConstraints (241s) so that the debug-only + # native_verification_debug path in honk_recursion_constraint.cpp is still exercised. + if [[ "$native_preset" == *debug* ]] && [[ "$test" =~ ^(HonkRecursionConstraintTest|ChonkRecursionConstraintTest|AvmRecursionInnerCircuitTests) ]]; then + if [[ "$test" != "HonkRecursionConstraintTestWithoutPredicate/1.GenerateVKFromConstraints" ]]; then + continue + fi + fi local prefix=$hash # A little extra resource for these tests. # IPARecursiveTests fails with 2 threads. diff --git a/barretenberg/cpp/src/barretenberg/dsl/acir_format/chonk_recursion_constraints.test.cpp b/barretenberg/cpp/src/barretenberg/dsl/acir_format/chonk_recursion_constraints.test.cpp index 47af5a7c1aa4..113811ac5e1a 100644 --- a/barretenberg/cpp/src/barretenberg/dsl/acir_format/chonk_recursion_constraints.test.cpp +++ b/barretenberg/cpp/src/barretenberg/dsl/acir_format/chonk_recursion_constraints.test.cpp @@ -93,6 +93,7 @@ TEST_F(ChonkRecursionConstraintTest, GenerateRecursiveChonkVerifierVKFromConstra using VerificationKey = ChonkRecursionConstraintTest::VerificationKey; using ChonkData = ChonkRecursionConstraintTest::ChonkData; + BB_DISABLE_ASSERTS(); ChonkData chonk_data = ChonkRecursionConstraintTest::get_chonk_data(); std::shared_ptr vk_from_valid_witness;