ci: the scheduled arm passes count two test legs, not three (they have armed nothing since #2477) #2539

Merged
jaylouisw merged 1 commit from ci/1124-0627 into main 2026-11-24 06:56:55 +00:00
Owner

What was broken

auto-rebase.yml and pr-rebase.yml decide "checks are green" with the same predicate: at least one status, nothing but success, and legs >= 3 where legs counts CI / Test (Node N) contexts. ci.yml's matrix narrowed to [22, 24] in #2477 (merged 2026-11-23T22:56:25Z), so no head has been able to satisfy it since. Both passes have exited 0 on every tick, printing "checks are not green yet", arming nothing and merging nothing - and because they exit 0, nothing ever went red about it.

Evidence

  • Fully green head, PR #2512 e2e2dca3: /commits/e2e2dca3/status returns state: success, 6 contexts, of which exactly 2 are test legs (CI / Test (Node 22), CI / Test (Node 24)). Run against that live set: old predicate -> exit 1, new -> exit 0.
  • auto-rebase: 37 runs since 22:56Z (task 26081 onwards), all success. Task 26896 (run 10307, 02:30:29Z) armed nothing on a green queue.
  • pr-rebase: 42 runs since 22:58Z (task 26092 onwards), all success. Task 26902 (run 10309, PR #2512, 02:31:25->02:31:37Z) armed nothing on a head whose checks were green at 02:32:24.
  • Last known-good baseline, 3-leg matrix: pr-rebase armed on green heads, e.g. task 25922 era.

The change

legs >= 3 -> legs >= 2 in both checks_green() functions - the floor ci.yml's own Arm auto-merge gate already uses (ci.yml refuses below 2). Comments in both files record why 2 and that the floor has to be lowered when the matrix narrows; main-health.yml's "three Node legs" note is corrected to two.

Coverage unchanged

Same reader, same exclusion of the pass's own status, same "at least one status", same "nothing but success", same single merge POST. The floor stays a floor: one leg, a red, or a pending status still refuses. Fixtures: 2 legs green -> 0; 1 leg -> 1; red leg -> 1; pending -> 1; empty -> 1.

After: the first auto-rebase tick after this merges is the measurement - a green pull request must be armed or merged from that tick, which has not happened once since 22:56Z.

## What was broken `auto-rebase.yml` and `pr-rebase.yml` decide "checks are green" with the same predicate: at least one status, nothing but `success`, and `legs >= 3` where `legs` counts `CI / Test (Node N)` contexts. ci.yml's matrix narrowed to `[22, 24]` in #2477 (merged 2026-11-23T22:56:25Z), so **no head has been able to satisfy it since**. Both passes have exited 0 on every tick, printing "checks are not green yet", arming nothing and merging nothing - and because they exit 0, nothing ever went red about it. ## Evidence - Fully green head, PR #2512 `e2e2dca3`: `/commits/e2e2dca3/status` returns `state: success`, 6 contexts, of which exactly **2** are test legs (`CI / Test (Node 22)`, `CI / Test (Node 24)`). Run against that live set: old predicate -> exit **1**, new -> exit **0**. - `auto-rebase`: 37 runs since 22:56Z (task 26081 onwards), all `success`. Task 26896 (run 10307, 02:30:29Z) armed nothing on a green queue. - `pr-rebase`: 42 runs since 22:58Z (task 26092 onwards), all `success`. Task 26902 (run 10309, PR #2512, 02:31:25->02:31:37Z) armed nothing on a head whose checks were green at 02:32:24. - Last known-good baseline, 3-leg matrix: pr-rebase armed on green heads, e.g. task 25922 era. ## The change `legs >= 3` -> `legs >= 2` in both `checks_green()` functions - the floor ci.yml's own `Arm auto-merge` gate already uses (`ci.yml` refuses below 2). Comments in both files record why 2 and that the floor has to be lowered when the matrix narrows; `main-health.yml`'s "three Node legs" note is corrected to two. ## Coverage unchanged Same reader, same exclusion of the pass's own status, same "at least one status", same "nothing but success", same single merge POST. The floor stays a floor: one leg, a red, or a pending status still refuses. Fixtures: 2 legs green -> 0; 1 leg -> 1; red leg -> 1; pending -> 1; empty -> 1. After: the first `auto-rebase` tick after this merges is the measurement - a green pull request must be armed or merged from that tick, which has not happened once since 22:56Z.
ci: the scheduled arm passes count two test legs, not three
All checks were successful
CI / Typecheck (pull_request) Successful in 21s
CI / Server smoke and Docker build (pull_request) Successful in 1m15s
CI / Test (Node 22) (pull_request) Successful in 59s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 19s
CI / Test (Node 24) (pull_request) Successful in 1m15s
CI / Arm auto-merge (pull_request) Successful in 11s
4a09dcf212
ci.yml's matrix became [22, 24] in #2477 (2026-11-23T22:56Z) while the
armed passes' green predicate still demanded three 'CI / Test (Node N)'
contexts, so no head could satisfy it: auto-rebase and pr-rebase have
printed 'checks are not green yet' for every pull request since, arming
nothing and merging nothing, and staying green while they did it.

Evidence: 6 contexts on a fully green head (PR #2512, e2e2dca3), state
success, of which exactly 2 are test legs. The old predicate exits 1 on
that set, the new one exits 0. 37 auto-rebase and 42 pr-rebase runs
since 22:56Z, all success, none armed.

Floor is 2 to match the gate ci.yml itself runs. Nothing else changes:
still at least one status, still nothing but success, still a floor.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 06:51:33 +00:00
Author
Owner

After, measured on main: auto-rebase task 27691 (run 10488, 2026-11-24T07:00:04Z) took 61 s instead of the 6-12 s a refusing tick costs, armed the two green pull requests, and #2538 merged at 07:08:42Z and #2540 at 07:08:14Z. Before, from 22:56Z to 06:56Z: 37 auto-rebase and 42 pr-rebase runs, all success, none armed and none merged.

After, measured on main: `auto-rebase` task 27691 (run 10488, 2026-11-24T07:00:04Z) took 61 s instead of the 6-12 s a refusing tick costs, armed the two green pull requests, and #2538 merged at 07:08:42Z and #2540 at 07:08:14Z. Before, from 22:56Z to 06:56Z: 37 auto-rebase and 42 pr-rebase runs, all `success`, none armed and none merged.
Sign in to join this conversation.
No description provided.