Skip to content

Commit 39ff843

Browse files
committed
feat: INF-3764 add default timouts overwritable with input
1 parent c0c52d5 commit 39ff843

19 files changed

Lines changed: 110 additions & 0 deletions

.github/workflows/build-image.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ on:
3737
description: Runner type
3838
default: ubuntu-latest
3939
type: string
40+
timeoutMinutes:
41+
required: false
42+
description: Maximum minutes before the job is cancelled
43+
default: 40
44+
type: number
4045
version:
4146
required: true
4247
type: string
@@ -82,6 +87,7 @@ jobs:
8287
contents: read
8388
environment: ${{ github.event.deployment.payload.env || inputs.env }}
8489
runs-on: ${{ inputs.runner }}
90+
timeout-minutes: ${{ inputs.timeoutMinutes }}
8591
steps:
8692
- name: Checkout current git repository
8793
uses: actions/checkout@v6
@@ -166,6 +172,7 @@ jobs:
166172
contents: read
167173
environment: ${{ github.event.deployment.payload.env || inputs.env }}
168174
runs-on: ${{ inputs.runner }}
175+
timeout-minutes: ${{ inputs.timeoutMinutes }}
169176
strategy:
170177
matrix:
171178
containerfile_targets: ${{ fromJson(inputs.imageTargets) }}
@@ -254,6 +261,7 @@ jobs:
254261
contents: read
255262
environment: ${{ github.event.deployment.payload.env || inputs.env }}
256263
runs-on: ${{ inputs.runner }}
264+
timeout-minutes: ${{ inputs.timeoutMinutes }}
257265
steps:
258266
- name: Checkout current git repository
259267
uses: actions/checkout@v6

.github/workflows/ci-requirements.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
description: Runner type
1111
default: ubuntu-latest
1212
type: string
13+
timeoutMinutes:
14+
required: false
15+
description: Maximum minutes before the job is cancelled
16+
default: 40
17+
type: number
1318
outputs:
1419
full_run_required:
1520
description: Whether a full pipeline run is required
@@ -20,6 +25,7 @@ on:
2025
jobs:
2126
requirements:
2227
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
28+
timeout-minutes: ${{ inputs.timeoutMinutes || 40 }}
2329
outputs:
2430
full_run_required: ${{ steps.check_full_run_required.outputs.full_run_required }}
2531
test_run_required: ${{ steps.check_test_run_required.outputs.test_run_required }}

.github/workflows/ci.pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
repoAccessToken: ${{ secrets.GITHUB_TOKEN }}
1515
actionlint:
1616
runs-on: ubuntu-latest
17+
timeout-minutes: 40
1718
steps:
1819
- name: Checkout current git repository
1920
uses: actions/checkout@v6

.github/workflows/ci.update-major-version-tag.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
update-major-tag:
99
runs-on: ubuntu-latest
10+
timeout-minutes: 40
1011
steps:
1112
- name: Checkout
1213
uses: actions/checkout@v6

.github/workflows/container.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ on:
5555
description: Runner type
5656
default: ubuntu-latest
5757
type: string
58+
timeoutMinutes:
59+
required: false
60+
description: Maximum minutes before the job is cancelled
61+
default: 40
62+
type: number
5863
version:
5964
required: true
6065
description: The version to push
@@ -79,6 +84,7 @@ jobs:
7984
id-token: write
8085
contents: read
8186
runs-on: ${{ inputs.runner }}
87+
timeout-minutes: ${{ inputs.timeoutMinutes }}
8288
steps:
8389
- name: Checkout current git repository
8490
uses: actions/checkout@v6

.github/workflows/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ on:
4444
description: Runner type
4545
default: ubuntu-latest
4646
type: string
47+
timeoutMinutes:
48+
required: false
49+
description: Maximum minutes before the job is cancelled
50+
default: 40
51+
type: number
4752
statusUrl:
4853
required: false
4954
description: The url that shows the status of the application
@@ -62,6 +67,7 @@ on:
6267
jobs:
6368
kubernetes:
6469
runs-on: ${{ inputs.runner }}
70+
timeout-minutes: ${{ inputs.timeoutMinutes }}
6571
steps:
6672
- name: Checkout current git repository
6773
uses: actions/checkout@v6

