Skip to content

Commit 375dea6

Browse files
committed
ci: bump unit test timeouts
1 parent a5cf682 commit 375dea6

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

ci/riscv64-linux-debug.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ stage3-debug/bin/zig build test-cases test-modules test-unit test-c-abi test-sta
6060
-Dtarget=native-native-musl \
6161
--search-prefix "$PREFIX" \
6262
--zig-lib-dir "$PWD/../lib" \
63-
--test-timeout-ms 60_000
63+
--test-timeout-ms 120_000

ci/riscv64-linux-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ stage3-release/bin/zig build test-cases test-modules test-unit test-c-abi test-s
6060
-Dtarget=native-native-musl \
6161
--search-prefix "$PREFIX" \
6262
--zig-lib-dir "$PWD/../lib" \
63-
--test-timeout-ms 60_000
63+
--test-timeout-ms 120_000

ci/x86_64-linux-debug-llvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ stage3-debug/bin/zig build test docs \
6868
--search-prefix "$PREFIX" \
6969
--zig-lib-dir "$PWD/../lib" \
7070
-Denable-superhtml \
71-
--test-timeout-ms 60_000
71+
--test-timeout-ms 120_000

ci/x86_64-linux-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ stage3-release/bin/zig build test docs \
6969
--search-prefix "$PREFIX" \
7070
--zig-lib-dir "$PWD/../lib" \
7171
-Denable-superhtml \
72-
--test-timeout-ms 60_000
72+
--test-timeout-ms 120_000
7373

7474
# Ensure that stage3 and stage4 are byte-for-byte identical.
7575
stage3-release/bin/zig build \

ci/x86_64-windows-debug.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Write-Output "Main test suite..."
6868
-Dskip-non-native `
6969
-Dskip-release `
7070
-Denable-symlinks-windows `
71-
--test-timeout-ms 60_000
71+
--test-timeout-ms 120_000
7272
CheckLastExitCode
7373

7474
Write-Output "Build x86_64-windows-msvc behavior tests using the C backend..."

ci/x86_64-windows-release.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Write-Output "Main test suite..."
6767
-Dstatic-llvm `
6868
-Dskip-non-native `
6969
-Denable-symlinks-windows `
70-
--test-timeout-ms 60_000
70+
--test-timeout-ms 120_000
7171
CheckLastExitCode
7272

7373
# Ensure that stage3 and stage4 are byte-for-byte identical.

lib/std/Build/Step/Run.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ fn pollZigTest(
16561656
// test. For instance, if the test runner leaves this much time between us requesting a test to
16571657
// start and it acknowledging the test starting, we terminate the child and raise an error. This
16581658
// *should* never happen, but could in theory be caused by some very unlucky IB in a test.
1659-
const response_timeout_ns = 30 * std.time.ns_per_s;
1659+
const response_timeout_ns = options.unit_test_timeout_ns orelse 60 * std.time.ns_per_s;
16601660

16611661
const stdout = poller.reader(.stdout);
16621662
const stderr = poller.reader(.stderr);

0 commit comments

Comments
 (0)