From c53b2fb30757ef43cd4c7288fb014ebc0785fa3b Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Fri, 19 Jun 2026 23:01:51 +0200 Subject: [PATCH] test: cap the number of parallel tests Cap the number of parallel tests to 4 to not overwhelm beefier hosts. I tried this with 8 jobs, but it often caused annoying timeouts in nspawn-based tests; maybe this could be investigated and potentially addressed in the future. [skip changelog] --- plans/run-integration-tests.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plans/run-integration-tests.sh b/plans/run-integration-tests.sh index 6d2ee37..d9edd5d 100755 --- a/plans/run-integration-tests.sh +++ b/plans/run-integration-tests.sh @@ -89,16 +89,15 @@ if [[ ! -e /dev/kvm ]]; then fi NPROC="$(nproc)" -if [[ "$NPROC" -ge 10 ]]; then - export TEST_JOURNAL_USE_TMP=1 - NPROC="$((NPROC / 3))" -else - NPROC="$((NPROC - 1))" +if [[ "$NPROC" -gt 4 ]]; then + # Cap the number of parallel tests to 4 to not overwhelm larger hosts + NPROC=4 fi # This test is only really useful if we're building with sanitizers and takes a long time, so let's skip it # for now. export TEST_SKIP="TEST-21-DFUZZER ${TEST_SKIP:-}" +export TEST_JOURNAL_USE_TMP=1 mkosi genkey mkosi summary