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

A self-swap release waits for the pull checks running, at most 20 minutes #16988

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

A swap cuts every check running in the process: on 2026-12-01 three releases cut 9 pull checks each ("interrupted by a release; queued again"), and with about 29 min of queue and 19 min per check a pushed pull's check did not finish between releases, so the owner's pulls were never green and never sent to review.

Notes

opened this

A swap cuts every check running in the process: on 2026-12-01 three releases cut 9 pull checks each ("interrupted by a release; queued again"), and with about 29 min of queue and 19 min per check a pushed pull's check did not finish between releases, so the owner's pulls were never green and never sent to review. The release already waits for main's full check (untilMainIdle); it now also waits for the pull checks running when it is ready to swap, at most PULL_CHECK_WAIT_MS (20 min). Only those checks are waited for: one that starts during the wait does not extend it. The log line says what it did: "release ready to swap pulls=waited 3 min for 2 running pull checks to finish", or how many it cut after 20 min.

Why a hold, and why 20 minutes: nothing removed would keep the work, since a swap restarts the process that runs the checks, and adoption (keeping a runner's job across a restart, #16991) covers only runner jobs. The hold is bounded at 20 min and never extends for a check that starts during it. No wait loses about 9 x 15 min of runner work per release; a check takes about 19 min, so a shorter cap still cuts most of the checks it waits for and only delays the swap for nothing.

This covers the forge's own self-swap; releases through the host's run.sh are untouched. Keeping a runner's job through any restart (adoption) is its own pull.

Co-Authored-By: Claude Fable 5 <[email protected]>

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs