Skip to content

Add CI gate check for conditional jobs#621

Merged
IEvangelist merged 1 commit intomainfrom
dapine/ci-gate-check
Mar 26, 2026
Merged

Add CI gate check for conditional jobs#621
IEvangelist merged 1 commit intomainfrom
dapine/ci-gate-check

Conversation

@IEvangelist
Copy link
Member

@IEvangelist IEvangelist commented Mar 26, 2026

Summary

  • add a single always-run ci-gate job to fan in conditional CI results
  • keep frontend-build, apphost-build, and integration-test conditional
  • make it possible to require one stable status check in GitHub rulesets

Why

Skipped jobs already complete successfully, but a single gate check makes branch protection configuration simpler and avoids requiring multiple conditional jobs directly.

After merging, update the repo ruleset to require ci-gate instead of the individual conditional checks.

Add an always-run ci-gate job that verifies conditional jobs either ran successfully or were intentionally skipped. This gives branch protection a single stable check to require while preserving the existing conditional workflow behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 26, 2026 22:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a single “fan-in” job (ci-gate) to provide one stable, always-created status check for GitHub rulesets/branch protection, while keeping the existing conditional jobs (frontend-build, apphost-build, integration-test) conditional.

Changes:

  • Introduce an always-run ci-gate job that depends on all conditional jobs.
  • Have ci-gate validate (via needs.*.result) that conditional jobs either succeeded when they should run, or were skipped when they should not run.
  • Enable requiring just ci-gate as the protected-branch status check instead of multiple conditional checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

exit 1
fi

if [[ "$FRONTEND_CHANGED" == "true" ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there not a more efficient way of structuring these?

@IEvangelist IEvangelist merged commit 0ad1224 into main Mar 26, 2026
10 checks passed
@IEvangelist IEvangelist deleted the dapine/ci-gate-check branch March 26, 2026 23:03
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