From 2bb21eaf83bc7c391324b548250dbdd8adaedba9 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Mon, 6 Jan 2025 21:15:19 +0100 Subject: [PATCH] CI: Add timeouts --- .github/workflows/build_offline_docs.yml | 1 + .github/workflows/cherrypick.yml | 1 + .github/workflows/ci.yml | 1 + .github/workflows/sync_class_ref.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/build_offline_docs.yml b/.github/workflows/build_offline_docs.yml index 390df8ecd..e1d6a289e 100644 --- a/.github/workflows/build_offline_docs.yml +++ b/.github/workflows/build_offline_docs.yml @@ -12,6 +12,7 @@ jobs: # Manual runs can still be triggered as normal. if: ${{ github.repository_owner == 'godotengine' || github.event_name != 'schedule' || vars.CI_OFFLINE_DOCS_CRON == 'true' }} runs-on: ubuntu-24.04 + timeout-minutes: 180 strategy: matrix: branch: diff --git a/.github/workflows/cherrypick.yml b/.github/workflows/cherrypick.yml index 72d0bdbfd..0be1fc399 100644 --- a/.github/workflows/cherrypick.yml +++ b/.github/workflows/cherrypick.yml @@ -19,6 +19,7 @@ jobs: # The cherrypick label is hardcoded because `contains()` doesn't seem to be able to use an environment variable as a second argument. if: ${{ github.event.pull_request.merged == true && contains( github.event.pull_request.labels.*.name, 'cherrypick:4.3' ) }} runs-on: ubuntu-24.04 + timeout-minutes: 10 env: # "Ternary" hack featured in the official docs. # When using "Squash and merge", the commit hash is the last merge commit of the pull request merge branch. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abc27413d..e7413f86d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ concurrency: jobs: build: runs-on: ubuntu-24.04 + timeout-minutes: 120 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/sync_class_ref.yml b/.github/workflows/sync_class_ref.yml index 22db8a1ae..a210f6f2b 100644 --- a/.github/workflows/sync_class_ref.yml +++ b/.github/workflows/sync_class_ref.yml @@ -21,6 +21,7 @@ jobs: if: ${{ github.repository_owner == 'godotengine' || github.event_name != 'schedule' || vars.CI_SYNC_CLASS_REF_CRON == 'true' }} name: Update class reference files based on the engine revision runs-on: ubuntu-24.04 + timeout-minutes: 10 env: engine_rev: 'master' permissions: