From 070b450d5c48aa662a485cd1b5c89a09be123784 Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Tue, 10 Feb 2026 10:11:09 -0600 Subject: [PATCH 1/2] Added safeguard to static-check runner in case of 1 proc host Ticket: ENT-13730 Changelog: none --- tests/static-check/run_checks.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/static-check/run_checks.sh b/tests/static-check/run_checks.sh index f5bc3319a3..b7e7c39325 100755 --- a/tests/static-check/run_checks.sh +++ b/tests/static-check/run_checks.sh @@ -4,6 +4,9 @@ set -x n_procs="$(getconf _NPROCESSORS_ONLN)" use_procs=$((n_procs/2)) +if [ "$use_procs" -lt "0" ]; then + use_procs=1 +fi function check_with_gcc() { # previous runs may have cached configuration based on a different CC From 690a3249fef8ce30a1b8551e66b2d5bfbe6b1190 Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Wed, 11 Feb 2026 16:22:04 -0600 Subject: [PATCH 2/2] Adjusted startup timeout for valgrind-checks test to 4 minutes from 2 In CI we like to use some pretty slow machines so give it some more time and see if things work out. Ticket: ENT-13730 Changelog: none --- tests/valgrind-check/valgrind.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/valgrind-check/valgrind.sh b/tests/valgrind-check/valgrind.sh index 34716fec64..62d02a7fb1 100644 --- a/tests/valgrind-check/valgrind.sh +++ b/tests/valgrind-check/valgrind.sh @@ -124,7 +124,7 @@ print_ps # cf-serverd running under valgrind can be really slow to start, let's give it # some time before we move on and potentially hit the wall if it's actually # malfunctioning -tries=12 # max 2 minutes +tries=24 # max 4 minutes while /var/cfengine/bin/cf-net -H $BOOTSTRAP_IP connect | grep Failed; do tries=$((tries - 1)) if [ $tries -le 0 ]; then