From 2b83e0e0f02c8904db48dec3f7fbc5021d61efbd Mon Sep 17 00:00:00 2001 From: Mrityunjay Raj Date: Fri, 13 Feb 2026 01:15:28 +0530 Subject: [PATCH] ci: add missing timeout-minutes to codeql, backport, and lint workflows ci.yml already has timeout-minutes on every job, but these three workflows had no timeout configured. Without an explicit timeout, GitHub Actions defaults to 6 hours, wasting CI minutes if a job gets stuck. Added timeouts consistent with ci.yml: - codeql-analysis.yml: 20 min (builds from source + analysis) - backport.yml: 5 min (simple checkout + PR creation) - black.yaml: 5 min (matches ci.yml ruff lint job) Fixes #9298 --- .github/workflows/backport.yml | 1 + .github/workflows/black.yaml | 1 + .github/workflows/codeql-analysis.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 3ea481631..87993b101 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -14,6 +14,7 @@ jobs: backport: name: Backport pull request runs-on: ubuntu-24.04 + timeout-minutes: 5 # Only run when pull request is merged # or when a comment starting with `/backport` is created by someone other than the diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml index da37981fe..73b7be3c1 100644 --- a/.github/workflows/black.yaml +++ b/.github/workflows/black.yaml @@ -8,6 +8,7 @@ on: [push, pull_request] jobs: lint: runs-on: ubuntu-22.04 + timeout-minutes: 5 steps: - uses: actions/checkout@v4 - uses: psf/black@stable diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b760d85fd..58feac757 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -15,6 +15,7 @@ jobs: analyze: name: Analyze runs-on: ubuntu-22.04 + timeout-minutes: 20 permissions: actions: read contents: read