Skip to content

Commit 8c47c65

Browse files
Merge pull request #1839 from IntelPython/add-timeout-to-jobs
Add job explicit, conservative job timeouts
2 parents 32887ff + 282d794 commit 8c47c65

File tree

8 files changed

+19
-0
lines changed

8 files changed

+19
-0
lines changed

.github/workflows/conda-package.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
jobs:
2020
build_linux:
2121
runs-on: ubuntu-22.04
22+
timeout-minutes: 90
2223

2324
strategy:
2425
matrix:
@@ -74,6 +75,7 @@ jobs:
7475

7576
build_windows:
7677
runs-on: windows-2019
78+
timeout-minutes: 150
7779

7880
strategy:
7981
matrix:
@@ -137,6 +139,7 @@ jobs:
137139
test_linux:
138140
needs: build_linux
139141
runs-on: ${{ matrix.runner }}
142+
timeout-minutes: 30
140143

141144
strategy:
142145
matrix:
@@ -228,6 +231,7 @@ jobs:
228231
test_windows:
229232
needs: build_windows
230233
runs-on: ${{ matrix.runner }}
234+
timeout-minutes: 60
231235
defaults:
232236
run:
233237
shell: cmd /C CALL {0}
@@ -361,6 +365,7 @@ jobs:
361365
needs: test_linux
362366
if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}}
363367
runs-on: ubuntu-22.04
368+
timeout-minutes: 20
364369
strategy:
365370
matrix:
366371
python: ['3.9', '3.10', '3.11', '3.12']
@@ -397,6 +402,7 @@ jobs:
397402
needs: test_windows
398403
if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}}
399404
runs-on: windows-2019
405+
timeout-minutes: 20
400406
strategy:
401407
matrix:
402408
python: ['3.9', '3.10', '3.11', '3.12']
@@ -443,6 +449,7 @@ jobs:
443449
experimental: [false]
444450
runner: [ubuntu-22.04]
445451
continue-on-error: ${{ matrix.experimental }}
452+
timeout-minutes: 60
446453
env:
447454
EXAMPLES_ENV_NAME: examples
448455
BUILD_ENV_NAME: build_env
@@ -590,6 +597,7 @@ jobs:
590597
array-api-conformity:
591598
needs: build_linux
592599
runs-on: ${{ matrix.runner }}
600+
timeout-minutes: 90
593601
permissions:
594602
pull-requests: write
595603

@@ -735,6 +743,7 @@ jobs:
735743
name: Clean up anaconda packages
736744
needs: [upload_linux, upload_windows]
737745
runs-on: 'ubuntu-latest'
746+
timeout-minutes: 30
738747
defaults:
739748
run:
740749
shell: bash -el {0}

.github/workflows/cpp_style_checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
formatting-check:
1616
name: clang-format
1717
runs-on: ubuntu-latest
18+
timeout-minutes: 30
1819
steps:
1920
- uses: actions/checkout@v4.1.7
2021
- name: Run clang-format style check for C/C++ programs.

.github/workflows/generate-coverage.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
generate-coverage:
1111
name: Generate coverage and push to Coveralls.io
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 150
1314
permissions:
1415
pull-requests: write
1516

@@ -145,6 +146,7 @@ jobs:
145146
name: Indicate completion to coveralls.io
146147
needs: generate-coverage
147148
runs-on: ubuntu-latest
149+
timeout-minutes: 20
148150
container: python:3-slim
149151
steps:
150152
- name: Finished

.github/workflows/generate-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
build-and-deploy:
1313
name: Build and Deploy Documentation
1414
runs-on: ubuntu-latest
15+
timeout-minutes: 240
1516
permissions:
1617
contents: write
1718
pull-requests: write

.github/workflows/openssf-scorecard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
analysis:
2323
name: Scorecard analysis
2424
runs-on: ubuntu-latest
25+
timeout-minutes: 30
2526
permissions:
2627
# Needed to upload the results to code-scanning dashboard.
2728
security-events: write

.github/workflows/os-llvm-sycl-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
install-compiler:
1111
name: Build with nightly build of DPC++ toolchain
1212
runs-on: ubuntu-22.04
13+
timeout-minutes: 90
1314

1415
env:
1516
DOWNLOAD_URL_PREFIX: https://github.com/intel/llvm/releases/download

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions: read-all
1010
jobs:
1111
pre-commit:
1212
runs-on: ubuntu-24.04
13+
timeout-minutes: 30
1314
steps:
1415
- uses: actions/checkout@v4.1.7
1516
- uses: actions/setup-python@v5

.github/workflows/python_style_checks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
# The isort job sorts all imports in .py, .pyx, .pxd files
1717
isort:
1818
runs-on: ubuntu-latest
19+
timeout-minutes: 30
1920
steps:
2021
- uses: actions/checkout@v4.1.7
2122
- uses: actions/setup-python@v5
@@ -28,6 +29,7 @@ jobs:
2829
black:
2930
# The type of runner that the job will run on
3031
runs-on: ubuntu-latest
32+
timeout-minutes: 30
3133

3234
# Steps represent a sequence of tasks that will be executed as part of the job
3335
steps:
@@ -47,6 +49,7 @@ jobs:
4749

4850
flake8:
4951
runs-on: ubuntu-latest
52+
timeout-minutes: 30
5053

5154
steps:
5255
- uses: actions/checkout@v4.1.7

0 commit comments

Comments
 (0)