ci: parallelize native test execution
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 2m14s
Foundation / checks (tsan) (push) Successful in 42m49s
Foundation / checks (checks) (push) Successful in 47m58s
Foundation / postgres-tools (push) Successful in 5s
Foundation / server-image (push) Successful in 5s
Foundation / image (push) Successful in 4s

This commit is contained in:
aevolution-gitops-bot
2026-10-20 21:56:21 -04:00
parent 6a9af9c514
commit 88dd1beb82
+2 -1
View File
@@ -5,6 +5,7 @@ set -euo pipefail
suite="${1:?Expected checks or tsan}"
# Compile parallelism; each clang analysis/ASan job can take 1-2 GiB of runner memory.
jobs="${CI_BUILD_JOBS:-4}"
test_jobs="${CI_TEST_JOBS:-4}"
cmake --version
g++-14 --version
clang++-19 --version
@@ -17,7 +18,7 @@ check_preset() {
local compiler="$2"
cmake --preset "$preset" "-DCMAKE_CXX_COMPILER=$compiler"
cmake --build --preset "$preset" --parallel "$jobs"
ctest --preset "$preset" --no-tests=error --timeout 120
ctest --preset "$preset" --parallel "$test_jobs" --no-tests=error --timeout 120
}
case "$suite" in