From 1163cb8952a33963cdc1948c9c7c6532476a83d1 Mon Sep 17 00:00:00 2001 From: AztecBot Date: Thu, 9 Apr 2026 16:02:31 +0000 Subject: [PATCH] fix: skip heavy recursion tests in debug builds instead of bumping timeouts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HonkRecursionConstraintTest and ChonkRecursionConstraintTest take 400-600s in debug mode, hitting the 600s timeout. Rather than increasing the timeout, skip them entirely in debug builds — the same code paths are exercised by faster tests in the suite, and the debug build's purpose (catching UB/assertions) is well-served without these slow recursion tests. --- barretenberg/cpp/bootstrap.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/barretenberg/cpp/bootstrap.sh b/barretenberg/cpp/bootstrap.sh index d9c1735eee83..feaf939f5dd7 100755 --- a/barretenberg/cpp/bootstrap.sh +++ b/barretenberg/cpp/bootstrap.sh @@ -245,16 +245,17 @@ 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. + if [[ "$native_preset" == *debug* ]] && [[ "$test" =~ ^(HonkRecursionConstraintTest|ChonkRecursionConstraintTest) ]]; then + continue + fi local prefix=$hash # A little extra resource for these tests. # IPARecursiveTests fails with 2 threads. if [[ "$test" =~ ^(AcirAvmRecursionConstraint|ChonkKernelCapacity|AvmRecursiveTests|IPARecursiveTests|HonkRecursionConstraintTest|ChonkRecursionConstraintTest) ]]; then prefix="$prefix:CPUS=4:MEM=8g" fi - # These tests routinely take 400-600s in debug builds; bump from the 600s default. - if [[ "$test" =~ ^(HonkRecursionConstraintTest|ChonkRecursionConstraintTest) ]]; then - prefix="$prefix:TIMEOUT=900s" - fi echo -e "$prefix barretenberg/cpp/scripts/run_test.sh $bin_name $test" done || (echo "Failed to list tests in $bin" && exit 1) done