Skip to content

Commit f7e8ca1

Browse files
committed
[3.11] pythongh-103180: Add CI timeouts to all GitHub Actions jobs (pythonGH-103437).
(cherry picked from commit be8903e) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 2e0ead5 commit f7e8ca1

7 files changed

+17
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
check_source:
3434
name: 'Check for source changes'
3535
runs-on: ubuntu-latest
36+
timeout-minutes: 10
3637
outputs:
3738
run_tests: ${{ steps.check.outputs.run_tests }}
3839
run_ssl_tests: ${{ steps.check.outputs.run_ssl_tests }}
@@ -96,6 +97,7 @@ jobs:
9697
check_generated_files:
9798
name: 'Check if generated files are up to date'
9899
runs-on: ubuntu-latest
100+
timeout-minutes: 60
99101
needs: check_source
100102
if: needs.check_source.outputs.run_tests == 'true'
101103
steps:
@@ -148,6 +150,7 @@ jobs:
148150
build_win32:
149151
name: 'Windows (x86)'
150152
runs-on: windows-latest
153+
timeout-minutes: 60
151154
needs: check_source
152155
if: needs.check_source.outputs.run_tests == 'true'
153156
env:
@@ -156,7 +159,6 @@ jobs:
156159
- uses: actions/checkout@v3
157160
- name: Build CPython
158161
run: .\PCbuild\build.bat -e -d -p Win32
159-
timeout-minutes: 30
160162
- name: Display build info
161163
run: .\python.bat -m test.pythoninfo
162164
- name: Tests
@@ -165,6 +167,7 @@ jobs:
165167
build_win_amd64:
166168
name: 'Windows (x64)'
167169
runs-on: windows-latest
170+
timeout-minutes: 60
168171
needs: check_source
169172
if: needs.check_source.outputs.run_tests == 'true'
170173
env:
@@ -175,7 +178,6 @@ jobs:
175178
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
176179
- name: Build CPython
177180
run: .\PCbuild\build.bat -e -d -p x64
178-
timeout-minutes: 30
179181
- name: Display build info
180182
run: .\python.bat -m test.pythoninfo
181183
- name: Tests
@@ -184,6 +186,7 @@ jobs:
184186
build_macos:
185187
name: 'macOS'
186188
runs-on: macos-latest
189+
timeout-minutes: 60
187190
needs: check_source
188191
if: needs.check_source.outputs.run_tests == 'true'
189192
env:
@@ -214,6 +217,7 @@ jobs:
214217
build_ubuntu:
215218
name: 'Ubuntu'
216219
runs-on: ubuntu-20.04
220+
timeout-minutes: 60
217221
needs: check_source
218222
if: needs.check_source.outputs.run_tests == 'true'
219223
env:
@@ -271,6 +275,7 @@ jobs:
271275
build_ubuntu_ssltests:
272276
name: 'Ubuntu SSL tests with OpenSSL'
273277
runs-on: ubuntu-20.04
278+
timeout-minutes: 60
274279
needs: check_source
275280
if: needs.check_source.outputs.run_tests == 'true' && needs.check_source.outputs.run_ssl_tests == 'true'
276281
strategy:
@@ -320,6 +325,7 @@ jobs:
320325
build_asan:
321326
name: 'Address sanitizer'
322327
runs-on: ubuntu-20.04
328+
timeout-minutes: 60
323329
needs: check_source
324330
if: needs.check_source.outputs.run_tests == 'true'
325331
env:

.github/workflows/build_msi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
build_win32:
3535
name: 'Windows (x86) Installer'
3636
runs-on: windows-latest
37+
timeout-minutes: 60
3738
steps:
3839
- uses: actions/checkout@v3
3940
- name: Build CPython installer
@@ -42,6 +43,7 @@ jobs:
4243
build_win_amd64:
4344
name: 'Windows (x64) Installer'
4445
runs-on: windows-latest
46+
timeout-minutes: 60
4547
steps:
4648
- uses: actions/checkout@v3
4749
- name: Build CPython installer
@@ -50,6 +52,7 @@ jobs:
5052
build_win_arm64:
5153
name: 'Windows (ARM64) Installer'
5254
runs-on: windows-latest
55+
timeout-minutes: 60
5356
steps:
5457
- uses: actions/checkout@v3
5558
- name: Build CPython installer

.github/workflows/doc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
build_doc:
3737
name: 'Docs'
3838
runs-on: ubuntu-latest
39+
timeout-minutes: 60
3940
steps:
4041
- uses: actions/checkout@v3
4142
- name: Register Sphinx problem matcher
@@ -62,6 +63,7 @@ jobs:
6263
doctest:
6364
name: 'Doctest'
6465
runs-on: ubuntu-latest
66+
timeout-minutes: 60
6567
steps:
6668
- uses: actions/checkout@v3
6769
- name: Register Sphinx problem matcher

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
jobs:
1212
notify-new-bugs-announce:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 10
1415
steps:
1516
- uses: actions/setup-node@v3
1617
with:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
label:
99
name: DO-NOT-MERGE
1010
runs-on: ubuntu-latest
11+
timeout-minutes: 10
1112

1213
steps:
1314
- uses: mheap/github-action-required-labels@v4

.github/workflows/stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
if: github.repository_owner == 'python'
1313

1414
runs-on: ubuntu-latest
15+
timeout-minutes: 10
1516

1617
steps:
1718
- name: "Check PRs"

.github/workflows/verify-ensurepip-wheels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ concurrency:
2323
jobs:
2424
verify:
2525
runs-on: ubuntu-latest
26+
timeout-minutes: 10
2627
steps:
2728
- uses: actions/checkout@v3
2829
- uses: actions/setup-python@v4

0 commit comments

Comments
 (0)