.github/workflows/docs.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ on:
2727
description: Runner type
2828
default: ubuntu-latest
2929
type: string
30+
timeoutMinutes:
31+
required: false
32+
description: Maximum minutes before the job is cancelled
33+
default: 40
34+
type: number
3035
secrets:
3136
repoAccessToken:
3237
required: true
@@ -35,6 +40,7 @@ jobs:
3540
jekyll:
3641
if: github.ref == 'refs/heads/${{ inputs.defaultBranch }}'
3742
runs-on: ${{ inputs.runner }}
43+
timeout-minutes: ${{ inputs.timeoutMinutes }}
3844
steps:
3945
- name: Load workflow variables
4046
id: vars

.github/workflows/js.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@ on:
2222
description: Runner type
2323
default: ubuntu-latest
2424
type: string
25+
timeoutMinutes:
26+
required: false
27+
description: Maximum minutes before the job is cancelled
28+
default: 40
29+
type: number
2530
secrets:
2631
npmGithubReadToken:
2732
required: true
2833
description: The Github token with permissions to read NPM private packages
2934
jobs:
3035
js:
3136
runs-on: ${{ inputs.runner }}
37+
timeout-minutes: ${{ inputs.timeoutMinutes }}
3238
steps:
3339
- name: Checkout current git repository
3440
uses: actions/checkout@v6

.github/workflows/json.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ on:
77
description: Runner type
88
default: ubuntu-latest
99
type: string
10+
timeoutMinutes:
11+
required: false
12+
description: Maximum minutes before the job is cancelled
13+
default: 40
14+
type: number
1015
jobs:
1116
json:
1217
runs-on: ${{ inputs.runner }}
18+
timeout-minutes: ${{ inputs.timeoutMinutes }}
1319
steps:
1420
- name: Checkout current git repository
1521
uses: actions/checkout@v6

.github/workflows/kubernetes.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ on:
6262
description: Runner type
6363
default: ubuntu-latest
6464
type: string
65+
timeoutMinutes:
66+
required: false
67+
description: Maximum minutes before the job is cancelled
68+
default: 40
69+
type: number
6570
sentryOrg:
6671
required: false
6772
description: The Sentry organization that will hold the deployment
@@ -163,6 +168,7 @@ jobs:
163168
initialize:
164169
environment: ${{ github.event.deployment.payload.env || inputs.env }}
165170
runs-on: ${{ inputs.runner }}
171+
timeout-minutes: ${{ inputs.timeoutMinutes }}
166172
outputs:
167173
channel-id: ${{ steps.vars.outputs.channel-id }}
168174
version: ${{ steps.vars.outputs.version }}
@@ -219,6 +225,7 @@ jobs:
219225
preScript: ${{ inputs.preScript }}
220226
enableContainerScan: ${{ inputs.enableContainerScan }}
221227
runner: ${{ inputs.runner }}
228+
timeoutMinutes: ${{ inputs.timeoutMinutes }}
222229
version: ${{ needs.initialize.outputs.version }}
223230
appName: ${{ github.event.deployment.payload.name || inputs.appName }}
224231
env: ${{ github.event.deployment.payload.env || inputs.env }}
@@ -233,6 +240,7 @@ jobs:
233240
environment: ${{ github.event.deployment.payload.env || inputs.env }}
234241
concurrency: commit-${{ inputs.deploymentRepoURL }}-${{ github.sha }}
235242
runs-on: ${{ inputs.runner }}
243+
timeout-minutes: ${{ inputs.timeoutMinutes }}
236244
steps:
237245
- name: Checkout ${{ inputs.deploymentRepoURL }} git repository
238246
uses: actions/checkout@v6

0 commit comments

Comments
 (0)