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

A boot keeps its previews' checkouts, so they come back asleep instead of all deploying (#17629) #17726

opened this

Merged 17h 1m ago, live in production

The cause is read from the code and fits the production logs; nobody watched the deletion happen. The tests had not been run when this was opened: this check is their first run. The release timer is paused until this and #17717 are in.

Notes

opened this

The cause is read from the code and fits the production logs; nobody watched the deletion happen. The tests had not been run when this was opened: this check is their first run. The release timer is paused until this and #17717 are in.

start() reconciles every app's production, then every app's previews. The stray-checkout sweep ran at the end of both passes. In the production pass no preview is in state yet, so every preview checkout older than ten minutes read as a stray and was removed; the preview pass then found nothing to settle asleep, and deployed each one something asks for.

On production every release did this: 16 previews of the forge itself deployed at the 23:09 boot and 17 at the 23:44 boot, some at a commit that had not moved over six boots (pull-11811 at 545d481). One, pull-17711, came back asleep at 23:44. Each is a whole forge that boots beside production.

The sweep now runs in the preview pass only, once every preview is in state. The existing test made one pass with both halves, which never showed it; the new one makes the two passes start() makes.

Try: with a pull's preview built more than ten minutes ago, restart the forge: its log says "asleep from boot" for the preview, and no deploy run is made for it.

Direction: a release must not boot every preview beside production (#17629)

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs