Skip to content
Myr

Time out workflows after 45 minutes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

GitHub's default timeout is 6 hours. Recently some of my GitHub Actions jobs have started randomly stalling for that long, which is inconvenient because it ties up a chunk of my runner quota. It apepars to be very rare for a job to recover after stalling. It's better to time out quicker and retry on a different runner.

authored by David Tolnay · committed by David Tolnay · parent e19844c · Browse files · 1 file+13 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+13 added−0 removed

  • other:+13 added−0 removed

1 file+13 added−0 removed

modified:.github/workflows/ci.yml+13 added
13 unmodified lines
14jobs:15 test:16 name: Test suite17 runs-on: ubuntu-latest18 timeout-minutes: 4519 steps:20 - uses: actions/checkout@v321 - uses: dtolnay/rust-toolchain@nightly22 - run: cd test_suite && cargo test --features unstable
4 unmodified lines
2728 windows:29 name: Test suite (windows)30 runs-on: windows-latest31 timeout-minutes: 4532 steps:33 - uses: actions/checkout@v334 - uses: dtolnay/rust-toolchain@nightly35 - run: cd test_suite && cargo test --features unstable -- --skip ui --exact
4 unmodified lines
40 strategy:41 fail-fast: false42 matrix:43 rust: [stable, beta]44 timeout-minutes: 4545 steps:46 - uses: actions/checkout@v347 - uses: dtolnay/rust-toolchain@master48 with:
9 unmodified lines
58 strategy:59 fail-fast: false60 matrix:61 os: [ubuntu, windows]62 timeout-minutes: 4563 steps:64 - uses: actions/checkout@v365 - uses: dtolnay/rust-toolchain@nightly66 - run: cd serde && cargo build
10 unmodified lines
7778 msrv:79 name: Rust 1.13.080 runs-on: ubuntu-latest81 timeout-minutes: 4582 steps:83 - uses: actions/checkout@v384 - uses: dtolnay/rust-toolchain@1.13.085 - name: Get timestamp for cache
13 unmodified lines
99 strategy:100 fail-fast: false101 matrix:102 rust: [1.19.0, 1.20.0, 1.21.0, 1.25.0, 1.26.0, 1.34.0]103 timeout-minutes: 45104 steps:105 - uses: actions/checkout@v3106 - uses: dtolnay/rust-toolchain@master107 with:
7 unmodified lines
115 strategy:116 fail-fast: false117 matrix:118 rust: [1.27.0, 1.28.0]119 timeout-minutes: 45120 steps:121 - uses: actions/checkout@v3122 - uses: dtolnay/rust-toolchain@master123 with:
5 unmodified lines
129130 derive:131 name: Rust 1.31.0132 runs-on: ubuntu-latest133 timeout-minutes: 45134 steps:135 - uses: actions/checkout@v3136 - uses: dtolnay/rust-toolchain@1.31.0137 - run: cd serde && cargo check --no-default-features
2 unmodified lines
140141 alloc:142 name: Rust 1.36.0143 runs-on: ubuntu-latest144 timeout-minutes: 45145 steps:146 - uses: actions/checkout@v3147 - uses: dtolnay/rust-toolchain@1.36.0148 - run: cd serde && cargo build --no-default-features --features alloc149150 emscripten:151 name: Emscripten152 runs-on: ubuntu-latest153 timeout-minutes: 45154 steps:155 - uses: actions/checkout@v3156 - uses: dtolnay/rust-toolchain@nightly157 - uses: actions/setup-node@v1
15 unmodified lines
173 clippy:174 name: Clippy175 runs-on: ubuntu-latest176 if: github.event_name != 'pull_request'177 timeout-minutes: 45178 steps:179 - uses: actions/checkout@v3180 - uses: dtolnay/rust-toolchain@clippy181 - run: cd serde && cargo clippy --features rc,unstable -- -Dclippy::all -Dclippy::pedantic
5 unmodified lines
187188 miri:189 name: Miri190 runs-on: ubuntu-latest191 timeout-minutes: 45192 steps:193 - uses: actions/checkout@v3194 - uses: dtolnay/rust-toolchain@miri195 - run: cd serde && cargo miri test --features derive,rc,unstable
6 unmodified lines
202 outdated:203 name: Outdated204 runs-on: ubuntu-latest205 if: github.event_name != 'pull_request'206 timeout-minutes: 45207 steps:208 - uses: actions/checkout@v3209 - uses: dtolnay/install@cargo-outdated210 - run: cargo outdated --workspace --exclude macrotest,prettyplease --exit-code 1