Skip to content

Commit f512345

Browse files
authored
Merge pull request #1309 from o1-labs/dw/ci-add-timeouts
CI: add timeout-minutes at different places
2 parents 8faeb29 + 1f9c385 commit f512345

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717

1818
jobs:
1919
ledger-tests:
20+
timeout-minutes: 20
2021
runs-on: ubuntu-24.04
2122
steps:
2223
- name: Git checkout
@@ -73,6 +74,7 @@ jobs:
7374
run: make test-ledger
7475

7576
vrf-tests:
77+
timeout-minutes: 8
7678
runs-on: ubuntu-24.04
7779
steps:
7880
- name: Git checkout
@@ -94,6 +96,7 @@ jobs:
9496
run: make test-vrf
9597

9698
p2p-tests:
99+
timeout-minutes: 6
97100
runs-on: ubuntu-24.04
98101
steps:
99102
- name: Git checkout
@@ -112,6 +115,7 @@ jobs:
112115
run: make test-p2p
113116

114117
build:
118+
timeout-minutes: 60
115119
# NOTE: If you add or remove platforms from this matrix, make sure to update
116120
# the documentation at website/docs/developers/getting-started.mdx
117121
strategy:
@@ -144,6 +148,7 @@ jobs:
144148
retention-days: 7
145149

146150
build-wasm:
151+
timeout-minutes: 60
147152
# NOTE: If you add or remove platforms from this matrix, make sure to update
148153
# the documentation at website/docs/developers/getting-started.mdx
149154
strategy:
@@ -167,6 +172,7 @@ jobs:
167172
run: make build-wasm
168173

169174
build-tests:
175+
timeout-minutes: 60
170176
# NOTE: If you add or remove platforms from this matrix, make sure to update
171177
# the documentation at website/docs/developers/getting-started.mdx
172178
strategy:
@@ -205,6 +211,7 @@ jobs:
205211
retention-days: 7
206212

207213
build-tests-webrtc:
214+
timeout-minutes: 60
208215
# NOTE: If you add or remove platforms from this matrix, make sure to update
209216
# the documentation at website/docs/developers/getting-started.mdx
210217
strategy:
@@ -239,6 +246,7 @@ jobs:
239246
p2p-scenario-tests:
240247
needs: [ build-tests, build-tests-webrtc ]
241248
runs-on: ubuntu-24.04
249+
timeout-minutes: 20
242250
container:
243251
image: gcr.io/o1labs-192920/mina-daemon:3.2.0-beta2-939b08d-noble-devnet
244252
options: --volume debugger_data:/tmp/db
@@ -298,6 +306,7 @@ jobs:
298306
if: ${{ always() }}
299307

300308
scenario-tests:
309+
timeout-minutes: 20
301310
needs:
302311
- build-tests
303312
- build-tests-webrtc
@@ -384,6 +393,7 @@ jobs:
384393
if: ${{ always() }}
385394

386395
record-replay-tests:
396+
timeout-minutes: 30
387397
needs:
388398
- build-tests
389399
- build-tests-webrtc
@@ -421,6 +431,7 @@ jobs:
421431
./${{ matrix.test }} --test-threads=1
422432
423433
bootstrap-test:
434+
timeout-minutes: 4
424435
needs: [ build, build-tests ]
425436
runs-on: ubuntu-24.04
426437
env:

.github/workflows/docker.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212

1313
jobs:
1414
build-openmina-node-image:
15+
timeout-minutes: 40
1516
strategy:
1617
matrix:
1718
arch:
@@ -63,6 +64,7 @@ jobs:
6364

6465
# Frontend
6566
build-openmina-frontend-image:
67+
timeout-minutes: 5
6668
strategy:
6769
matrix:
6870
arch:

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
lint:
10+
timeout-minutes: 10
1011
name: Lint - ${{ matrix.os }} - Rust ${{ matrix.toolchain }}
1112
runs-on: ${{ matrix.os }}
1213
strategy:
@@ -36,6 +37,7 @@ jobs:
3637
DATABASE_URL: "sqlite:///tmp/heartbeats.db"
3738

3839
lint-tx-fuzzing:
40+
timeout-minutes: 5
3941
name: Lint transaction Fuzzing - ${{ matrix.os }} - Rust ${{ matrix.toolchain }}
4042
runs-on: ${{ matrix.os }}
4143
strategy:
@@ -56,6 +58,7 @@ jobs:
5658
run: make check-tx-fuzzing
5759

5860
shellcheck:
61+
timeout-minutes: 1
5962
name: Shellcheck - ${{ matrix.os }}
6063
runs-on: ${{ matrix.os }}
6164
strategy:
@@ -71,6 +74,7 @@ jobs:
7174
run: make lint-bash
7275

7376
hadolint:
77+
timeout-minutes: 1
7478
name: Hadolint - ${{ matrix.os }}
7579
runs-on: ${{ matrix.os }}
7680
strategy:

.github/workflows/whitespace-check.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ on:
88

99
jobs:
1010
check-whitespace:
11+
timeout-minutes: 1
1112
runs-on: ubuntu-22.04
1213
steps:
1314
- name: Checkout repository
1415
uses: actions/checkout@v5
1516

1617
- name: Check for trailing whitespaces
17-
run: make check-trailing-whitespace
18+
run: make check-trailing-whitespace

0 commit comments

Comments
 (0)