Skip to content

fix(gate): don't fail CI passed in cancelled runs #70

Closed
2 of 2 issues completed
elixir-cloud-aai/demo-tes-hybrid-cloud
#9

Description

@uniqueg

Why?

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.
  • All repos using the gate are updated.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. self-assigned this
    on Nov 10, 2026
  2. added
    priority: high
    status: triage
    type: bug
    workload: hours
    status: in progress
    and removed
    status: triage
    on Nov 10, 2026
  3. removed
    status: in progress
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: hightype: bugworkload: hours

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions