ci: do not limit testing based on load in a tart runner

Observations are seeing stalls of up to 2 minutes waiting for the VM to
become quiescent enough to start tests.
This commit is contained in:
Ben Boeckel
2026-07-27 09:50:53 -04:00
parent 2a49f821f3
commit 7f4c2d3c21
+9 -1
View File
@@ -20,10 +20,18 @@ if (NOT "$ENV{CMAKE_CI_TEST_TIMEOUT}" STREQUAL "")
set(CTEST_TEST_TIMEOUT "$ENV{CMAKE_CI_TEST_TIMEOUT}")
endif ()
set(test_load "${nproc}")
# Tart VMs start up with lots of macOS tasks running, so they end up stalling
# waiting for the load from them to fade away. Set the load to 0 on such
# runners because they are always configured to run a single job at a time.
if ("$ENV{CI_RUNNER_TAGS}" MATCHES "\"tart\"")
set(test_load "0")
endif ()
include("${CMAKE_CURRENT_LIST_DIR}/ctest_exclusions.cmake")
ctest_test(
PARALLEL_LEVEL "${nproc}"
TEST_LOAD "${nproc}"
TEST_LOAD "${test_load}"
OUTPUT_JUNIT "${CTEST_BINARY_DIRECTORY}/junit.xml"
RETURN_VALUE test_result
EXCLUDE "${test_exclusions}")