Skip to content

Commit c6955d8

Browse files
denikIsaac
andauthored
acc: fix flaky selftest/timeout on Windows (#7255)
## Changes Raise the timeout in `acceptance/selftest/timeout` from 500ms to 2s. The script still sleeps 4s, so it still checks that the script is killed. ## Why On a slow Windows runner bash did not reach `trace sleep 4` within 500ms, so the expected `>>> sleep 4` line was missing: ``` expected: "\n>>> sleep 4\n\nError: Test script killed due to a timeout (500ms)\n" actual : "\nError: Test script killed due to a timeout (500ms)\n" ``` Dashboard: test [acceptance.TestAccept/selftest/timeout](http://go/cli/dashboard/test/acceptance.TestAccept/selftest/timeout?main=1&pr=1&end=2026-11-03T00:00:00Z&last=33d); error [1044](http://go/cli/dashboard/error/1044?main=1&pr=1&end=2026-11-03T00:00:00Z&last=33d) (`Incomplete output`, 42 runs). ``` # 1044, task test (windows, direct) Error: Not equal: expected: "\n>>> sleep 4\n\nError: Test script killed due to a timeout (500ms)\n" actual : "\nError: Test script killed due to a timeout (500ms)\n" ``` ## Tests Regenerated; passes locally. This pull request and its description were written by Isaac. Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 629df6a commit c6955d8

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
>>> sleep 4
33

4-
Error: Test script killed due to a timeout (500ms)
4+
Error: Test script killed due to a timeout (2s)
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Test that timeout mechanism works (script sleeps 4s but should be killed much sooner)
2-
Timeout = '500ms'
3-
TimeoutWindows = '500ms'
4-
TimeoutCloud = '500ms'
1+
# Test that timeout mechanism works (script sleeps 4s but should be killed much sooner).
2+
# 2s rather than less: on a slow Windows runner bash may not reach `trace sleep 4` within 500ms.
3+
Timeout = '2s'
4+
TimeoutWindows = '2s'
5+
TimeoutCloud = '2s'
56
TimeoutCIMultiplier = 1

0 commit comments

Comments
 (0)