Skip to content

CI cost controls: timeouts, concurrency cancellation, docs-only push skip - #206

Merged
simbo1905 merged 3 commits into
mainfrom
ci-cost-controls
Nov 21, 2026
Merged

simbo1905 merged 3 commits into
mainfrom
ci-cost-controls

Conversation

@simbo1905

Copy link
Copy Markdown
Owner

Closes #172
Closes #173
Closes #174

What

CI cost controls, one commit per issue:

Note

CI claimed the issue file counts loosely (#172: 3 vs actual 6; #174: 3 vs actual 1 applicable) — the audit table in each issue-referencing commit body records the facts.

Verify

YAML parse-validated locally; real validation is this PR's CI run.

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).
…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).
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).
@simbo1905
simbo1905 merged commit 8a6efc5 into main Nov 21, 2026
7 checks passed
@simbo1905
simbo1905 deleted the ci-cost-controls branch November 21, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant