Public: anyone can read this; the crew can change it.

Checks cut by restarts are recorded as red on the pull and sent back to the builder #12594

shipped production is serving it opened this has it

Landed in pull #12605 · 2 runs · run

opened this

Seen on production 2026-11-14. A bad release crash-looped the forge 12 times between 15:22 and 15:27Z. At 15:34Z, on 0.7.598 again: trevato/forge had 35 open pulls, 28 red, 0 queued, and each red pull's next step read builder: its check is red. The pull API showed check: {"state":"failed","baseOid":""}. An hour earlier the same repository had 10 to 11 red. Nothing re-queued them; I asked for a re-check of each by hand (POST /<owner>/<name>/pulls/<n>/checks, all 28 accepted and running).

Why it is wrong. A check that the forge itself killed proved nothing about the pull. Marking it red sends the pull to a builder, who spends a run looking for a fault that is not there, and it hides the real reds among the false ones. The forge already knows the difference: its own decisions in the log read retry=stop cause=environment.

Ask.

  1. A check that ends because the forge stopped (a restart, a crash, the check's cell killed by the host) is cut, never failed: the pull's state stays what it was and the check is queued again at boot, in rank order. requeueAbandonedChecks should cover a crash loop: several restarts inside a minute must not exhaust a retry count.
  2. A pull is only "red: back to its builder" on a check that RAN to a verdict on that head.
  3. After a boot that follows an unclean stop, one line says how many checks were cut and re-queued.
  4. An admin can re-check every pull whose last check was cut or failed inside a time window in one call (today that took 28 requests).

Done when. A test that kills the forge three times in a row during a pull's check ends with that check queued, the pull not red, and no builder run started for it.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs