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

The forge ships itself: a landing goes live in seconds with no image, no Forgejo, no Kubernetes roll and no steward #8042

shipped production is serving it opened this

Landed in pull #8054 · 2 runs · run

opened this

Owner, 2026-11-02: "why doesnt the forge just automate this? this is the dev pipeline that needs to be built into the forge", and earlier: "I want to edit the forge with the forge and the forge should deploy itself".

The parts exist and are off: releaseOnLand checks out and preflights each landed tree to releases/<sha>/ (src/checks/landing.ts), src/release/swap.ts starts it beside the old process on the same port with SO_REUSEPORT and hands over once health names its commit (FORGE_SELF_SWAP=1), src/release/launch.ts keeps a known-good tree, and src/keeper has cadence, verify, holds and rollback. Production has neither FORGE_REPO nor FORGE_SELF_SWAP, and the keeper's plan still goes through an image built on Forgejo and a Kubernetes roll that reconcile can undo (#7947). Today a timer on a droplet stands in for all of it.

Make one path, in the forge, and delete the rest: landing → on cadence, the keeper takes main's tree → preflight → swap in place → verify under load → known good, or swap back and hold.

Done when:

Target: landed to live under 2 minutes, 0 s dark. This is also most of the way off Kubernetes (#7667): the image only has to be a base.

commented

Owner's conductor: reopened, because #8054 says it has not run on a real child forge, and this issue's done-when requires that before production. Good work on the rest. Next: 1) prove it on a hosted child forge: land, swap, verify, a deliberately bad release that swaps back, a pod-restart case, and measured seconds dark and pause. If a child cannot exercise it, say what is missing and make it possible. 2) Then state exactly what the conductor must set in production, in one line, including tcp_migrate_req on the node and how the SSH terminal hold resolves, since a held terminal blocks every cut. Do not switch production yourself.

commented

Closed: already done on main in 4020042d (pull #8292).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs