From e8cf1bac14f69083cdcd039a0100f58ca4160570 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Wed, 18 Nov 2026 21:07:01 -0500 Subject: [PATCH] ci: limit job run time with timeout-minutes Without it a hung job runs until GitHub's 6 hour default. GitHub has no run history for this repo to measure, so every job gets the 15 minute minimum used by the sibling crates with the same workflows, whose jobs all finish in under 2 minutes. ci.yml test, test-msrv, coverage, ci-passed, release-plz: 15 min dependabot.yml dependabot: 15 min Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 5 +++++ .github/workflows/dependabot.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed92595..98b44db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,7 @@ jobs: test: name: Test runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: actions/checkout@v7 - if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' @@ -30,6 +31,7 @@ jobs: test-msrv: name: Test MSRV runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: actions/checkout@v7 - if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' @@ -52,6 +54,7 @@ jobs: name: Code Coverage if: github.event_name != 'release' runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: actions/checkout@v7 - uses: Swatinem/rust-cache@v2 @@ -70,6 +73,7 @@ jobs: needs: [ test, test-msrv ] if: always() runs-on: ubuntu-latest + timeout-minutes: 15 steps: - name: Result of the needed steps run: echo "${{ toJSON(needs) }}" @@ -86,6 +90,7 @@ jobs: && github.ref == 'refs/heads/main' && github.repository_owner == 'georust' runs-on: ubuntu-latest + timeout-minutes: 15 permissions: contents: write id-token: write diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index b618dd0..bc53307 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -4,6 +4,7 @@ on: pull_request jobs: dependabot: runs-on: ubuntu-latest + timeout-minutes: 15 if: github.actor == 'dependabot[bot]' permissions: contents: write