From a8827e40fde1bbdaf76f1ded1d517bfc58856a86 Mon Sep 17 00:00:00 2001 From: Simon Massey <322608+simbo1905@users.noreply.github.com> Date: Sat, 21 Nov 2026 15:19:43 +0000 Subject: [PATCH 1/3] Issue #172: add timeout-minutes to every job that lacks one Jobs without timeout-minutes default to the GitHub 6-hour limit, so a hung run keeps billing for hours. Add explicit per-job timeouts sized to the work (10-30 minutes); jobs that already set one are untouched. Covers all 9 jobs across the 6 workflow files; neither of the two push-triggered CI workflows nor the tag-release workflow had any. Verify: git show --stat HEAD; python3 -c import yaml (each file parses). --- .github/workflows/api-tracker-java25.yml | 1 + .github/workflows/ci.yml | 2 ++ .github/workflows/daily-api-tracker.yml | 1 + .github/workflows/maven.yml | 3 +++ .github/workflows/release-on-tag.yml | 2 ++ .github/workflows/secrets-self-check.yml | 1 + 6 files changed, 10 insertions(+) diff --git a/.github/workflows/api-tracker-java25.yml b/.github/workflows/api-tracker-java25.yml index 72610f46..49aa5ad5 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: 30 steps: - name: Checkout repository diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52d00aff..4df60184 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,7 @@ on: jobs: build: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - name: Checkout uses: actions/checkout@v4 @@ -50,6 +51,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..40941bed 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: 30 steps: - name: Checkout repository diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0b21345a..d2e94b08 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -11,6 +11,7 @@ jobs: test-java21: name: Test Core Library (Java 21) runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: actions/checkout@v4 @@ -34,6 +35,7 @@ jobs: test-java25: name: Test with Tooling (Java 25) runs-on: ubuntu-latest + timeout-minutes: 20 steps: - uses: actions/checkout@v4 @@ -57,6 +59,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..3385f630 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: 30 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: 20 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: From e2f1c135f8353ad5c37d03745f539b2ad226dc62 Mon Sep 17 00:00:00 2001 From: Simon Massey <322608+simbo1905@users.noreply.github.com> Date: Sat, 21 Nov 2026 15:20:30 +0000 Subject: [PATCH 2/3] Issue #173: cancel superseded runs via concurrency on push-triggered workflows Add concurrency group ${{ github.workflow }}-${{ github.ref }} with cancel-in-progress: true to ci.yml and maven.yml, the two push-triggered workflows that lacked it, so a superseded push stops the previous run instead of billing two parallel runs. release-on-tag.yml already sets a deploy-semantics concurrency (group: release-${{ github.ref }}, cancel-in-progress: false); it is push-triggered (tags) but is left untouched so a release publish is never cancelled mid-publish. Verify: git show HEAD; python3 -c import yaml (both files parse). --- .github/workflows/ci.yml | 4 ++++ .github/workflows/maven.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4df60184..b59d706f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,10 @@ on: pull_request: branches: ["**"] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d2e94b08..e58faaf1 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -7,6 +7,10 @@ on: 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) From 7b2657e891452dd3069ec717c49f6c734c370098 Mon Sep 17 00:00:00 2001 From: Simon Massey <322608+simbo1905@users.noreply.github.com> Date: Sat, 21 Nov 2026 15:20:38 +0000 Subject: [PATCH 3/3] Issue #174: skip docs-only pushes with paths-ignore on release-on-tag Add paths-ignore (docs/**, **/*.md) to the push trigger of release-on-tag.yml so docs-only pushes do not start the tag workflow. Scope per the issue's constraints: the other two push-triggered workflows, ci.yml and maven.yml, are excluded because they produce the required status checks (build; Test Core Library (Java 21); Test with Tooling (Java 25); Build Docker image (Java 25)) and skipping them on docs-only pushes would leave those checks waiting. No workflow in this repo uses paths:, and none had existing paths-ignore to merge, so only release-on-tag.yml qualifies. Branch protection on main is not enabled (gh api returns 404), so the required checks are inferred from the PR check rollup. Verify: git show HEAD; python3 -c import yaml (file parses). --- .github/workflows/release-on-tag.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-on-tag.yml b/.github/workflows/release-on-tag.yml index 3385f630..bde4740e 100644 --- a/.github/workflows/release-on-tag.yml +++ b/.github/workflows/release-on-tag.yml @@ -4,6 +4,9 @@ on: push: tags: - 'release/[0-9]*.[0-9]*.[0-9]*' + paths-ignore: + - 'docs/**' + - '**/*.md' permissions: contents: write