Skip to content

Commit e62363a

Browse files
committed
add configurable (10min default) timeouts to all workflows
1 parent 2345c81 commit e62363a

14 files changed

Lines changed: 48 additions & 332 deletions

.cursor/rules/general.mdc

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/_atlas-migrations-reusable.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ on:
7777
required: false
7878
type: string
7979
default: ""
80+
timeout_minutes:
81+
description: "Timeout in minutes for the job"
82+
type: number
83+
default: 10
8084
secrets:
8185
DATABASE_URL:
8286
description: "Database connection URL for the target environment (for traditional PostgreSQL)"
@@ -98,7 +102,7 @@ on:
98102
jobs:
99103
atlas-migrations:
100104
runs-on: ${{ inputs.runner }}
101-
timeout-minutes: 30
105+
timeout-minutes: ${{ inputs.timeout_minutes }}
102106
environment: ${{ inputs.environment_name }}
103107
outputs:
104108
status: ${{ steps.migration-result.outputs.status }}

.github/workflows/_checks-expo.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ on:
9393
required: false
9494
type: string
9595
default: ""
96+
timeout_minutes:
97+
description: "Timeout in minutes for the job"
98+
type: number
99+
default: 10
96100
secrets:
97101
app_id:
98102
description: "GitHub App ID"
@@ -109,7 +113,7 @@ jobs:
109113
runs-on: zondax-runners
110114
container:
111115
image: ${{ inputs.base_image }}
112-
timeout-minutes: 15
116+
timeout-minutes: ${{ inputs.timeout_minutes }}
113117

114118
steps:
115119
- name: Setup Ubuntu packages

.github/workflows/_checks-golang.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ on:
5050
required: false
5151
type: string
5252
default: ""
53+
timeout_minutes:
54+
description: "Timeout in minutes for the job"
55+
type: number
56+
default: 10
5357
secrets:
5458
app_id:
5559
description: "GitHub App ID"
@@ -68,7 +72,7 @@ jobs:
6872
container:
6973
image: golang:${{ inputs.go_version }}
7074
options: --tty
71-
timeout-minutes: 15
75+
timeout-minutes: ${{ inputs.timeout_minutes }}
7276
outputs:
7377
coverage_percentage: ${{ steps.coverage-check.outputs.coverage_percentage }}
7478
coverage_status: ${{ steps.coverage-check.outputs.coverage_status }}

.github/workflows/_checks-infra.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ on:
3333
required: false
3434
type: string
3535
default: ""
36+
timeout_minutes:
37+
description: "Timeout in minutes for the job"
38+
type: number
39+
default: 10
3640
secrets:
3741
app_id:
3842
description: "GitHub App ID"
@@ -46,7 +50,7 @@ jobs:
4650
runs-on: ${{ inputs.runner }}
4751
container:
4852
image: ${{ inputs.container_image }}
49-
timeout-minutes: 15
53+
timeout-minutes: ${{ inputs.timeout_minutes }}
5054

5155
steps:
5256
- name: Checkout with GitHub App

.github/workflows/_checks-rs.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ on:
5858
required: false
5959
type: string
6060
default: ""
61+
timeout_minutes:
62+
description: "Timeout in minutes for the job"
63+
type: number
64+
default: 10
6165
checkout_submodules:
6266
description: "Checkout submodules"
6367
required: false
@@ -178,7 +182,7 @@ jobs:
178182
runs-on: ${{ inputs.runner }}
179183
container:
180184
image: ${{ inputs.base_image }}
181-
timeout-minutes: 20
185+
timeout-minutes: ${{ inputs.timeout_minutes }}
182186
outputs:
183187
coverage_percentage: ${{ steps.coverage-check.outputs.coverage_percentage }}
184188
coverage_status: ${{ steps.coverage-check.outputs.coverage_status }}

.github/workflows/_checks-ts.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ on:
8484
description: "Environment name to use for accessing environment variables"
8585
type: string
8686
default: ""
87+
timeout_minutes:
88+
description: "Timeout in minutes for the job"
89+
type: number
90+
default: 10
8791
secrets:
8892
app_id:
8993
description: "GitHub App ID"
@@ -100,7 +104,7 @@ jobs:
100104
runs-on: zondax-runners
101105
container:
102106
image: ${{ inputs.base_image }}
103-
timeout-minutes: 15
107+
timeout-minutes: ${{ inputs.timeout_minutes }}
104108
environment: ${{ inputs.environment }}
105109
permissions:
106110
contents: read

.github/workflows/_checks-yaml.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Reusable YAML Checks
22

33
on:
44
workflow_call:
5+
inputs:
6+
timeout_minutes:
7+
description: "Timeout in minutes for the job"
8+
type: number
9+
default: 10
510
inputs:
611
runner:
712
description: "The runner to use for the workflow"
@@ -41,7 +46,7 @@ jobs:
4146
runs-on: ${{ inputs.runner }}
4247
container:
4348
image: ${{ inputs.container_image }}
44-
timeout-minutes: 15
49+
timeout-minutes: ${{ inputs.timeout_minutes }}
4550

4651
steps:
4752
- name: Install git and bash

.github/workflows/_gen_proto.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ on:
2525
required: false
2626
type: string
2727
default: ""
28+
timeout_minutes:
29+
description: "Timeout in minutes for the job"
30+
type: number
31+
default: 10
2832

2933
jobs:
3034
checks-proto:
3135
runs-on: ${{ inputs.runner }}
3236
container:
3337
image: ${{ inputs.container_image }}
34-
timeout-minutes: 15
38+
timeout-minutes: ${{ inputs.timeout_minutes }}
3539

3640
steps:
3741
- name: Install git

.github/workflows/_publish-docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
timeout_minutes:
1111
description: "Timeout in minutes for the job"
1212
type: number
13-
default: 15
13+
default: 10
1414
checkout_ref:
1515
description: "The ref to checkout (branch, tag, SHA)"
1616
type: string

0 commit comments

Comments
 (0)