From 449c4296a11a8b3d3882d4a4d6705281f5ff52e5 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 12 Dec 2021 07:50:06 +0200 Subject: [PATCH] [ci] Try harder to fix this randomly failing job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default --num-processes is the number of CPUs multiplied by 5, which seems to give this VM a hard-time. Even the number of CPUs is too much, so lets use half of that (I’m adding one just in case the division gives zero). --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d25b6a7c..ef062c96c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -60,7 +60,7 @@ jobs: - run: meson build --buildtype=debugoptimized - run: ninja -Cbuild -j9 # TOOD: increase timeouts and remove --no-suite=slow - - run: RUN_VALGRIND=1 meson test -Cbuild --no-suite=slow --wrap='valgrind --leak-check=full --error-exitcode=1' --print-errorlogs --num-processes=$(nproc) + - run: RUN_VALGRIND=1 meson test -Cbuild --no-suite=slow --wrap='valgrind --leak-check=full --error-exitcode=1' --print-errorlogs --num-processes=$(($(nproc)/2 + 1)) alpine: docker: