From 231185e67357a78223ad4351e61ede0d8477b5f3 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Tue, 28 Oct 2025 18:37:15 +0000 Subject: [PATCH] Add timeouts to our GitHub actions. (#4669) 6 hours is way too long and eats up the runners. --- .github/workflows/accessibility_tests.yml | 1 + .github/workflows/automatic-calendar-version.yml | 2 ++ .github/workflows/compound-ios.yml | 1 + .github/workflows/danger.yml | 1 + .github/workflows/integration-tests.yml | 1 + .github/workflows/translations-pr.yml | 2 ++ .github/workflows/ui_tests.yml | 1 + .github/workflows/unit_tests.yml | 1 + .github/workflows/unit_tests_enterprise.yml | 1 + 9 files changed, 11 insertions(+) diff --git a/.github/workflows/accessibility_tests.yml b/.github/workflows/accessibility_tests.yml index 6e0950ea8..668bd0e4f 100644 --- a/.github/workflows/accessibility_tests.yml +++ b/.github/workflows/accessibility_tests.yml @@ -10,6 +10,7 @@ jobs: tests: name: Tests runs-on: macos-15 + timeout-minutes: 120 concurrency: # Only allow a single run of this workflow on each branch, automatically cancelling older runs. diff --git a/.github/workflows/automatic-calendar-version.yml b/.github/workflows/automatic-calendar-version.yml index 9e6bceeeb..762adc425 100644 --- a/.github/workflows/automatic-calendar-version.yml +++ b/.github/workflows/automatic-calendar-version.yml @@ -12,6 +12,8 @@ on: jobs: automatic-calendar-version: runs-on: macos-15 + timeout-minutes: 15 + # Skip in forks if: github.repository == 'element-hq/element-x-ios' steps: diff --git a/.github/workflows/compound-ios.yml b/.github/workflows/compound-ios.yml index ac6a50378..b5f0ee886 100644 --- a/.github/workflows/compound-ios.yml +++ b/.github/workflows/compound-ios.yml @@ -15,6 +15,7 @@ jobs: tests: runs-on: macos-15 + timeout-minutes: 15 concurrency: # When running on develop, use the sha to allow all runs of this workflow to run concurrently. diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index 114c37f6d..ed0da079b 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -8,6 +8,7 @@ jobs: build: name: Danger runs-on: macos-15 + timeout-minutes: 15 concurrency: # Only allow a single run of this workflow on each branch, automatically cancelling older runs. diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 54d7abbf1..2a2436f1f 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -10,6 +10,7 @@ jobs: integration_tests: name: Integration Tests runs-on: macos-15 + timeout-minutes: 45 concurrency: # Only allow a single run of this workflow on each branch, automatically cancelling older runs. diff --git a/.github/workflows/translations-pr.yml b/.github/workflows/translations-pr.yml index 63ce7a629..d7f9a421e 100644 --- a/.github/workflows/translations-pr.yml +++ b/.github/workflows/translations-pr.yml @@ -8,6 +8,8 @@ on: jobs: open-translations-pr: runs-on: macos-15 + timeout-minutes: 15 + # Skip in forks if: github.repository == 'element-hq/element-x-ios' steps: diff --git a/.github/workflows/ui_tests.yml b/.github/workflows/ui_tests.yml index 0a47a9a1e..4b8154e8e 100644 --- a/.github/workflows/ui_tests.yml +++ b/.github/workflows/ui_tests.yml @@ -14,6 +14,7 @@ jobs: tests: name: Tests runs-on: macos-15 + timeout-minutes: 90 strategy: fail-fast: false matrix: diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index e7822661b..4eb5a42f4 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -12,6 +12,7 @@ jobs: tests: name: Tests runs-on: macos-15 + timeout-minutes: 60 concurrency: # Only allow a single run of this workflow on each branch, automatically cancelling older runs. diff --git a/.github/workflows/unit_tests_enterprise.yml b/.github/workflows/unit_tests_enterprise.yml index c85640808..f7ea789ab 100644 --- a/.github/workflows/unit_tests_enterprise.yml +++ b/.github/workflows/unit_tests_enterprise.yml @@ -12,6 +12,7 @@ jobs: tests: name: Tests (Enterprise) runs-on: macos-15 + timeout-minutes: 45 # Skip in forks if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}