Skip to content

Commit a0a11fe

Browse files
committed
ci: add 180-minute timeout to test-suite jobs
The GitHub-hosted test-suite jobs had no timeout-minutes and fell back to GitHub's 6-hour default, so a hung step (e.g. apt) wasted ~6h of runner time. Cap them at 180 min, which clears the slowest legitimate nightly runs (LINUX_X64_ASAN ~158 min) with margin. The self-hosted jobs keep their existing 50-minute caps.
1 parent 657f0d6 commit a0a11fe

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/test-suite.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
name: LINUX_PPC64_ASAN_DEBUG_ZTS
1717
# This runs on a self-hosted runner; see https://wiki.php.net/systems/ci
1818
runs-on: [self-hosted, gentoo, ppc64]
19+
timeout-minutes: 180
1920
steps:
2021
- name: git checkout
2122
uses: actions/checkout@v6
@@ -55,6 +56,7 @@ jobs:
5556
if: ${{ fromJson(inputs.branch).jobs.ALPINE }}
5657
name: ALPINE_X64_ASAN_DEBUG_ZTS
5758
runs-on: ubuntu-24.04
59+
timeout-minutes: 180
5860
container:
5961
image: 'alpine:3.22'
6062
steps:
@@ -130,6 +132,7 @@ jobs:
130132
matrix: ${{ fromJson(inputs.branch).jobs.LINUX_X64.matrix }}
131133
name: "LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
132134
runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }}
135+
timeout-minutes: 180
133136
steps:
134137
- name: git checkout
135138
uses: actions/checkout@v6
@@ -228,6 +231,7 @@ jobs:
228231
matrix: ${{ fromJson(inputs.branch).jobs.LINUX_X32.matrix }}
229232
name: "LINUX_X32_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
230233
runs-on: ubuntu-latest
234+
timeout-minutes: 180
231235
container:
232236
image: ubuntu:${{ fromJson(inputs.branch).config.ubuntu_version }}
233237
env:
@@ -309,6 +313,7 @@ jobs:
309313
matrix: ${{ fromJson(inputs.branch).jobs.MACOS.matrix }}
310314
name: "MACOS_${{ matrix.arch }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
311315
runs-on: macos-${{ matrix.arch == 'X64' && '15-intel' || fromJson(inputs.branch).jobs.MACOS.config.arm64_version }}
316+
timeout-minutes: 180
312317
steps:
313318
- name: git checkout
314319
uses: actions/checkout@v6
@@ -386,6 +391,7 @@ jobs:
386391
FIREBIRD_USER: test
387392
FIREBIRD_PASSWORD: test
388393
runs-on: ubuntu-24.04
394+
timeout-minutes: 180
389395
steps:
390396
- name: git checkout
391397
uses: actions/checkout@v6
@@ -431,6 +437,7 @@ jobs:
431437
matrix: ${{ fromJson(inputs.branch).jobs.COMMUNITY.matrix }}
432438
name: "COMMUNITY_${{ matrix.type }}"
433439
runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }}
440+
timeout-minutes: 180
434441
env:
435442
ASAN_OPTIONS: exitcode=139
436443
UBSAN_OPTIONS: print_stacktrace=1
@@ -642,6 +649,7 @@ jobs:
642649
FIREBIRD_PASSWORD: test
643650
name: OPCACHE_VARIATION
644651
runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }}
652+
timeout-minutes: 180
645653
steps:
646654
- name: git checkout
647655
uses: actions/checkout@v6
@@ -705,6 +713,7 @@ jobs:
705713
if: ${{ fromJson(inputs.branch).jobs.MSAN }}
706714
name: MSAN
707715
runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }}
716+
timeout-minutes: 180
708717
steps:
709718
- name: git checkout
710719
uses: actions/checkout@v6
@@ -796,6 +805,7 @@ jobs:
796805
if: ${{ fromJson(inputs.branch).jobs.LIBMYSQLCLIENT }}
797806
name: LIBMYSQLCLIENT
798807
runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }}
808+
timeout-minutes: 180
799809
steps:
800810
- name: git checkout
801811
uses: actions/checkout@v6
@@ -834,6 +844,7 @@ jobs:
834844
matrix: ${{ fromJson(inputs.branch).jobs.WINDOWS.matrix }}
835845
name: "WINDOWS_${{ matrix.x64 && 'X64' || 'X86' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || ''}}${{ matrix.clang && '_CLANG' || ''}}"
836846
runs-on: ${{ fromJson(inputs.branch).jobs.WINDOWS.config.runs_on }}
847+
timeout-minutes: 180
837848
env:
838849
PHP_BUILD_CACHE_BASE_DIR: C:\build-cache
839850
PHP_BUILD_OBJ_DIR: C:\obj

0 commit comments

Comments
 (0)