Skip to content

ci: keep release-gate job green and fix skipped-check aggregation - #511

Merged
imantsk merged 1 commit into
corefrom
ci/release-checklist/core
Sep 1, 2026
Merged

ci: keep release-gate job green and fix skipped-check aggregation#511
imantsk merged 1 commit into
corefrom
ci/release-checklist/core

Conversation

@imantsk

@imantsk imantsk commented Sep 1, 2026

Copy link
Copy Markdown
Member

Follow-up to #510. Two corrections to the Release Checklist gate.

Job exit code (reverts #510's exit-1 change). The release-gate job only posts the Release Checklist commit status — the verdict belongs in that status, not in the job's exit code. Exiting non-zero on a failure verdict turned the reporter workflows (lint/phpunit/playwright/merge-gate) red and duplicated the one meaningful status. The failure branches exit 0 again; the job is green whenever it evaluated and posted. Branch protection should require the Release Checklist status as the gate.

Check aggregation (real bug). A summary check can appear more than once on a head SHA — a skipped run from one event plus the real run from another. The old last aggregation could pick the skipped duplicate and report a green release as failing (seen on a recent release run: PHPUnit/Playwright summaries were success but a skipped twin shadowed them → false "CI not passing"). state_of now prefers the latest non-skipped run per check name, falling back to skipped only when that is all there is.

The release-gate job only posts the Release Checklist commit status; the
verdict belongs in that status, not the job's exit code. Exiting non-zero on a
failure verdict turned the reporter workflows red and duplicated the status, so
the failure branches now exit 0 again. Branch protection should require the
Release Checklist status.

A summary check can appear more than once on a head SHA (a skipped run from one
event plus the real run from another); the old 'last' aggregation could pick the
skipped duplicate and report a passing release as failing. state_of now prefers
the latest non-skipped run per check name.
@imantsk
imantsk merged commit 0436724 into core Sep 1, 2026
9 checks passed
@imantsk
imantsk deleted the ci/release-checklist/core branch September 1, 2026 12:35
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