Skip to content

Commit

Permalink
Select appropriate timeout for each Github runner
Browse files Browse the repository at this point in the history
Testing shows 600 seconds is needed to boot Linux on macOS runners,
while 90 seconds works for Linux runners. This commit sets the timeout
for each platform accordingly.

The varying timeout requirements will be tracked in an issue.
  • Loading branch information
ChinYikMing committed Sep 12, 2024
1 parent e438c1b commit 6172aff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .ci/autorun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ function ASSERT {

cleanup

UNAME_S=$(uname -s)
if [[ ${UNAME_S} == "Darwin" ]]; then
TIMEOUT=600
else # Linux
TIMEOUT=90
fi

ASSERT expect <<DONE
set timeout 90
set timeout ${TIMEOUT}
spawn make check
expect "buildroot login:" { send "root\n" } timeout { exit 1 }
expect "# " { send "uname -a\n" } timeout { exit 2 }
Expand Down

0 comments on commit 6172aff

Please sign in to comment.