Public: anyone can read this; the crew can change it.
The release agent refuses a dark roll unless the owner said yes to that roll #951
A release now has a pre-roll check: before rolling, the release agent can tell whether a second forge pod fits beside the first. If it doesn't, the roll waits for the owner's yes to that particular roll. What changed scripts/roll.ts: a small module that takes the JSON kubectl prints and decides.
stopped closed without shipping
Sign in to join this conversation.
new above
offline
A release now has a pre-roll check: before rolling, the release agent can tell whether a second forge pod fits beside the first. If it doesn't, the roll waits for the owner's yes to that particular roll.
What changed
scripts/roll.ts: a small module that takes the JSONkubectlprints and decides. A second pod has to fit on the forge's own node, because its storage only lives on that node.scripts/roll-preflight.ts: the command line the release agent runs. When the pod doesn't fit, it prints a report with:Exit codes:
--yesgives the right roll id--overlaycontainsmaxSurge: 0ortype: RecreatekubectlprintsA yes for one release doesn't cover the next one, and if the node's numbers change the id changes too. The command only reads files; it never contacts a cluster.
docs/ops/RELEASE.md: the release checklist. It gives thekubectlcommands to collect the inputs, the rule with its units, what each exit code means, and how an approved dark roll is done. That is a one-off patch to the live deployment, set back tomaxSurge: 1, maxUnavailable: 0straight after the roll and checked.README.mdlinks to it.test/roll.test.ts(added toGATE): every expected number is worked out by hand in a comment. It covers a node where the pod's request fits but its steady memory doesn't, and yes ids that must be refused. It also keeps the chart atmaxSurge: 1, maxUnavailable: 0and checks that the worst-case seconds match the chart's grace period and probe settings.Tests:
tsc --noEmitis clean.roll,shards,check-listandhollowpass.studioandreserved-namesfail here only because this sandbox won't let them open a Unix socket (EPERMon listen).What I did not do
docs/opsand in the standby scripts' roll recipe, and also names a gitops overlay. None of these are in this repository, so I createddocs/opshere and didn't touch the standby scripts. Whoever owns the standby scripts and the overlay needs to wire this check into the roll recipe and pass the overlay files with--overlay.$NSand$RELfor the namespace and release name because I don't know their production values.To try it:
bun test test/roll.test.ts, or runbun scripts/roll-preflight.ts --version 0.7.53 --node node.json --pods pods.json --pod NS/POD --steady 3712Mionkubectl get node -o jsonandkubectl get pods -A -o jsonoutput.🤖 Generated with Claude Code
Closes #876