Skip to content

Commit

Permalink
Add job explicit, conservative job timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk committed Sep 16, 2024
1 parent 5fc8c95 commit 282d794
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ env:
jobs:
build_linux:
runs-on: ubuntu-22.04
timeout-minutes: 90

strategy:
matrix:
Expand Down Expand Up @@ -74,6 +75,7 @@ jobs:

build_windows:
runs-on: windows-2019
timeout-minutes: 150

strategy:
matrix:
Expand Down Expand Up @@ -137,6 +139,7 @@ jobs:
test_linux:
needs: build_linux
runs-on: ${{ matrix.runner }}
timeout-minutes: 30

strategy:
matrix:
Expand Down Expand Up @@ -228,6 +231,7 @@ jobs:
test_windows:
needs: build_windows
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
defaults:
run:
shell: cmd /C CALL {0}
Expand Down Expand Up @@ -361,6 +365,7 @@ jobs:
needs: test_linux
if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}}
runs-on: ubuntu-22.04
timeout-minutes: 20
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
Expand Down Expand Up @@ -397,6 +402,7 @@ jobs:
needs: test_windows
if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}}
runs-on: windows-2019
timeout-minutes: 20
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
Expand Down Expand Up @@ -443,6 +449,7 @@ jobs:
experimental: [false]
runner: [ubuntu-22.04]
continue-on-error: ${{ matrix.experimental }}
timeout-minutes: 60
env:
EXAMPLES_ENV_NAME: examples
BUILD_ENV_NAME: build_env
Expand Down Expand Up @@ -590,6 +597,7 @@ jobs:
array-api-conformity:
needs: build_linux
runs-on: ${{ matrix.runner }}
timeout-minutes: 90
permissions:
pull-requests: write

Expand Down Expand Up @@ -735,6 +743,7 @@ jobs:
name: Clean up anaconda packages
needs: [upload_linux, upload_windows]
runs-on: 'ubuntu-latest'
timeout-minutes: 30
defaults:
run:
shell: bash -el {0}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cpp_style_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
formatting-check:
name: clang-format
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4.1.7
- name: Run clang-format style check for C/C++ programs.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/generate-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
generate-coverage:
name: Generate coverage and push to Coveralls.io
runs-on: ubuntu-latest
timeout-minutes: 150
permissions:
pull-requests: write

Expand Down Expand Up @@ -145,6 +146,7 @@ jobs:
name: Indicate completion to coveralls.io
needs: generate-coverage
runs-on: ubuntu-latest
timeout-minutes: 20
container: python:3-slim
steps:
- name: Finished
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
build-and-deploy:
name: Build and Deploy Documentation
runs-on: ubuntu-latest
timeout-minutes: 240
permissions:
contents: write
pull-requests: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/openssf-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/os-llvm-sycl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
install-compiler:
name: Build with nightly build of DPC++ toolchain
runs-on: ubuntu-22.04
timeout-minutes: 90

env:
DOWNLOAD_URL_PREFIX: https://github.com/intel/llvm/releases/download
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permissions: read-all
jobs:
pre-commit:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/python_style_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
# The isort job sorts all imports in .py, .pyx, .pxd files
isort:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5
Expand All @@ -28,6 +29,7 @@ jobs:
black:
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 30

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

flake8:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v4.1.7
Expand Down

0 comments on commit 282d794

Please sign in to comment.