From d84cf8314bbaf89f3ca51ebaaaadf4093cef1f44 Mon Sep 17 00:00:00 2001 From: Simon Massey <322608+simbo1905@users.noreply.github.com> Date: Fri, 20 Nov 2026 13:00:07 +0000 Subject: [PATCH] ci: cancel superseded runs, add job timeouts, skip docs-only pushes - concurrency (cancel-in-progress) on the branch-push workflows ci.yml and maven.yml - timeout-minutes on every job in every workflow - paths-ignore for markdown/docs on the push trigger only; pull_request stays unfiltered --- .github/workflows/api-tracker-java25.yml | 1 + .github/workflows/ci.yml | 9 +++++++++ .github/workflows/daily-api-tracker.yml | 1 + .github/workflows/maven.yml | 10 ++++++++++ .github/workflows/release-on-tag.yml | 2 ++ .github/workflows/secrets-self-check.yml | 1 + 6 files changed, 24 insertions(+) diff --git a/.github/workflows/api-tracker-java25.yml b/.github/workflows/api-tracker-java25.yml index 72610f46..1933be35 100644 --- a/.github/workflows/api-tracker-java25.yml +++ b/.github/workflows/api-tracker-java25.yml @@ -10,6 +10,7 @@ permissions: jobs: track-api: runs-on: ubuntu-latest + timeout-minutes: 45 steps: - name: Checkout repository diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52d00aff..c817ea80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,12 +3,20 @@ name: CI on: push: branches: ["**"] + paths-ignore: + - '**/*.md' + - 'docs/**' pull_request: branches: ["**"] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - name: Checkout uses: actions/checkout@v4 @@ -50,6 +58,7 @@ jobs: docker-build: name: Build Docker image (Java 25) runs-on: ubuntu-latest + timeout-minutes: 20 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/daily-api-tracker.yml b/.github/workflows/daily-api-tracker.yml index f2b71d88..23caee16 100644 --- a/.github/workflows/daily-api-tracker.yml +++ b/.github/workflows/daily-api-tracker.yml @@ -13,6 +13,7 @@ permissions: jobs: track-api: runs-on: ubuntu-latest + timeout-minutes: 45 steps: - name: Checkout repository diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0b21345a..752cff27 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -3,14 +3,22 @@ name: Java CI with Maven on: push: branches: [ "main" ] + paths-ignore: + - '**/*.md' + - 'docs/**' pull_request: branches: [ "main" ] types: [opened, synchronize, reopened] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test-java21: name: Test Core Library (Java 21) runs-on: ubuntu-latest + timeout-minutes: 20 steps: - uses: actions/checkout@v4 @@ -34,6 +42,7 @@ jobs: test-java25: name: Test with Tooling (Java 25) runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v4 @@ -57,6 +66,7 @@ jobs: docker-build: name: Build Docker image (Java 25) runs-on: ubuntu-latest + timeout-minutes: 20 needs: test-java25 steps: diff --git a/.github/workflows/release-on-tag.yml b/.github/workflows/release-on-tag.yml index 60d9e949..a0729b00 100644 --- a/.github/workflows/release-on-tag.yml +++ b/.github/workflows/release-on-tag.yml @@ -17,6 +17,7 @@ concurrency: jobs: release: runs-on: ubuntu-latest + timeout-minutes: 60 steps: - name: Checkout uses: actions/checkout@v4 @@ -127,6 +128,7 @@ jobs: docker-publish: name: Publish Docker image to GHCR runs-on: ubuntu-latest + timeout-minutes: 30 needs: release steps: - name: Checkout diff --git a/.github/workflows/secrets-self-check.yml b/.github/workflows/secrets-self-check.yml index e685ca6c..467173e8 100644 --- a/.github/workflows/secrets-self-check.yml +++ b/.github/workflows/secrets-self-check.yml @@ -6,6 +6,7 @@ on: jobs: check: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Print SHA256 of Central creds and GPG secrets env: