Skip to content

Commit 11db0ef

Browse files
authored
Merge pull request #1427 from cipherstash/ci/job-timeouts
ci(timeouts): set timeout-minutes on every job
2 parents a6eae58 + 960081c commit 11db0ef

13 files changed

Lines changed: 101 additions & 0 deletions

‎.github/workflows/codeql.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
analyze:
2020
name: Analyze
2121
runs-on: blacksmith-4vcpu-ubuntu-2404
22+
timeout-minutes: 10
2223

2324
strategy:
2425
fail-fast: false

‎.github/workflows/fta-v3.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
fta:
4040
name: Analyze v3 complexity
4141
runs-on: blacksmith-4vcpu-ubuntu-2404
42+
timeout-minutes: 10
4243

4344
steps:
4445
- name: Checkout Repo

‎.github/workflows/integration-drizzle.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ jobs:
205205
integration:
206206
name: Drizzle v3 integration (db=${{ matrix.db }})
207207
runs-on: blacksmith-4vcpu-ubuntu-2404
208+
timeout-minutes: 35
208209
# No concurrency group: `integration-db` gives each job its own compose
209210
# project and ephemeral host ports, so live-DB jobs no longer contend and do
210211
# not need serialising. See that action for why the old

‎.github/workflows/integration-prisma-next.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ jobs:
115115
integration:
116116
name: prisma-next v3 integration (db=${{ matrix.db }})
117117
runs-on: blacksmith-4vcpu-ubuntu-2404
118+
timeout-minutes: 15
118119
# No concurrency group: `integration-db` gives each job its own compose
119120
# project and ephemeral host ports, so live-DB jobs no longer contend and do
120121
# not need serialising. See that action for why the old

‎.github/workflows/integration-supabase.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ jobs:
174174
integration:
175175
name: Supabase v3 integration (db=${{ matrix.db }})
176176
runs-on: blacksmith-4vcpu-ubuntu-2404
177+
timeout-minutes: 15
177178
# No concurrency group: `integration-db` gives each job its own compose
178179
# project and ephemeral host ports, so live-DB jobs no longer contend and do
179180
# not need serialising. See that action for why the old

‎.github/workflows/prisma-example-readme-e2e.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
walkthrough:
8484
name: Run README walkthrough
8585
runs-on: blacksmith-4vcpu-ubuntu-2404
86+
timeout-minutes: 15
8687

8788
# Skip cleanly on fork PRs where secrets aren't available. The
8889
# test's `describe.skipIf(!authConfigured)` would also skip, but

‎.github/workflows/prisma-next-e2e.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
e2e:
8484
name: Run Prisma Next E2E
8585
runs-on: blacksmith-4vcpu-ubuntu-2404
86+
timeout-minutes: 15
8687

8788
# Skip cleanly on fork PRs where secrets aren't available. The
8889
# global-setup hook in the suite hard-errors when `CS_WORKSPACE_CRN`

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ jobs:
497497
# generated automatically by OIDC trusted publishing, are only accepted
498498
# from github-hosted runners — self-hosted runners are rejected with E422.
499499
runs-on: ubuntu-latest
500+
timeout-minutes: 30
500501
permissions:
501502
id-token: write # npm OIDC trusted publishing
502503
contents: write # changesets commits and pushes the Version Packages branch

