From b43bb3a32a3b447e9b320f34e046946bcca0037f Mon Sep 17 00:00:00 2001 From: mlugg Date: Tue, 26 Aug 2025 22:40:26 +0100 Subject: [PATCH] ci: set unit test timeouts --- ci/aarch64-linux-debug.sh | 3 ++- ci/aarch64-linux-release.sh | 3 ++- ci/aarch64-macos-debug.sh | 3 ++- ci/aarch64-macos-release.sh | 3 ++- ci/aarch64-windows.ps1 | 3 ++- ci/riscv64-linux-debug.sh | 3 ++- ci/riscv64-linux-release.sh | 3 ++- ci/x86_64-linux-debug-llvm.sh | 3 ++- ci/x86_64-linux-debug.sh | 3 ++- ci/x86_64-linux-release.sh | 3 ++- ci/x86_64-windows-debug.ps1 | 3 ++- ci/x86_64-windows-release.ps1 | 3 ++- 12 files changed, 24 insertions(+), 12 deletions(-) diff --git a/ci/aarch64-linux-debug.sh b/ci/aarch64-linux-debug.sh index 67514c87d8..00cf48f513 100755 --- a/ci/aarch64-linux-debug.sh +++ b/ci/aarch64-linux-debug.sh @@ -50,7 +50,8 @@ stage3-debug/bin/zig build test docs \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - -Denable-superhtml + -Denable-superhtml \ + --test-timeout-ms 60_000 stage3-debug/bin/zig build \ --prefix stage4-debug \ diff --git a/ci/aarch64-linux-release.sh b/ci/aarch64-linux-release.sh index 11fb70aa64..f0a341d962 100755 --- a/ci/aarch64-linux-release.sh +++ b/ci/aarch64-linux-release.sh @@ -50,7 +50,8 @@ stage3-release/bin/zig build test docs \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - -Denable-superhtml + -Denable-superhtml \ + --test-timeout-ms 60_000 # Ensure that stage3 and stage4 are byte-for-byte identical. stage3-release/bin/zig build \ diff --git a/ci/aarch64-macos-debug.sh b/ci/aarch64-macos-debug.sh index b4e52f7b04..787df10de4 100755 --- a/ci/aarch64-macos-debug.sh +++ b/ci/aarch64-macos-debug.sh @@ -46,4 +46,5 @@ stage3-debug/bin/zig build test docs \ -Denable-macos-sdk \ -Dstatic-llvm \ -Dskip-non-native \ - --search-prefix "$PREFIX" + --search-prefix "$PREFIX" \ + --test-timeout-ms 60_000 diff --git a/ci/aarch64-macos-release.sh b/ci/aarch64-macos-release.sh index 1de4d78e01..872a2f4ee7 100755 --- a/ci/aarch64-macos-release.sh +++ b/ci/aarch64-macos-release.sh @@ -46,7 +46,8 @@ stage3-release/bin/zig build test docs \ -Denable-macos-sdk \ -Dstatic-llvm \ -Dskip-non-native \ - --search-prefix "$PREFIX" + --search-prefix "$PREFIX" \ + --test-timeout-ms 60_000 # Ensure that stage3 and stage4 are byte-for-byte identical. stage3-release/bin/zig build \ diff --git a/ci/aarch64-windows.ps1 b/ci/aarch64-windows.ps1 index 0bebaefb68..4f52bd3f81 100644 --- a/ci/aarch64-windows.ps1 +++ b/ci/aarch64-windows.ps1 @@ -58,7 +58,8 @@ Write-Output "Main test suite..." --search-prefix "$PREFIX_PATH" ` -Dstatic-llvm ` -Dskip-non-native ` - -Denable-symlinks-windows + -Denable-symlinks-windows ` + --test-timeout-ms 60_000 CheckLastExitCode # Ensure that stage3 and stage4 are byte-for-byte identical. diff --git a/ci/riscv64-linux-debug.sh b/ci/riscv64-linux-debug.sh index c7660962e3..f8bc19dd9a 100755 --- a/ci/riscv64-linux-debug.sh +++ b/ci/riscv64-linux-debug.sh @@ -51,4 +51,5 @@ stage3-debug/bin/zig build test-cases test-modules test-unit test-c-abi test-sta -Dskip-compile-errors \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ - --zig-lib-dir "$PWD/../lib" + --zig-lib-dir "$PWD/../lib" \ + --test-timeout-ms 60_000 diff --git a/ci/riscv64-linux-release.sh b/ci/riscv64-linux-release.sh index 65f46cbbd9..03e4d08fc9 100755 --- a/ci/riscv64-linux-release.sh +++ b/ci/riscv64-linux-release.sh @@ -51,4 +51,5 @@ stage3-release/bin/zig build test-cases test-modules test-unit test-c-abi test-s -Dskip-compile-errors \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ - --zig-lib-dir "$PWD/../lib" + --zig-lib-dir "$PWD/../lib" \ + --test-timeout-ms 60_000 diff --git a/ci/x86_64-linux-debug-llvm.sh b/ci/x86_64-linux-debug-llvm.sh index e21700a308..ce83ce3ed3 100755 --- a/ci/x86_64-linux-debug-llvm.sh +++ b/ci/x86_64-linux-debug-llvm.sh @@ -61,4 +61,5 @@ stage3-debug/bin/zig build test docs \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - -Denable-superhtml + -Denable-superhtml \ + --test-timeout-ms 60_000 diff --git a/ci/x86_64-linux-debug.sh b/ci/x86_64-linux-debug.sh index 5f038c2839..b402396a1d 100755 --- a/ci/x86_64-linux-debug.sh +++ b/ci/x86_64-linux-debug.sh @@ -61,4 +61,5 @@ stage3-debug/bin/zig build test docs \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - -Denable-superhtml + -Denable-superhtml \ + --test-timeout-ms 60_000 diff --git a/ci/x86_64-linux-release.sh b/ci/x86_64-linux-release.sh index 53b93c75bb..b7b593a0c8 100755 --- a/ci/x86_64-linux-release.sh +++ b/ci/x86_64-linux-release.sh @@ -63,7 +63,8 @@ stage3-release/bin/zig build test docs \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - -Denable-superhtml + -Denable-superhtml \ + --test-timeout-ms 60_000 # Ensure that stage3 and stage4 are byte-for-byte identical. stage3-release/bin/zig build \ diff --git a/ci/x86_64-windows-debug.ps1 b/ci/x86_64-windows-debug.ps1 index f44c5a04f7..445a55f35e 100644 --- a/ci/x86_64-windows-debug.ps1 +++ b/ci/x86_64-windows-debug.ps1 @@ -59,7 +59,8 @@ Write-Output "Main test suite..." -Dstatic-llvm ` -Dskip-non-native ` -Dskip-release ` - -Denable-symlinks-windows + -Denable-symlinks-windows ` + --test-timeout-ms 60_000 CheckLastExitCode Write-Output "Build x86_64-windows-msvc behavior tests using the C backend..." diff --git a/ci/x86_64-windows-release.ps1 b/ci/x86_64-windows-release.ps1 index c419cd309d..226e2d8ea1 100644 --- a/ci/x86_64-windows-release.ps1 +++ b/ci/x86_64-windows-release.ps1 @@ -58,7 +58,8 @@ Write-Output "Main test suite..." --search-prefix "$PREFIX_PATH" ` -Dstatic-llvm ` -Dskip-non-native ` - -Denable-symlinks-windows + -Denable-symlinks-windows ` + --test-timeout-ms 60_000 CheckLastExitCode # Ensure that stage3 and stage4 are byte-for-byte identical.