From f01825569eea051ff396452da4edf9d6fa5c0fd7 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 21 Aug 2024 11:37:39 +0200 Subject: [PATCH] ci/bare-metal/poe: change the default TEST_PHASE_TIMEOUT_MINUTES to `CI_JOB_TIMEOUT - 5min` The 5min margin is configurable as `TEST_SETUP_AND_UPLOAD_MARGIN_MINUTES`. Part-of: --- .gitlab-ci/bare-metal/poe-powered.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/bare-metal/poe-powered.sh b/.gitlab-ci/bare-metal/poe-powered.sh index eb9b435e1f3..ae863b8da7f 100755 --- a/.gitlab-ci/bare-metal/poe-powered.sh +++ b/.gitlab-ci/bare-metal/poe-powered.sh @@ -200,7 +200,7 @@ while [ $((ATTEMPTS--)) -gt 0 ]; do --powerup="$BM_POWERUP" \ --powerdown="$BM_POWERDOWN" \ --boot-timeout-seconds ${BOOT_PHASE_TIMEOUT_SECONDS:-300} \ - --test-timeout-minutes ${TEST_PHASE_TIMEOUT_MINUTES:-20} + --test-timeout-minutes ${TEST_PHASE_TIMEOUT_MINUTES:-$((CI_JOB_TIMEOUT/60 - ${TEST_SETUP_AND_UPLOAD_MARGIN_MINUTES:-5}))} ret=$? if [ $ret -eq 2 ]; then