Skip to content

Commit c9a38b4

Browse files
committed
ci: bound the GitHub test jobs so a stall fails before the 6h limit
The previous commit makes a stalled test run dump diagnostics, but the job itself still idles until GitHub's six-hour hard limit before it is cancelled. Give the test jobs an explicit timeout-minutes so that a hang fails the job within a few hours instead, shortly after the ci/ stall watchdog has printed its diagnostics, and GitHub tears down the job's process tree cleanly. Three hours leaves ample margin over a healthy run (well under two hours) while still saving half of the wasted budget. Signed-off-by: Michael Montalbo <mmontalbo@gmail.com>
1 parent e051c4e commit c9a38b4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ jobs:
340340
CI_JOB_IMAGE: ${{matrix.vector.pool}}
341341
TEST_OUTPUT_DIRECTORY: ${{github.workspace}}/t
342342
runs-on: ${{matrix.vector.pool}}
343+
# A stalled run otherwise idles until GitHub's 6h hard limit; fail
344+
# sooner, shortly after the ci/ stall watchdog has dumped diagnostics.
345+
timeout-minutes: 180
343346
steps:
344347
- uses: actions/checkout@v6
345348
- run: ci/install-dependencies.sh
@@ -420,6 +423,9 @@ jobs:
420423
CI_JOB_IMAGE: ${{matrix.vector.image}}
421424
CUSTOM_PATH: /custom
422425
runs-on: ubuntu-latest
426+
# A stalled run otherwise idles until GitHub's 6h hard limit; fail
427+
# sooner, shortly after the ci/ stall watchdog has dumped diagnostics.
428+
timeout-minutes: 180
423429
container: ${{matrix.vector.image}}
424430
steps:
425431
- name: prepare libc6 for actions

0 commit comments

Comments
 (0)