fix(ci): let a push to main finish its Lint and Build runs #17

Merged
Defame1297 merged 4 commits from fix/ci-concurrency-main-runs into main 2026-10-25 20:32:08 +00:00
Owner

What changed (head 39fd0c3)

lint.yml and build.yml concurrency: the group is <name>-<ref> for pull_request and <name>-<sha> otherwise; cancel-in-progress only for pull_request. A later merge to main no longer cancels an earlier main run; PR runs still cancel their predecessors.

  • build.yml has a v* tag trigger, so its group keeps a tag branch (<name>-<tag ref>): a tag run has its own group and never shares one with the main run of the same commit.
  • lint.yml has no tag trigger, so the dead ref_type == 'tag' branch is removed from its group (lint-<ref> for PRs, lint-<sha> otherwise) and its comment says so.
    Comments and the trivial changelog fragment are updated to match.

Verified

  • actionlint (with .gitea/actionlint.yaml) clean on both files via the pre-commit hook; all commit hooks passed.
  • CI at this head: Lint and Build (including ansible-test sanity) green.

Not verified

Gitea's actual handling of the expression-valued cancel-in-progress and of the group across two consecutive main pushes (needs two real pushes to main). The tag group of build.yml was not exercised by a real tag.

Merge order

lint.yml is also edited by #16 (different hunks, should merge cleanly). Independent otherwise.

🤖 Generated with Claude Code

## What changed (head 39fd0c3) lint.yml and build.yml concurrency: the group is `<name>-<ref>` for pull_request and `<name>-<sha>` otherwise; `cancel-in-progress` only for pull_request. A later merge to main no longer cancels an earlier main run; PR runs still cancel their predecessors. - build.yml has a `v*` tag trigger, so its group keeps a tag branch (`<name>-<tag ref>`): a tag run has its own group and never shares one with the main run of the same commit. - lint.yml has no tag trigger, so the dead `ref_type == 'tag'` branch is removed from its group (`lint-<ref>` for PRs, `lint-<sha>` otherwise) and its comment says so. Comments and the trivial changelog fragment are updated to match. ## Verified - actionlint (with .gitea/actionlint.yaml) clean on both files via the pre-commit hook; all commit hooks passed. - CI at this head: Lint and Build (including `ansible-test sanity`) green. ## Not verified Gitea's actual handling of the expression-valued `cancel-in-progress` and of the group across two consecutive main pushes (needs two real pushes to main). The tag group of build.yml was not exercised by a real tag. ## Merge order lint.yml is also edited by #16 (different hunks, should merge cleanly). Independent otherwise. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 1 commit 2026-10-25 18:23:12 +00:00
fix(ci): let a push to main finish its Lint and Build runs
Lint / lint (pull_request) Successful in 6s
Build / build (pull_request) Successful in 8s
705b370e23
The concurrency group was the ref, so a second merge to main cancelled the run of
the first. Key the group on the sha outside pull requests and cancel only on
pull_request.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 added 1 commit 2026-10-25 18:53:43 +00:00
fix(ci): give tag runs their own concurrency group
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 6s
3b19cfd65e
A tag run and the main run of the same commit shared the group keyed by the commit
SHA, so one could wait on the other. Tag runs are now keyed by their ref.
Cancellation stays limited to pull requests.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 added 1 commit 2026-10-25 19:19:35 +00:00
fix(ci): drop the dead tag branch from the Lint concurrency group
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 7s
39fd0c385a
lint.yml has no tag trigger, so the ref_type == 'tag' branch of its
concurrency group could never run. Keep it in build.yml, which has one,
and correct the comment and changelog fragment accordingly.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 added 1 commit 2026-10-25 20:29:32 +00:00
Merge branch 'main' into fix/ci-concurrency-main-runs
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 8s
f98cb1c6b0
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-10-25 20:32:07 +00:00
Defame1297 merged commit 483db4b4c2 into main 2026-10-25 20:32:08 +00:00
Defame1297 deleted branch fix/ci-concurrency-main-runs 2026-10-25 20:32:08 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#17