]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: add test timeout multiplier for ppc64le
authorLuca Boccassi <luca.boccassi@gmail.com>
Sun, 6 Jul 2025 10:02:20 +0000 (11:02 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 6 Jul 2025 11:35:01 +0000 (12:35 +0100)
The slow tests have timed out at least a couple of times,
so add a multiplier

1252/1633 systemd:libsystemd / test-sd-device      TIMEOUT 30.04s killed by signal 15 SIGTERM
1633/1633 systemd:libsystemd / test-journal-verify TIMEOUT 90.01s killed by signal 15 SIGTERM

Follow-up for 8a1d1341444aaf143108e0ca85741c779014d8b2

.github/workflows/unit_tests.sh

index 7bebea682b3cc68a0ba7c29471b617e3a53c1a0e..9d586cd8cc4fb941470f6929a07a0dd6ba8a5e30 100755 (executable)
@@ -91,11 +91,18 @@ for phase in "${PHASES[@]}"; do
                     mv /etc/machine-id /etc/machine-id.bak
                 fi
             fi
+
+            # On ppc64le the workers are slower and some slow tests time out
+            MESON_TEST_ARGS=()
+            if [[ "$(uname -m)" != "x86_64" ]] && [[ "$(uname -m)" != "aarch64" ]]; then
+                MESON_TEST_ARGS+=(--timeout-multiplier=3)
+            fi
+
             MESON_ARGS+=(--fatal-meson-warnings)
             run_meson -Dnobody-group=nogroup --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true "${MESON_ARGS[@]}" build
             ninja -C build -v
             # Ensure setting a timezone (like the reproducible build tests do) does not break time/date unit tests
-            TZ=GMT+12 meson test -C build --print-errorlogs
+            TZ=GMT+12 meson test "${MESON_TEST_ARGS[@]}" -C build --print-errorlogs
             ;;
         RUN_ASAN_UBSAN|RUN_GCC_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN_NO_DEPS)
             MESON_ARGS=(--optimization=1)