From 0968ad15e0194c37505fa4a77095c6858e2ed2a9 Mon Sep 17 00:00:00 2001 From: AztecBot Date: Tue, 7 Apr 2026 06:14:30 +0000 Subject: [PATCH] fix: increase test timeout for heavy recursion tests in debug build HonkRecursionConstraintTest and ChonkRecursionConstraintTest routinely take 400-600s in debug builds (with _GLIBCXX_DEBUG). The default 600s timeout caused HonkRecursionConstraintTestWithoutPredicate/2.GenerateVKFromConstraints (root rollup circuit) to be killed at 601s with exit code 124. Bump timeout to 900s for these test suites and add ChonkRecursionConstraintTest to the CPUS=4:MEM=8g resource allocation. --- barretenberg/cpp/bootstrap.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/barretenberg/cpp/bootstrap.sh b/barretenberg/cpp/bootstrap.sh index 8b6168b82290..d9c1735eee83 100755 --- a/barretenberg/cpp/bootstrap.sh +++ b/barretenberg/cpp/bootstrap.sh @@ -248,9 +248,13 @@ function test_cmds_native { local prefix=$hash # A little extra resource for these tests. # IPARecursiveTests fails with 2 threads. - if [[ "$test" =~ ^(AcirAvmRecursionConstraint|ChonkKernelCapacity|AvmRecursiveTests|IPARecursiveTests|HonkRecursionConstraintTest) ]]; then + 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