Skip to content

GHA CI: restrict test-build push trigger to master#376

Merged
zeha merged 2 commits intomasterfrom
zeha/ci
Apr 30, 2026
Merged

GHA CI: restrict test-build push trigger to master#376
zeha merged 2 commits intomasterfrom
zeha/ci

Conversation

@zeha
Copy link
Copy Markdown
Member

@zeha zeha commented Apr 30, 2026

Avoid GitHub actions auto-cancellations, hopefully. Which GitHub now treats as errors, at least in the per-commit view.

Claude explanation which is partially wrong:

Pushes to PR-ed branches were triggering test-build twice: once via the push event and once via the matching pull_request event.
The duplicate matrix run wasted ~20-35 minutes per push, and the concurrency cancel-in-progress occasionally cancelled one of the two, surfacing the PR as a red cross on the commit.
Restrict push to master only; PR development still gets one full run via the pull_request trigger, master keeps push-tested post-merge, and the weekly schedule is unchanged.

Pushes to PR-ed branches were triggering test-build twice: once via the
push event and once via the matching pull_request event. The duplicate
matrix run wasted ~20-35 minutes per push, and the concurrency
cancel-in-progress occasionally cancelled one of the two, surfacing the
PR as a red cross on the commit.

Restrict push to master only; PR development still gets one full run via
the pull_request trigger, master keeps push-tested post-merge, and the
weekly schedule is unchanged.
@zeha zeha requested a review from mika April 30, 2026 09:32
@zeha zeha self-assigned this Apr 30, 2026
@zeha zeha removed the request for review from mika April 30, 2026 09:35
The concurrency.group + cancel-in-progress combination was sporadically
cancelling package-build runs in the first ~2 seconds, before any job
started, even with no second event firing. The build itself is short
(~40s) and idempotent, so superseding an in-progress run buys nothing
worth a cancelled status on the commit.

Match pr-review.yml, which has no concurrency block and is never
spuriously cancelled. test-build keeps its concurrency block because it
runs long enough that supersession on new commits actually matters.
@github-actions
Copy link
Copy Markdown

📦 Built packages are ready! Download here.

@zeha zeha requested review from jkirk and mika April 30, 2026 10:34
@zeha zeha merged commit b1fe748 into master Apr 30, 2026
22 checks passed
@zeha zeha deleted the zeha/ci branch April 30, 2026 14:25
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.

3 participants