ci: cap job runtime, cancel superseded runs, trim redundant triggers - #8
Merged
Conversation
- **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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three Actions-hygiene changes, from an audit of 90 days of run history across
every repo.
timeout-minutes. A hung job otherwise runs to the6-hour default — more minutes than the whole account spends in a quarter.
concurrencygroup per workflow and ref, so asecond push to a branch stops the first run instead of racing it.
push: [main]trigger.mainonly advances through aPR, so the push run re-ran the check that had just passed on the PR head.
workflow_dispatchstays for a run by hand.