Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build-manylinux-container-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on: # yamllint disable-line rule:truthy
jobs:
build:
runs-on: ubuntu-latest

timeout-minutes: 120

strategy:
matrix:
IMAGE:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ jobs:
- pre-setup
runs-on: ubuntu-latest

timeout-minutes: 2 # network is slow sometimes

env:
TOXENV: make-changelog

Expand Down Expand Up @@ -756,6 +758,9 @@ jobs:
- build-changelog
- pre-setup # transitive, for accessing settings
runs-on: ${{ matrix.runner-vm-os }}

timeout-minutes: 2

strategy:
matrix:
python-version:
Expand Down Expand Up @@ -975,6 +980,9 @@ jobs:
registry: registry.access.redhat.com

runs-on: ubuntu-latest

timeout-minutes: 5

container:
# NOTE: GHA has poor support for concat which is why I resorted to
# NOTE: using this ugly ternary syntax
Expand Down Expand Up @@ -1302,6 +1310,8 @@ jobs:
- pre-setup # transitive, for accessing settings
runs-on: ubuntu-latest

timeout-minutes: 1

env:
TOXENV: metadata-validation

Expand Down Expand Up @@ -1386,6 +1396,8 @@ jobs:

runs-on: Ubuntu-latest

timeout-minutes: 1

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
Expand Down Expand Up @@ -1498,6 +1510,8 @@ jobs:
&& needs.publish-pypi.result == 'success'
runs-on: ubuntu-latest

timeout-minutes: 1

outputs:
pull_request_url: ${{ steps.pr.outputs.pull_request_url }}

Expand Down Expand Up @@ -1783,6 +1797,8 @@ jobs:
)
runs-on: ubuntu-latest

timeout-minutes: 5

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}/simple/ansible-pylibssh/
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
name: >-
${{ matrix.toxenv }}/${{ matrix.python-version }}@${{ matrix.os }}
runs-on: ${{ matrix.os }}

timeout-minutes: 2

strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/reusable-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
${{ inputs.dist-type }} dist
runs-on: ${{ inputs.runner-vm-os }}

timeout-minutes: 7

continue-on-error: >-
${{
(
Expand Down
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ repos:
hooks:
- id: remove-tabs

- repo: https://github.com/python-jsonschema/check-jsonschema.git
rev: 0.33.0
hooks:
- id: check-jsonschema
name: Check GitHub Workflows set timeout-minutes
args:
- --builtin-schema
- github-workflows-require-timeout
files: ^\.github/workflows/[^/]+$
types:
- yaml

- repo: https://github.com/pre-commit/pygrep-hooks.git
rev: v1.10.0
hooks:
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog-fragments/706.contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
The CI is now configured to always set job timeout values.
This will ensure that the jobs that get stuck don't consume
all 6 hours just hanging, improving responsiveness and the
overall CI/CD resource usage.

-- by :user:`webknjaz`
Loading