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 #980
Before a release roll, the release agent now checks whether a surge forge pod can fit. If it can't, the roll waits for the owner's explicit yes to that specific roll. This push also fixes the check failure that got #951 parked; that failure was in the test, not in this change.
stopped closed without shipping deploy 23a45ce
Sign in to join this conversation.
new above
offline
Before a release roll, the release agent now checks whether a surge forge pod can fit. If it can't, the roll waits for the owner's explicit yes to that specific roll. This push also fixes the check failure that got #951 parked; that failure was in the test, not in this change.
Why the check failed. The forge's check command sets
FORGE_CHECK_SHARDS=2, andscripts/test-shards.tspasses it on to every test shard.capacityDefault("checks.shards")reads that variable, so during the check the boot default for shards was"2"instead of empty. "capacity: only a forge admin reads or changes it > an admin changes each one…" expects the reset to go back to empty and the first change to be recorded as"" → "3", so it failed. It would fail the same way on any pull. I changed the test, because it wrongly assumed nothing in the environment sets these variables:test/capacity.test.tsnow clears the four capacity variables before its tests run and restores them afterwards.src/core/capacity.tsis unchanged.The roll check (#876).
scripts/roll-preflight.tsreads whatkubectlprints and works out whether a surge forge pod fits on the node that holds the volume: the node's allocatable minus what is already requested, against the pod's request and its real steady memory.maxSurge: 0orRecreateas a standing value is refused (exit 4). A test holds the chart to surge 1.docs/ops/RELEASE.md.What to look at:
test/capacity.test.tsscripts/roll.tsandscripts/roll-preflight.tsdocs/ops/RELEASE.mdtest/roll.test.ts, now listed inscripts/gate.tsTesting. The branch is merged with current
main.tsc --noEmitis clean andbun test test/roll.test.tspasses 17 of 17. I could not run the capacity tests here: the sandbox refuses the Unix socket the test server listens on. I confirmed the cause directly instead: withFORGE_CHECK_SHARDS=2set,capacityDefault("checks.shards")returns"2". The forge's check will be the first full run of the fixed test.To try it: run
bun scripts/roll-preflight.tswith thekubectloutput it asks for (seedocs/ops/RELEASE.md). On a node without headroom it prints the dark seconds and the roll id, and exits 3. Run it again with the owner's yes for that id and it lets the roll go.🤖 Generated with Claude Code
Closes #876