You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(gate): don't fail CI passed in cancelled runs #70
When a newer run of a workflow cancels one in progress (concurrency with cancel-in-progress, e.g. after a push, marking a PR ready or editing its description), the gate job of the cancelled run still runs (if: always()) and reports CI passed as failed. A PR whose newest run on its head ends this way can't be merged ("the base branch policy prohibits the merge"), although the other runs on the same commit are green; it stays blocked until that run is rerun. This blocked cloud-registry-ui#242 for a night and made scripts that wait for the gate stop on false failures.
What?
The gate reports nothing, or doesn't run, in a run that was cancelled, so that only the superseding run's gate counts; e.g. if: ${{ !cancelled() }} in the callers, or the gate action exits without a result when the run is cancelled.
A needed job that was cancelled while the run itself continues still fails the gate.
Roll the change out to all repos that use the gate (callers' ci.yml), and document it in the action's README.
Acceptance criteria
A run cancelled by a newer one leaves no failed CI passed on the commit.
A cancelled or failed needed job in a run that completes still fails CI passed.
Activity