Skip to content

Commit bae270f

Browse files
committed
Increase or set CI timeouts
With the new routines, some of our tests are running close to their timeouts. Increase the timeout for test jobs, and set a short timeout for all other jobs that did not have one.
1 parent dae4f1a commit bae270f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/main.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
jobs:
1616
test:
1717
name: Build and test
18-
timeout-minutes: 40
18+
timeout-minutes: 60
1919
strategy:
2020
fail-fast: false
2121
matrix:
@@ -123,6 +123,7 @@ jobs:
123123
clippy:
124124
name: Clippy
125125
runs-on: ubuntu-24.04
126+
timeout-minutes: 10
126127
steps:
127128
- uses: actions/checkout@master
128129
- name: Install Rust
@@ -138,6 +139,7 @@ jobs:
138139
builtins:
139140
name: Check use with compiler-builtins
140141
runs-on: ubuntu-24.04
142+
timeout-minutes: 10
141143
steps:
142144
- uses: actions/checkout@master
143145
- name: Install Rust
@@ -194,6 +196,7 @@ jobs:
194196
msrv:
195197
name: Check MSRV
196198
runs-on: ubuntu-24.04
199+
timeout-minutes: 10
197200
env:
198201
RUSTFLAGS: # No need to check warnings on old MSRV, unset `-Dwarnings`
199202
steps:
@@ -210,6 +213,7 @@ jobs:
210213
rustfmt:
211214
name: Rustfmt
212215
runs-on: ubuntu-24.04
216+
timeout-minutes: 10
213217
steps:
214218
- uses: actions/checkout@master
215219
- name: Install Rust
@@ -223,6 +227,7 @@ jobs:
223227
calculate_extensive_matrix:
224228
name: Calculate job matrix
225229
runs-on: ubuntu-24.04
230+
timeout-minutes: 10
226231
outputs:
227232
matrix: ${{ steps.script.outputs.matrix }}
228233
steps:
@@ -242,7 +247,7 @@ jobs:
242247
- clippy
243248
- calculate_extensive_matrix
244249
runs-on: ubuntu-24.04
245-
timeout-minutes: 80
250+
timeout-minutes: 180
246251
strategy:
247252
matrix:
248253
# Use the output from `calculate_extensive_matrix` to calculate the matrix
@@ -286,6 +291,7 @@ jobs:
286291
- rustfmt
287292
- extensive
288293
runs-on: ubuntu-24.04
294+
timeout-minutes: 10
289295
# GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
290296
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
291297
# dependencies fails.

0 commit comments

Comments
 (0)