Files
orangecat/scripts/ci
67b6bcded2 fix(ci): re-run cancelled checks instead of stranding the PR forever (#614)
A CANCELLED check is not a verdict, it is noise. CI runs with
`concurrency: cancel-in-progress`, so a newer run on the same ref kills an
older one — and nothing ever re-runs it. The PR is then permanently
not-green, the sweep skips it on every pass, and it sits in the queue
until a human notices. #603 and #604 stranded exactly this way and had to
be re-run by hand.

Now a PR whose only non-green checks are cancelled gets those runs
re-triggered, and a later sweep judges the real result.

Deliberately narrow: if any check is a genuine FAILURE/TIMED_OUT/ERROR the
retry is skipped entirely, so this can never paper over a real failure or
loop on one. Verified against fixtures for cancelled-only, cancelled plus
a real failure, and a failing external status (Snyk-style) — only the
first retries.

Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-04 15:32:46 +00:00
..