A release waits for its check (#16228)

A landed tree of the forge's own repository is swapped in (FORGE_SELF_SWAP=1) only once the full check of that commit has finished green (src/release/check_wait.ts). Running or queued holds it, polled every 5 seconds for up to 45 minutes. Failed, superseded (main moved on) or never started within the budget refuses it: a log line and a comment on the landed pull say why; the running process keeps serving. A forge with FORGE_CHECKS=0 has no verdict to wait for and swaps as before.

The wait runs off the landing chain, so the next landing is not held behind a check still running.

A restart during the wait

The poll is in memory, so at boot rearmRelease (src/checks/landing.ts) reads the newest recorded release of the forge's repository and waits again, for what is left of the 45 minutes, when it passed preflight, is not the running commit, has its tree on disk and no open high scan finding holds it. A refusal after a restart is a log line, not a second comment. A release older than 45 minutes is not re-armed: land again or swap by hand.

Tests: test/release-check-wait.test.ts (the wait), test/release-deploy-wiring.test.ts (swap on green, none on red or with selfSwap off, re-arm).

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs