Skip to content

ci: add an ok aggregator as the single required status check - #27

Merged
CameronBrooks11 merged 1 commit into
mainfrom
ci/ok-aggregator
Sep 7, 2026
Merged

ci: add an ok aggregator as the single required status check#27
CameronBrooks11 merged 1 commit into
mainfrom
ci/ok-aggregator

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Brings this repo in line with the org's CI shape: one ok job that every other job feeds, so branch protection requires a single stable context and CI can evolve without touching repository settings.

It requires success rather than testing for failure. The usual spelling is contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') — which does not match 'skipped'. An if: false on a real job therefore produces a fully green pull request with nothing checked. That was measured in a sibling repo, not reasoned about.

The tolerant form is correct where a workflow uses path filtering and jobs skip legitimately on docs-only changes. This workflow has no path filtering, so a skipped job here is always a defect, and the strict form is the right one.

Branch protection should require one stable context, not a list of job
names that changes whenever CI does. Every new job goes in `needs:`
here instead of in repository settings.

It requires SUCCESS rather than testing for failure.
`contains(needs.*.result, 'failure')` does not match 'skipped', so an
`if: false` on a real job yields a fully green pull request with
nothing checked -- measured in a sibling repo, where it produced exactly
that. This workflow has no path filtering, so nothing here skips
legitimately; a repo that does filter needs the tolerant form instead.
@CameronBrooks11
CameronBrooks11 merged commit 818b714 into main Sep 7, 2026
7 checks passed
@CameronBrooks11
CameronBrooks11 deleted the ci/ok-aggregator branch September 7, 2026 01:48
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