Browse Source

Add timeouts for jobs

pull/15607/head
Yurii Motov 4 weeks ago
parent
commit
2325e366cc
  1. 1
      .github/workflows/add-to-project.yml
  2. 3
      .github/workflows/build-docs.yml
  3. 1
      .github/workflows/deploy-docs.yml
  4. 1
      .github/workflows/detect-conflicts.yml
  5. 1
      .github/workflows/guard-dependencies.yml
  6. 1
      .github/workflows/issue-manager.yml
  7. 1
      .github/workflows/label-approved.yml
  8. 2
      .github/workflows/labeler.yml
  9. 1
      .github/workflows/latest-changes.yml
  10. 1
      .github/workflows/notify-translations.yml
  11. 2
      .github/workflows/pre-commit.yml
  12. 1
      .github/workflows/publish.yml
  13. 1
      .github/workflows/smokeshow.yml
  14. 1
      .github/workflows/sponsors.yml
  15. 2
      .github/workflows/test-redistribute.yml
  16. 5
      .github/workflows/test.yml
  17. 1
      .github/workflows/topic-repos.yml
  18. 1
      .github/workflows/zizmor.yml

1
.github/workflows/add-to-project.yml

@ -13,6 +13,7 @@ jobs:
add-to-project:
name: Add to project
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/add-to-project@5afcf98fcd03f1c2f92c3c83f58ae24323cc57fd # v2.0.0
with:

3
.github/workflows/build-docs.yml

@ -16,6 +16,7 @@ jobs:
# Required permissions
permissions:
pull-requests: read
timeout-minutes: 5
# Set job outputs to values from filter step
outputs:
docs: ${{ steps.filter.outputs.docs }}
@ -42,6 +43,7 @@ jobs:
- changes
if: ${{ needs.changes.outputs.docs == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
langs: ${{ steps.show-langs.outputs.langs }}
steps:
@ -75,6 +77,7 @@ jobs:
- langs
if: ${{ needs.changes.outputs.docs == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 7
strategy:
matrix:
lang: ${{ fromJson(needs.langs.outputs.langs) }}

1
.github/workflows/deploy-docs.yml

@ -16,6 +16,7 @@ jobs:
issues: write
pull-requests: write
statuses: write
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:

1
.github/workflows/detect-conflicts.yml

@ -12,6 +12,7 @@ jobs:
contents: read
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check if PRs have merge conflicts
uses: eps1lon/actions-label-merge-conflict@1df065ebe6e3310545d4f4c4e862e43bdca146f0 # v3.0.3

1
.github/workflows/guard-dependencies.yml

@ -15,6 +15,7 @@ permissions:
jobs:
check-author:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check if author is org member or allowed bot
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0

1
.github/workflows/issue-manager.yml

@ -23,6 +23,7 @@ jobs:
permissions:
issues: write
pull-requests: write
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:

1
.github/workflows/label-approved.yml

@ -13,6 +13,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
timeout-minutes: 7
steps:
- name: Dump GitHub context
env:

2
.github/workflows/labeler.yml

@ -17,6 +17,7 @@ jobs:
contents: read
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213 # v6.1.0
if: ${{ github.event.action != 'labeled' && github.event.action != 'unlabeled' }}
@ -28,6 +29,7 @@ jobs:
permissions:
pull-requests: read
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: agilepathway/label-checker@c3d16ad512e7cea5961df85ff2486bb774caf3c5 # v1.6.65
with:

1
.github/workflows/latest-changes.yml

@ -22,6 +22,7 @@ jobs:
latest-changes:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:

1
.github/workflows/notify-translations.yml

@ -24,6 +24,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
discussions: write
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:

2
.github/workflows/pre-commit.yml

@ -15,6 +15,7 @@ env:
jobs:
pre-commit:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:
@ -86,6 +87,7 @@ jobs:
needs:
- pre-commit
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:

1
.github/workflows/publish.yml

@ -13,6 +13,7 @@ jobs:
permissions:
id-token: write
contents: read
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:

1
.github/workflows/smokeshow.yml

@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
statuses: write
timeout-minutes: 5
steps:
- name: Dump GitHub context

1
.github/workflows/sponsors.yml

@ -18,6 +18,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:

2
.github/workflows/test-redistribute.yml

@ -14,6 +14,7 @@ permissions: {}
jobs:
test-redistribute:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:
@ -57,6 +58,7 @@ jobs:
needs:
- test-redistribute
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2

5
.github/workflows/test.yml

@ -25,6 +25,7 @@ jobs:
permissions:
pull-requests: read
# Set job outputs to values from filter step
timeout-minutes: 5
outputs:
src: ${{ steps.filter.outputs.src }}
steps:
@ -50,6 +51,7 @@ jobs:
needs:
- changes
if: needs.changes.outputs.src == 'true' || github.ref == 'refs/heads/master'
timeout-minutes: 10
strategy:
matrix:
os: [ windows-latest, macos-latest ]
@ -154,6 +156,7 @@ jobs:
- changes
if: needs.changes.outputs.src == 'true' || github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
timeout-minutes: 5
env:
UV_PYTHON: "3.13"
UV_RESOLUTION: highest
@ -191,6 +194,7 @@ jobs:
needs:
- test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:
@ -238,6 +242,7 @@ jobs:
- coverage-combine
- benchmark
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:

1
.github/workflows/topic-repos.yml

@ -13,6 +13,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:

1
.github/workflows/zizmor.yml

@ -12,6 +12,7 @@ jobs:
zizmor:
name: Run zizmor
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
timeout-minutes: 5

Loading…
Cancel
Save