Skip to content

Commit 42c9d71

Browse files
committed
fix(ci): use human-readable timeouts in run_tests.sh
Update default SESSION_TIMEOUT values in .github/run_tests.sh to use human-readable formats (e.g., "3h", "45m", "20h") instead of raw seconds. This improves clarity and reduces confusion for maintainers and contributors.
1 parent 23ba147 commit 42c9d71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/run_tests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# DESELECT_FROM_FILE: path to file with tests to deselect
2222
# CLUSTERS_COUNT: number of local testnet clusters to launch
2323
# FORBID_RESTART: if set to 1, do not restart clusters between tests
24-
# SESSION_TIMEOUT: timeout for the test session (e.g. 10800 for 3 hours)
24+
# SESSION_TIMEOUT: timeout for the test session (e.g. 3h for 3 hours)
2525
#
2626
# Notes:
2727
# - If PYTEST_ARGS is provided, we disable cleanup and the initial "skip all" pass.
@@ -164,7 +164,7 @@ ensure_markexpr_default() {
164164
target_tests() {
165165
export DbSyncAbortOnPanic="${DbSyncAbortOnPanic:-1}"
166166
TEST_THREADS="${TEST_THREADS:-20}"
167-
SESSION_TIMEOUT="${SESSION_TIMEOUT:-10800}"
167+
SESSION_TIMEOUT="${SESSION_TIMEOUT:-3h}"
168168

169169
ensure_dirs
170170
set_common_env
@@ -178,7 +178,7 @@ target_testpr() {
178178
export TESTPR=1
179179
export CLUSTERS_COUNT="${CLUSTERS_COUNT:-5}"
180180
TEST_THREADS="${TEST_THREADS:-20}"
181-
SESSION_TIMEOUT="${SESSION_TIMEOUT:-2700}"
181+
SESSION_TIMEOUT="${SESSION_TIMEOUT:-45m}"
182182
ensure_markexpr_default "smoke"
183183

184184
ensure_dirs
@@ -193,7 +193,7 @@ target_testnets() {
193193
export CLUSTERS_COUNT=1
194194
export FORBID_RESTART=1
195195
TEST_THREADS="${TEST_THREADS:-15}"
196-
SESSION_TIMEOUT="${SESSION_TIMEOUT:-72000}"
196+
SESSION_TIMEOUT="${SESSION_TIMEOUT:-20h}"
197197
ensure_markexpr_default "testnets"
198198

199199
ensure_dirs

0 commit comments

Comments
 (0)