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(github): pr monitor judges each check by its latest run, so a cancelled run a newer one replaced does not fail the pr #1602
devops pr monitor reports a PR's checks as failed when an earlier run of a check was cancelled and a newer run of the same check passed, so the monitor exits 1 on a PR whose checks are all green, and the merge-readiness rule ("ready only when devops pr monitor exits 0") cannot be met.
Evidence
On PR #1599 (2026-10-16), pushing a commit started the Fail-to-Pass workflow, and editing the PR body a few seconds later started it again, cancelling the first runs (the workflow cancels in-progress runs on edited). The commit's check runs then held, per check name, a cancelled run started at 23:01:07Z and a successful run started at 23:01:38Z for both "Fail-to-Pass Check" and "Fail-to-Pass Self-Check". With every check's latest run successful, devops pr monitor 1599 printed "Fail-to-Pass ✗ CANCELLED" and "Fail-to-Pass Check ✗ CANCELLED", "Remote CI checks failed on PR #1599 (2 failing check(s))", and exited 1.
Remedy
Judge each check by its latest run for the head commit: group check runs by name (and workflow) and take the most recently started, so a run superseded by a newer one of the same check no longer counts. A cancelled run with no newer run of its check still fails. Test it with a fake check-runs listing holding a cancelled run and a later successful run of one check (monitor passes) and one holding only the cancelled run (monitor fails).
devops pr monitor failed PR #1599 although every check's latest run had passed. Editing the PR body re-triggered the Fail-to-Pass workflow, which cancels its in-progress run, so the head commit carried a cancelled run and a successful run of both "Fail-to-Pass Check" and "Fail-to-Pass Self-Check". The REST check-runs listing returns every check suite's runs, and filter=latest only collapses runs within a suite, so the monitor counted both cancellations and exited 1.
Activity
dan-petty commentedon Oct 16, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate describes a defect in the behavior of 'devops pr monitor'.The issue causes merge-readiness rules to fail incorrectly, blocking valid PRs from being merged.Fixing this improves CI reliability and prevents unnecessary merge delays for valid PRs.Requires modifying how check runs are evaluated and adding tests to verify the fix.fix(github): pr monitor judges each check by its latest run, so a can…
dan-petty commentedon Oct 17, 2026
What changed
#1605, merged into
release/v0.2.36as 559f6f0.3 file(s) changed.
How it was verified
Check runs at 1304059:
No task file.
feat(release): v0.2.36 (#1615)