‎.github/workflows/test-eql.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ jobs:
154154
changes:
155155
name: "Detect relevant changes"
156156
runs-on: blacksmith-16vcpu-ubuntu-2204
157+
timeout-minutes: 10
157158
outputs:
158159
relevant: ${{ steps.r.outputs.relevant }}
159160
steps:
@@ -243,6 +244,7 @@ jobs:
243244
setup:
244245
name: "Compute matrix"
245246
runs-on: blacksmith-16vcpu-ubuntu-2204
247+
timeout-minutes: 10
246248
# Opts out of the workflow-level `working-directory: packages/eql`. This job
247249
# deliberately does not check out — it is pure bash deriving a matrix — so
248250
# `packages/eql` does not exist on the runner and every `run:` step fails
@@ -314,6 +316,7 @@ jobs:
314316
&& (github.event_name != 'pull_request'
315317
|| github.event.pull_request.head.repo.full_name == github.repository)
316318
runs-on: blacksmith-16vcpu-ubuntu-2204
319+
timeout-minutes: 45
317320
env:
318321
# test:sqlx:archive depends on test:sqlx:prep, which copies the built EQL
319322
# into migrations/, applies it to a live Postgres, and regenerates the
@@ -398,6 +401,7 @@ jobs:
398401
github.event_name != 'pull_request'
399402
|| needs.changes.outputs.relevant == 'true'
400403
runs-on: blacksmith-16vcpu-ubuntu-2204
404+
timeout-minutes: 75
401405
strategy:
402406
fail-fast: false
403407
matrix:
@@ -460,6 +464,7 @@ jobs:
460464
github.event_name != 'pull_request'
461465
|| needs.changes.outputs.relevant == 'true'
462466
runs-on: blacksmith-16vcpu-ubuntu-2204
467+
timeout-minutes: 10
463468
strategy:
464469
fail-fast: false
465470
matrix:
@@ -519,6 +524,7 @@ jobs:
519524
github.event_name != 'pull_request'
520525
|| needs.changes.outputs.relevant == 'true'
521526
runs-on: blacksmith-16vcpu-ubuntu-2204
527+
timeout-minutes: 10
522528
steps:
523529
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
524530
with:
@@ -548,6 +554,7 @@ jobs:
548554
github.event_name != 'pull_request'
549555
|| needs.changes.outputs.relevant == 'true'
550556
runs-on: blacksmith-16vcpu-ubuntu-2204
557+
timeout-minutes: 15
551558
services:
552559
encryption-postgres:
553560
image: postgres:17
@@ -676,6 +683,7 @@ jobs:
676683
github.event_name != 'pull_request'
677684
|| needs.changes.outputs.relevant == 'true'
678685
runs-on: blacksmith-16vcpu-ubuntu-2204
686+
timeout-minutes: 10
679687
steps:
680688
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
681689
with:
@@ -708,6 +716,7 @@ jobs:
708716
github.event_name != 'pull_request'
709717
|| needs.changes.outputs.relevant == 'true'
710718
runs-on: blacksmith-16vcpu-ubuntu-2204
719+
timeout-minutes: 10
711720
steps:
712721
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
713722
with:
@@ -744,6 +753,7 @@ jobs:
744753
github.event_name != 'pull_request'
745754
|| needs.changes.outputs.relevant == 'true'
746755
runs-on: blacksmith-16vcpu-ubuntu-2204
756+
timeout-minutes: 20
747757
steps:
748758
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
749759
with:
@@ -786,6 +796,7 @@ jobs:
786796
github.event_name != 'pull_request'
787797
|| needs.changes.outputs.relevant == 'true'
788798
runs-on: blacksmith-16vcpu-ubuntu-2204
799+
timeout-minutes: 10
789800
env:
790801
POSTGRES_VERSION: "17"
791802
steps:
@@ -846,6 +857,7 @@ jobs:
846857
docs-static:
847858
name: "SQL doc validation"
848859
runs-on: blacksmith-16vcpu-ubuntu-2204
860+
timeout-minutes: 10
849861
steps:
850862
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
851863
with:
@@ -885,6 +897,7 @@ jobs:
885897
known-failures:
886898
name: "known-failure markers"
887899
runs-on: blacksmith-16vcpu-ubuntu-2204
900+
timeout-minutes: 10
888901
permissions:
889902
contents: read
890903
issues: read
@@ -923,6 +936,7 @@ jobs:
923936
doc-anchors:
924937
name: "doc anchor links"
925938
runs-on: blacksmith-16vcpu-ubuntu-2204
939+
timeout-minutes: 10
926940
steps:
927941
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
928942
with:
@@ -956,6 +970,7 @@ jobs:
956970
&& (github.event_name != 'pull_request'
957971
|| github.event.pull_request.head.repo.full_name == github.repository)
958972
runs-on: blacksmith-16vcpu-ubuntu-2204
973+
timeout-minutes: 40
959974
env:
960975
POSTGRES_VERSION: "17"
961976
CS_CLIENT_ACCESS_KEY: ${{ secrets.CS_CLIENT_ACCESS_KEY }}
@@ -1007,6 +1022,7 @@ jobs:
10071022
known-failures, doc-anchors, e2e]
10081023
if: always()
10091024
runs-on: blacksmith-16vcpu-ubuntu-2204
1025+
timeout-minutes: 10
10101026
# Same opt-out as `setup`, and this is the worse of the two to get wrong:
10111027
# this job is the required check. It reads `needs.*.result` and checks out
10121028
# nothing, so under the workflow-level `working-directory` it fails for a

‎.github/workflows/tests-bench.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
tests-bench:
4848
name: Run Bench Smoke Tests
4949
runs-on: blacksmith-4vcpu-ubuntu-2404
50+
timeout-minutes: 10
5051

5152
steps:
5253
- name: Checkout Repo

0 commit comments

Comments
 (0)