From a7251e41914c5b24c27ed2669fce2a802a052c05 Mon Sep 17 00:00:00 2001 From: mlugg Date: Sat, 13 Sep 2025 16:22:44 +0100 Subject: [PATCH] ci: bump unit test timeouts --- ci/riscv64-linux-debug.sh | 2 +- ci/riscv64-linux-release.sh | 2 +- ci/x86_64-linux-debug-llvm.sh | 2 +- ci/x86_64-linux-debug.sh | 2 +- ci/x86_64-linux-release.sh | 2 +- ci/x86_64-windows-debug.ps1 | 2 +- ci/x86_64-windows-release.ps1 | 2 +- lib/std/Build/Step/Run.zig | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ci/riscv64-linux-debug.sh b/ci/riscv64-linux-debug.sh index f8bc19dd9a640e191ff1cd43d68dc7bc77531e1a..98bc72a4397daf5cc2144e9dedb491fa7137793d 100755 --- a/ci/riscv64-linux-debug.sh +++ b/ci/riscv64-linux-debug.sh @@ -52,4 +52,4 @@ stage3-debug/bin/zig build test-cases test-modules test-unit test-c-abi test-sta -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - --test-timeout-ms 60_000 + --test-timeout-ms 120_000 diff --git a/ci/riscv64-linux-release.sh b/ci/riscv64-linux-release.sh index 03e4d08fc99cc4993dd14e0b8e8b3d64499a3d4c..4622277699284bacfc68293b333c82b39fa41b9d 100755 --- a/ci/riscv64-linux-release.sh +++ b/ci/riscv64-linux-release.sh @@ -52,4 +52,4 @@ stage3-release/bin/zig build test-cases test-modules test-unit test-c-abi test-s -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - --test-timeout-ms 60_000 + --test-timeout-ms 120_000 diff --git a/ci/x86_64-linux-debug-llvm.sh b/ci/x86_64-linux-debug-llvm.sh index ce83ce3ed3266ad9398505410d1202d7a9664d8f..560ca74eada583e335d1c94e6ebb05cd63801caf 100755 --- a/ci/x86_64-linux-debug-llvm.sh +++ b/ci/x86_64-linux-debug-llvm.sh @@ -62,4 +62,4 @@ stage3-debug/bin/zig build test docs \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ -Denable-superhtml \ - --test-timeout-ms 60_000 + --test-timeout-ms 240_000 diff --git a/ci/x86_64-linux-debug.sh b/ci/x86_64-linux-debug.sh index b402396a1d28995c070d87b527fdf5792b87ca35..663c8f834a6323c603c1af6fe64777299572a74d 100755 --- a/ci/x86_64-linux-debug.sh +++ b/ci/x86_64-linux-debug.sh @@ -62,4 +62,4 @@ stage3-debug/bin/zig build test docs \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ -Denable-superhtml \ - --test-timeout-ms 60_000 + --test-timeout-ms 240_000 diff --git a/ci/x86_64-linux-release.sh b/ci/x86_64-linux-release.sh index b7b593a0c862765ff91eadddf422171b7c75ddad..fb91d693306a3feabcd4a185bf7c3c08cbc7d6e8 100755 --- a/ci/x86_64-linux-release.sh +++ b/ci/x86_64-linux-release.sh @@ -64,7 +64,7 @@ stage3-release/bin/zig build test docs \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ -Denable-superhtml \ - --test-timeout-ms 60_000 + --test-timeout-ms 240_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 445a55f35e2a23af61c00c9f1767c68e2cf9a1e6..516a8e3444ccbe36a9d12e2dc9f1fcba3cf46bab 100644 --- a/ci/x86_64-windows-debug.ps1 +++ b/ci/x86_64-windows-debug.ps1 @@ -60,7 +60,7 @@ Write-Output "Main test suite..." -Dskip-non-native ` -Dskip-release ` -Denable-symlinks-windows ` - --test-timeout-ms 60_000 + --test-timeout-ms 240_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 226e2d8ea1ecd52eee75051d609c5e4c90620931..80568eeb376995978ad07cfcdde5035cd91570eb 100644 --- a/ci/x86_64-windows-release.ps1 +++ b/ci/x86_64-windows-release.ps1 @@ -59,7 +59,7 @@ Write-Output "Main test suite..." -Dstatic-llvm ` -Dskip-non-native ` -Denable-symlinks-windows ` - --test-timeout-ms 60_000 + --test-timeout-ms 240_000 CheckLastExitCode # Ensure that stage3 and stage4 are byte-for-byte identical. diff --git a/lib/std/Build/Step/Run.zig b/lib/std/Build/Step/Run.zig index 52d1a726497fee136ce33eb67cf29acec9eb8e1e..9a3c1f790636c2750402ce2cf47cee293da9e3f7 100644 --- a/lib/std/Build/Step/Run.zig +++ b/lib/std/Build/Step/Run.zig @@ -1814,7 +1814,7 @@ fn pollZigTest( // test. For instance, if the test runner leaves this much time between us requesting a test to // start and it acknowledging the test starting, we terminate the child and raise an error. This // *should* never happen, but could in theory be caused by some very unlucky IB in a test. - const response_timeout_ns = 30 * std.time.ns_per_s; + const response_timeout_ns = options.unit_test_timeout_ns orelse 60 * std.time.ns_per_s; const stdout = poller.reader(.stdout); const stderr = poller.reader(.stderr); -- 2.54.0