Skip to content

Commit 3566421

Browse files
authored
CI: Add 50-minute timeouts to GitHub Actions and Cirrus CI (GH-15589)
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 2a3dae1 commit 3566421

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.cirrus.yml

+1
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

+5
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
asan: true
7878
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}"
7979
runs-on: ubuntu-${{ !matrix.asan && '22' || '20' }}.04
80+
timeout-minutes: 50
8081
container:
8182
image: ${{ matrix.asan && 'ubuntu:23.04' || null }}
8283
steps:
@@ -146,6 +147,7 @@ jobs:
146147
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
147148
name: LINUX_X32_DEBUG_ZTS
148149
runs-on: ubuntu-latest
150+
timeout-minutes: 50
149151
container:
150152
image: ubuntu:20.04
151153
env:
@@ -199,6 +201,7 @@ jobs:
199201
arch: ARM64
200202
name: MACOS_${{ matrix.arch }}_DEBUG_NTS
201203
runs-on: macos-${{ matrix.os }}
204+
timeout-minutes: 50
202205
steps:
203206
- name: git checkout
204207
uses: actions/checkout@v4
@@ -233,6 +236,7 @@ jobs:
233236
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
234237
name: WINDOWS_X64_ZTS
235238
runs-on: windows-2022
239+
timeout-minutes: 50
236240
env:
237241
PHP_BUILD_CACHE_BASE_DIR: C:\build-cache
238242
PHP_BUILD_OBJ_DIR: C:\obj
@@ -259,6 +263,7 @@ jobs:
259263
name: BENCHMARKING
260264
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
261265
runs-on: ubuntu-22.04
266+
timeout-minutes: 50
262267
steps:
263268
- name: git checkout
264269
uses: actions/checkout@v4

0 commit comments

Comments
 (0)