Repository navigation
ci: add job timeouts and cancel superseded CI runs - #2
Merged
Merged
Conversation
Every job gets timeout-minutes: 10; runs take under 30 s. CI runs on the same ref cancel the previous one. Release keeps no cancelling group, so a publish is never stopped halfway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
matej21
force-pushed
the
chore/ci-timeouts
branch
from
November 12, 2026 12:50
19cc3af to
c4343d3
Compare
Member
Author
|
Review round 1: Claude Sonnet (independent general-purpose agent), commit 78c6134. Verdict: approve. Finding (low): Checked and fine:
|
Member
Author
|
Response to review round 1
|
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.
Every workflow job now has a time limit, and a new CI run on a PR cancels the one it replaces.
Change
ci.ymlandrelease.yml:timeout-minutes: 10on each job. Without it, a hung job runs until the 6-hour GitHub default. The last 10 runs took 14–26 s.ci.yml:concurrencygroup${{ github.workflow }}-${{ github.ref }}withcancel-in-progresson for every ref exceptmain. A push to a PR branch cancels the CI run for the previous commit. Onmaina running CI run is never cancelled; the next push waits for it. GitHub keeps one pending run per group, so a third push in quick succession still replaces the waiting one.pushinci.ymlwas already limited tomain; unchanged.Not changed
release.ymlhas no cancelling group. Cancelling it could stopnpm publishhalfway, and each tag has its own ref, so a group keyed on the ref would never supersede anything.Checks
actionlinton both workflows: cleanStatus
approveon 78c6134; its low finding fixed in c4343d3🤖 Generated with Claude Code