Skip to content

Commit 3100ab7

Browse files
committed
CI: Add 60-minute timeouts to GitHub Actions and Cirrus CI
Currently, there are no explicit timeouts set for CI jobs, which means the CI jobs will keep running until they are terminated by the task runner. The current defaults of each provider are: - GitHub Actions: 360 minutes[^1] - Cirrus CI: 60 minutes[^2] - Travis CI: 50 minutes[^3] On Travis, the timeout is not configurable, and given that our test suite usually completes within 20 minutes, this commit explicitly sets timeouts for Cirrus CI and GitHub Actions to 50 minutes as well. [^1]: [GitHub Actions Workflow Syntax](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes) [^2]: [Cirrus CI FAQ](https://cirrus-ci.org/faq/#instance-timed-out) [^3]: [Travis docs - customizing the build](https://docs.travis-ci.com/user/customizing-the-build#build-timeouts)
1 parent 555b603 commit 3100ab7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.cirrus.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ env:
33

44
freebsd_task:
55
name: FREEBSD_DEBUG_NTS
6+
timeout_in: 50m
67
freebsd_instance:
78
image_family: freebsd-13-3
89
env:

.github/workflows/push.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
asan: true
8282
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}"
8383
runs-on: ubuntu-${{ !matrix.asan && '22' || '20' }}.04
84+
timeout-minutes: 50
8485
container:
8586
image: ${{ matrix.asan && 'ubuntu:23.04' || null }}
8687
steps:
@@ -150,6 +151,7 @@ jobs:
150151
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
151152
name: LINUX_X32_DEBUG_ZTS
152153
runs-on: ubuntu-latest
154+
timeout-minutes: 50
153155
container:
154156
image: ubuntu:20.04
155157
env:
@@ -203,6 +205,7 @@ jobs:
203205
arch: ARM64
204206
name: MACOS_${{ matrix.arch }}_DEBUG_NTS
205207
runs-on: macos-${{ matrix.os }}
208+
timeout-minutes: 50
206209
steps:
207210
- name: git checkout
208211
uses: actions/checkout@v4
@@ -237,6 +240,7 @@ jobs:
237240
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
238241
name: WINDOWS_X64_ZTS
239242
runs-on: windows-2022
243+
timeout-minutes: 50
240244
env:
241245
PHP_BUILD_CACHE_BASE_DIR: C:\build-cache
242246
PHP_BUILD_OBJ_DIR: C:\obj
@@ -263,6 +267,7 @@ jobs:
263267
name: BENCHMARKING
264268
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
265269
runs-on: ubuntu-22.04
270+
timeout-minutes: 50
266271
steps:
267272
- name: git checkout
268273
uses: actions/checkout@v4

0 commit comments

Comments
 (0)