Skip to content

ci: cap job runtime, cancel superseded runs, trim redundant triggers - #8

Merged
simonvanlierde merged 1 commit into
mainfrom
ci/actions-hygiene
Sep 3, 2026
Merged

ci: cap job runtime, cancel superseded runs, trim redundant triggers#8
simonvanlierde merged 1 commit into
mainfrom
ci/actions-hygiene

Conversation

@simonvanlierde

Copy link
Copy Markdown
Owner

Three Actions-hygiene changes, from an audit of 90 days of run history across
every repo.

  • Cap every job with timeout-minutes. A hung job otherwise runs to the
    6-hour default — more minutes than the whole account spends in a quarter.
  • Cancel superseded runs. A concurrency group per workflow and ref, so a
    second push to a branch stops the first run instead of racing it.
  • Drop the redundant push: [main] trigger. main only advances through a
    PR, so the push run re-ran the check that had just passed on the PR head.
    workflow_dispatch stays for a run by hand.

- **Cap every job with `timeout-minutes`.** A hung job otherwise runs to the
  6-hour default — more minutes than the whole account spends in a quarter.
- **Cancel superseded runs.** A `concurrency` group per workflow and ref, so a
  second push to a branch stops the first run instead of racing it.
- **Drop the redundant `push: [main]` trigger.** `main` only advances through a
  PR, so the push run re-ran the check that had just passed on the PR head.
  `workflow_dispatch` stays for a run by hand.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@simonvanlierde
simonvanlierde merged commit d8e1a6b into main Sep 3, 2026
4 checks passed
@simonvanlierde
simonvanlierde deleted the ci/actions-hygiene branch September 3, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants