Skip to content

Add a build (all) gate job as the single required check - #64

Closed
ppkarwasz wants to merge 1 commit into
mainfrom
build/build-all-gate
Closed

Add a build (all) gate job as the single required check#64
ppkarwasz wants to merge 1 commit into
mainfrom
build/build-all-gate

Conversation

@ppkarwasz

Copy link
Copy Markdown
Member

Adds a build (all) aggregate job on ubuntu-slim that needs: every build job and fails when any gating build failed, so branch protection can require this one stable check instead of one per matrix leg (14 today, renamed whenever the matrix changes).

Two GitHub Actions semantics drive the shape of the job:

  • A failed job with continue-on-error: true reports success to the needs context, so such legs are invisible to the gate and stay purely advisory (currently the GraalVM native leg and, until the Android suite fix lands, the Android legs).
  • Without if: always(), a failed leg would leave the gate skipped, and branch protection treats a skipped required check as satisfied; the gate therefore always runs and fails explicitly (cancelled included, so a half-cancelled run cannot green-light a merge).

After merging, mark build (all) as the required status check in the branch protection settings. If ubuntu-slim is not available for this repository, the fallback is a one-word change to ubuntu-latest.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MbfpcsKig16HfSe6jGhcvh

Aggregate every build job into one slim gate that fails when a gating
build failed, so branch protection can require a single stable check
and the matrix can change shape without touching the required-checks
list. A leg with continue-on-error reports success to needs and stays
advisory; without always() a failed leg would leave the gate skipped,
which branch protection treats as satisfied, so the gate runs always
and fails explicitly.

Assisted-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MbfpcsKig16HfSe6jGhcvh
@ppkarwasz
ppkarwasz marked this pull request as draft August 31, 2026 11:41
@ppkarwasz

Copy link
Copy Markdown
Member Author

Converting to draft, since this only makes sense if we require PRs too.

@ppkarwasz ppkarwasz closed this Sep 1, 2026
@ppkarwasz
ppkarwasz deleted the build/build-all-gate branch September 1, 2026 10:42
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.

1 participant