Skip to content

Commit 85ed603

Browse files
Use more reasonable timeouts for some jobs
1 parent 21a6a8a commit 85ed603

18 files changed

Lines changed: 30 additions & 36 deletions

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
runs-on: ubuntu-26.04
5757
container:
5858
image: ghcr.io/python/autoconf:2025.01.02.12581854023
59-
timeout-minutes: 60
59+
timeout-minutes: 5
6060
needs: build-context
6161
if: needs.build-context.outputs.run-tests == 'true'
6262
steps:
@@ -97,7 +97,7 @@ jobs:
9797
# Don't use ubuntu-latest but a specific version to make the job
9898
# reproducible: to get the same tools versions (autoconf, aclocal, ...)
9999
runs-on: ubuntu-26.04
100-
timeout-minutes: 60
100+
timeout-minutes: 30
101101
needs: build-context
102102
if: needs.build-context.outputs.run-tests == 'true'
103103
steps:
@@ -254,7 +254,7 @@ jobs:
254254
build-ubuntu-ssltests:
255255
name: 'Ubuntu SSL tests'
256256
runs-on: ${{ matrix.os }}
257-
timeout-minutes: 60
257+
timeout-minutes: 10
258258
needs: build-context
259259
if: needs.build-context.outputs.run-ubuntu == 'true'
260260
strategy:
@@ -328,7 +328,7 @@ jobs:
328328
name: Android (${{ matrix.arch }})
329329
needs: build-context
330330
if: needs.build-context.outputs.run-android == 'true'
331-
timeout-minutes: 60
331+
timeout-minutes: 30
332332
strategy:
333333
fail-fast: false
334334
matrix:
@@ -350,7 +350,7 @@ jobs:
350350
name: iOS
351351
needs: build-context
352352
if: needs.build-context.outputs.run-ios == 'true'
353-
timeout-minutes: 60
353+
timeout-minutes: 40
354354
runs-on: macos-26
355355
steps:
356356
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -375,7 +375,7 @@ jobs:
375375
test-hypothesis:
376376
name: "Hypothesis tests on Ubuntu"
377377
runs-on: ubuntu-26.04
378-
timeout-minutes: 60
378+
timeout-minutes: 30
379379
needs: build-context
380380
if: needs.build-context.outputs.run-ubuntu == 'true'
381381
env:
@@ -479,7 +479,7 @@ jobs:
479479
build-asan:
480480
name: 'Address sanitizer'
481481
runs-on: ${{ matrix.os }}
482-
timeout-minutes: 60
482+
timeout-minutes: 30
483483
needs: build-context
484484
if: needs.build-context.outputs.run-ubuntu == 'true'
485485
strategy:
@@ -550,7 +550,7 @@ jobs:
550550
cross-build-linux:
551551
name: Cross build Linux
552552
runs-on: ubuntu-26.04
553-
timeout-minutes: 60
553+
timeout-minutes: 30
554554
needs: build-context
555555
if: needs.build-context.outputs.run-ubuntu == 'true'
556556
steps:
@@ -632,7 +632,7 @@ jobs:
632632
all-required-green: # This job does nothing and is only used for the branch protection
633633
name: All required checks pass
634634
runs-on: ubuntu-latest
635-
timeout-minutes: 5
635+
timeout-minutes: 2
636636
needs:
637637
- build-context # Transitive dependency, needed to access `run-tests` value
638638
- check-docs

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616
jobs:
1717
lint:
1818
runs-on: ubuntu-latest
19-
timeout-minutes: 10
19+
timeout-minutes: 5
2020

2121
steps:
2222
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
mypy:
5151
name: Run mypy on ${{ matrix.target }}
5252
runs-on: ubuntu-latest
53-
timeout-minutes: 10
53+
timeout-minutes: 5
5454
strategy:
5555
fail-fast: false
5656
matrix:

.github/workflows/new-bugs-announce-notifier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-slim
1414
permissions:
1515
issues: read
16-
timeout-minutes: 10
16+
timeout-minutes: 5
1717
steps:
1818
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
1919
with:

.github/workflows/require-pr-label.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-slim
1515
permissions:
1616
pull-requests: read
17-
timeout-minutes: 10
17+
timeout-minutes: 2
1818

1919
steps:
2020
- name: Check there's no DO-NOT-MERGE
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-slim
3232
permissions:
3333
pull-requests: read
34-
timeout-minutes: 10
34+
timeout-minutes: 2
3535

3636
steps:
3737
# Check that the PR is not awaiting changes from the author due to previous review.

.github/workflows/reusable-check-html-ids.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
check-html-ids:
1414
name: 'Check for removed HTML IDs'
1515
runs-on: ubuntu-latest
16-
timeout-minutes: 30
16+
timeout-minutes: 10
1717
steps:
1818
- name: 'Check out PR head'
1919
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

.github/workflows/reusable-cifuzz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cifuzz:
2121
name: ${{ inputs.oss-fuzz-project-name }} (${{ inputs.sanitizer }})
2222
runs-on: ubuntu-latest
23-
timeout-minutes: 60
23+
timeout-minutes: 40
2424
steps:
2525
- name: Build fuzzers (${{ inputs.sanitizer }})
2626
id: build

.github/workflows/reusable-context.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
compute-changes:
5959
name: Create context from changed files
6060
runs-on: ubuntu-latest
61-
timeout-minutes: 10
61+
timeout-minutes: 5
6262
outputs:
6363
run-android: ${{ steps.changes.outputs.run-android }}
6464
run-ci-fuzz: ${{ steps.changes.outputs.run-ci-fuzz }}

.github/workflows/reusable-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
build-doc:
3030
name: 'Docs'
3131
runs-on: ubuntu-latest
32-
timeout-minutes: 60
32+
timeout-minutes: 10
3333
env:
3434
branch_base: 'origin/${{ github.event.pull_request.base.ref }}'
3535
branch_pr: 'origin/${{ github.event.pull_request.head.ref }}'
@@ -115,7 +115,7 @@ jobs:
115115
doctest:
116116
name: 'Doctest'
117117
runs-on: ubuntu-26.04
118-
timeout-minutes: 60
118+
timeout-minutes: 15
119119
steps:
120120
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
121121
with:
@@ -141,7 +141,7 @@ jobs:
141141
check-epub:
142142
name: 'Check EPUB'
143143
runs-on: ubuntu-latest
144-
timeout-minutes: 30
144+
timeout-minutes: 10
145145
steps:
146146
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
147147
with:

.github/workflows/reusable-install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build-install-test:
1414
name: build, install and test
1515
runs-on: ubuntu-26.04-arm
16-
timeout-minutes: 60
16+
timeout-minutes: 30
1717
env:
1818
PYTHONSTRICTEXTENSIONBUILD: 1
1919
steps:

0 commit comments

Comments
 (0)