Skip to content

Commit 8c192ba

Browse files
committed
fix(ci): set timeouts for test targets in run_tests.sh
Specify --timeout and --session-timeout options for target_tests, target_testpr, and target_testnets in .github/run_tests.sh. This ensures test runs have appropriate limits for duration and session, improving reliability and preventing hangs in CI workflows.
1 parent 4c4dfbd commit 8c192ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ target_tests() {
163163
compute_common_args
164164
cleanup_previous_run
165165
initial_skip_pass
166-
run_real_tests "$@"
166+
run_real_tests --timeout=10800 --session-timeout=72000 "$@"
167167
}
168168

169169
target_testpr() {
@@ -177,7 +177,7 @@ target_testpr() {
177177
compute_common_args
178178
cleanup_previous_run
179179
initial_skip_pass
180-
run_real_tests "$@"
180+
run_real_tests --timeout=1200 --session-timeout=2700 "$@"
181181
}
182182

183183
target_testnets() {
@@ -191,7 +191,7 @@ target_testnets() {
191191
compute_common_args
192192
cleanup_previous_run
193193
initial_skip_pass
194-
run_real_tests "$@"
194+
run_real_tests --timeout=7200 --session-timeout=10800 "$@"
195195
}
196196

197197
# Dispatch

0 commit comments

Comments
 (0)