Repository navigation
Description
Problem
pr-require-checks jobs are recorded as cancelled after every one of their steps, Complete job included, has succeeded. ci-status then fails with "A lane did not pass (result: cancelled)", and in the merge queue that can evict a PR that has nothing wrong with it.
Evidence
Measured 2026-11-02 over merge-group pr-require-checks runs created since 06:00Z. The success count is capped at the query's page size of 100, so the total is at least 148:
| Measure | Value |
|---|---|
| Successful runs | 100 or more |
| Failed runs | 21 |
| Cancelled runs | 27 |
| Failed or cancelled runs whose only non-passing jobs are these cancelled-after-success jobs | 27 of 48 |
| ... with a real job failure as well | 2 |
| ... with a real job failure only | 11 |
| ... unclassified (no failed or matching job, or unreadable) | 8 |
| Jobs in this state | 31 |
| Those jobs' total time | 181 to 650 s; 22 of 31 ran 300 s or longer |
The same state shows on pull_request runs: 19 jobs across the 48 failed or cancelled runs scanned.
The jobs most often hit are check-plugins, lint-repo, select-tests and test-python (0).
Two worked examples, both on #12509:
- Merge-group run 41529399052: every
select-testsstep, includingComplete job, finished by 21:33:53Z. The job was recordedcancelledat 21:39:58Z, 6 m 25 s after it started, withtimeout-minutes: 6(pr-require-checks.yml:881).ci-statusfailed at 21:40:27Z, and the PR was removed from the queue at 21:40:29Z with reasonfailed_checks. Re-enqueued unchanged. - Pull-request run 41523688577:
check-plugins(timeout-minutes: 6,pr-require-checks.yml:2274) in the same state;ci-statusreported "A lane did not pass (result: cancelled)".
Cause
UNVERIFIED. Two candidates, which the data above does not separate:
- The job's steps finished but the job never concluded on GitHub's side until its
timeout-minutesexpired. The select-tests example fits this, and so do the 22 jobs at 300 s or longer. - Some of these are ordinary run-level cancellations:
cancel-in-progress(pr-require-checks.yml:110), or a queue rebuild after a PR ahead was evicted. Those runs did not themselves evict anyone, so 27 of 48 is an upper bound on evictions from candidate 1.
Done when
- The two candidates are separated by measurement: for each such run, whether a job reached its
timeout-minutes, whether a newer run in the same concurrency group or a queue rebuild cancelled it, and how manyfailed_checksevictions each caused. - If candidate 1 is real:
ci-statusno longer fails a PR, or evicts it from the queue, for a job whose steps all succeeded (for example by re-reading the job's steps, or a single automatic re-run of the cancelled job), and a test covers it. If it is a GitHub platform fault, it is reported upstream with these run ids. - Evictions from this state are recorded as a metric, so a change can be compared against this baseline.
This was generated by AI.
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Activity
github-actions commentedon Nov 2, 2026
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Medium
Complexity: Medium
Uncertainty: Knowable
Flags: none
Blocked by: none
I read this as a defect.
pr-require-checksjobs whose steps all succeeded are recorded as cancelled,ci-statusfails on them, and the merge queue can evict a healthy PR. The done-when has three parts. First, separate the two candidate causes by measurement. Second, if the platform hang is real, stopci-statusfailing on such a job, and add a test. Third, record evictions from this state as a metric.#12506 looks closely related: it covers
lint-repohanging after its last step and being cancelled at the limit. It reads as one instance of this broader pattern, so I did not mark a duplicate. Maintainers may want to link or merge them.Automated triage, applied by the lanes App.
github-actions commentedon Nov 2, 2026
github-actions commentedon Nov 2, 2026
melodic-automation-lanes commentedon Nov 2, 2026
The work-resolve-issue lane stopped on this issue (
patch-protected-path): the change needs a path the issue lane may not push, which a maintainer session builds by hand.It added
host-runand removedagent-ready: an agent run on a host builds it, and it waits on no decision from a person.In the run's words:
What the run says it did not do:
Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41540461872
To hand it back to the lane, remove
host-runand addagent-readyagain.kyle-sexton commentedon Nov 3, 2026
Claimed by lane 1 (melo-lap-001), with duplicate #12506: no hub owner named and the issue lane stopped on patch-protected-path. Starting done-when 1 (separate the two candidate causes by measurement, read-only). The change follows the #12357 re-measure.
kyle-sexton commentedon Nov 3, 2026
Measured: candidate 1 is real, on GitHub's side. Lane 5 claims this issue with #9398.
Window: merge-group
pr-require-checksruns created after 2026-11-02 19:40Z, when the #12400 timeouts were live (113 runs: 93 success, 20 not).failed_checksfailed_checkstest-python (0)failure as wellfailed_checksfailed_checkstest-python (0)work overruns with tails of 3 to 50 s, so this is not a clean before/after of the tail alone.Cleaning up orphan processesat 21:33:53Z, afterComplete job. Nothing later runs in the repository's control.Decision (agent, on this evidence): raise the allowance instead of rewriting the result. Every job's timeout becomes its work budget plus 6 minutes, and each case is recorded as a
cancelled-after-successannotation.ci-statusdoes not treat these jobs as passed: whenselect-testsis cancelled, every lane skips (all of them in run 41529399052), so that rewrite would turn a run with no tests green. PR to follow.Reporting this upstream to GitHub stays the owner's call.
kyle-sexton commentedon Nov 3, 2026
Lane 1 measurement for done-when 1, read over REST on 2026-11-03. Runs created since 2026-11-02T06:00Z:
merge_group276 success, 28 failure, 27 cancelled, all 55 non-success runs read;pull_request439 success, 123 failure, 76 cancelled, the newest 95 of 199 non-success runs read.In the merge queue it is candidate 1. 31 jobs in 29 of the 55 runs are
cancelledwith every step finished.timeout-minutes: +1 s to +230 s, median +34 s.merge_grouprun's concurrency group is<workflow>-<run_id>(pr-require-checks.yml:101-110), unique per run, and in 27 of the 29 runs only one job was cancelled whileci-statusran on.select-testsComplete jobat 21:33:53Z, recordedcancelledat 21:39:58Z,ci-statusfailed at 21:40:27Z.lint-repo+28 s, +193 s and +123 s past 420 s.Cleaning up orphan processes, the same last line as a successful job, with no cancel or timeout message. So the logs do not say why GitHub left the job open. That cause is UNVERIFIED; no background process shows in the two logs read.check-plugins10,test-python (0)8,lint-repo6,test-node3,select-tests2,check-tests1,test-bash (6)1.On
pull_requestruns it is mostly candidate 2. 32 jobs in the sample, 28 ended before their limit, mostly within seconds of a newer run on the branch. That matters for the fix: a cancel landing between two steps leaves every stepsuccessorskippedtoo. Those runs'ci-statusis cancelled with them, so they never reach the check. A job limit landing between steps is the same shape, which is why the fix below also needs a gap.Baseline for done-when 3: 29 runs in the window with an in-state job; 27 of them with no other failing lane. Queue events were not read, so that is an upper bound on evictions from this state.
Fix (lane 1 branch
fix/12520-cancelled-after-success, PR next):ci-statusre-reads a cancelled lane's jobs and counts it as passed only when every step succeeded or skipped,Complete jobis last, and the job ended at least 10 s after it. A read failure leaves it cancelled. Each cancelled lane writes acancelled-after-successnotice withcounted-as-passed=true|false. Replayed over the saved runs: 27 of 31 jobs recover and 21 of 29 runs end with no red lane. The other 8 stay red: 2 real failures, 2select-testshangs whose dependents never ran, and 4 with a 3 to 5 s gap.kyle-sexton commentedon Nov 3, 2026
Correction to the fix in the comment above: the 10 s gap is dropped. Jobs cut off between steps showed gaps up to 33 s in the
pull_requestsample (for examplelint-repoin run 41506596939: 44 steps succeeded, 14 skipped, 9 s gap;select-testsin run 41533504188: 23 s), so a gap does not show the work ran.Each lane now ends in a
Lane finishedstep, which runs only when no earlier step failed or was cancelled, andci-statuscounts a cancelled lane as passed only when that step succeeded. Runs before this change have no such step, so the replay in the comment above no longer applies. From the saved runs I project 25 of 29 runs clearing, leaving the 2 real failures and the 2select-testshangs; UNVERIFIED until new runs show it.kyle-sexton commentedon Nov 3, 2026
Owner decided to report this to GitHub ("Go with recomended, whatever this recommends", lane 1 session, 2026-11-03 ~04:3xZ, relayed by Lane 1). It cannot be filed from a session: GitHub documents only the Support portal, which needs a browser sign-in. So the owner files it at https://support.github.com/ with the text below.
The figures are Lane 1's measurement above; I did not re-read run 41519495379 in this session.
kyle-sexton commentedon Nov 3, 2026
Re-measure after 82a1475 (budget + 6 min): merge_group runs created since 2026-11-03T02:26:11Z, read 14:4xZ. 147 runs, 116 success, 31 non-success. Jobs recorded cancelled after every step succeeded: 0 of 147 runs (0 per 100), against the 5.3 per 100 baseline. Of the 31 non-success runs, 14 have a real failing job and 17 have neither a failure nor a tail job (cancelled, e.g. queue rebuilds). Post-step tail on 2,593 successful jobs: median 2 s, p95 5 s, max 25 s (check-skills, run 41575626159). This issue stays open for the GitHub upstream report the owner files (draft text above).
kyle-sexton commentedon Nov 3, 2026
kyle-sexton commentedon Nov 3, 2026
Closed on the owner's decision (2026-11-03): no GitHub support report will be filed. The in-repo fix holds: after 82a1475, 0 of 147 merge_group runs had a job recorded cancelled after all its steps succeeded (lane 5 re-measure above), against a 5.3 per 100 baseline.