From b4ac1a1d5f4d51b9836ac310b78bc9d4256580c2 Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Tue, 21 Dec 2021 13:13:59 +0100 Subject: [PATCH] ci: Run valgrind/memcheck tasks with 2 CPUs ... and increase the memory only for UBSan, ASan, LSan builds. Those are the ones who need more memory. --- .cirrus.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 67d2f20..ffbd820 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -263,8 +263,6 @@ task: # Sanitizers task: << : *LINUX_CONTAINER - container: - memory: 2G env: ECDH: yes RECOVERY: yes @@ -273,11 +271,15 @@ task: CTIMETEST: no matrix: - name: "Valgrind (memcheck)" + container: + cpu: 2 env: # The `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (https://www.valgrind.org/docs/manual/manual-core.html) WRAPPER_CMD: "valgrind --error-exitcode=42" SECP256K1_TEST_ITERS: 2 - name: "UBSan, ASan, LSan" + container: + memory: 2G env: CFLAGS: "-fsanitize=undefined,address -g" UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"