Skip to content

ci(release): cancel only builds on a newer push, never a publish in progress - #1138

Merged
NorthernMan54 merged 1 commit into
beta-2.3.1from
ci/release-concurrency-per-job
Nov 20, 2026
Merged

NorthernMan54 merged 1 commit into
beta-2.3.1from
ci/release-concurrency-per-job

Conversation

@NorthernMan54

Copy link
Copy Markdown
Contributor

Release used workflow-level concurrency with cancel-in-progress: true. When another commit landed on a beta branch, for example a dependency bot PR merging, the running Release was cancelled, including a publish that had already started.

Change

  • The workflow-level concurrency block is removed.
  • build_and_test_beta: group Release-build-<ref>, cancel-in-progress: true. A newer push cancels the older build, so only the newest commit is published.
  • publish: group Release-publish-<ref>, cancel-in-progress: false. A publish that has started is never cancelled; a newer run waits for it.

This is the same pattern as homebridge/homebridge-config-ui-x#3128, which has been running there since 2026-11-17. It's a prerequisite for the dependency bot on HAP-NodeJS beta.

It targets beta-2.3.1 because push-triggered runs use the workflow file on the pushed branch. It reaches latest with the next release. Merging this publishes a beta.

Note: re-running an older Release run on the branch cancels a newer run's build (same group), so re-run only the newest.

🤖 Generated with Claude Code

…rogress

Workflow-level concurrency with cancel-in-progress cancelled a running publish when another commit landed on the branch (e.g. a bot PR merging). Builds now cancel per branch, and publish runs one at a time per branch without being cancelled, as in homebridge/homebridge-config-ui-x#3128.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the beta This is in some form related to the current beta release label Nov 20, 2026
@NorthernMan54
NorthernMan54 marked this pull request as ready for review November 20, 2026 16:34
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 44774609297

Warning

No base build found for commit 5debb7b on beta-2.3.1.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 88.046%

Details

  • Patch coverage: No coverable lines changed in this PR.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 9362
Covered Lines: 8193
Line Coverage: 87.51%
Relevant Branches: 1471
Covered Branches: 1345
Branch Coverage: 91.43%
Branches in Coverage %: Yes
Coverage Strength: 2425.11 hits per line

💛 - Coveralls

@NorthernMan54
NorthernMan54 merged commit 965c3ee into beta-2.3.1 Nov 20, 2026
15 checks passed
@NorthernMan54
NorthernMan54 deleted the ci/release-concurrency-per-job branch November 20, 2026 16:40
NorthernMan54 added a commit to homebridge/homebridge that referenced this pull request Nov 20, 2026
…rogress (#4051)

Workflow-level concurrency with cancel-in-progress cancelled a running publish when another commit landed on the branch (e.g. a bot PR merging). Builds now cancel per branch, and publish runs one at a time per branch without being cancelled, as in homebridge/homebridge-config-ui-x#3128 and homebridge/hap-nodejs#1138.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
bwp91 pushed a commit to homebridge/homebridge that referenced this pull request Nov 21, 2026
…rogress (#4051)

Workflow-level concurrency with cancel-in-progress cancelled a running publish when another commit landed on the branch (e.g. a bot PR merging). Builds now cancel per branch, and publish runs one at a time per branch without being cancelled, as in homebridge/homebridge-config-ui-x#3128 and homebridge/hap-nodejs#1138.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta This is in some form related to the current beta release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants