gateway-image: set the build droplet ID before any die — an empty IP leaked the build droplet (GOTCHAS #405) #2120

Merged
ben merged 3 commits from session/gw-build-ip-race into main 2026-11-04 01:20:51 +00:00
Owner

The gateway-image build leaked its build droplet on 2026-10-30. doctl compute droplet create --wait --format PublicIPv4 answered an empty IP, and the script died before it looked up the droplet ID, so the EXIT trap had nothing to delete (idss-gateway-build-05828fdfe096 stayed up until deleted by hand).

  • The ID now comes back with the create (--format ID,PublicIPv4) and is set before any die.
  • A late IP is polled for up to 2 min via doctl compute droplet get.
  • GOTCHAS #405.

Proof: a build from this branch ran green on matou-workstation in 16 m 22 s and snapshotted idss-gateway-125cfadf8736-vgd652a64c3450 (id 252334473), and its build droplet was deleted. The existing scripts/gateway-image/tests/* pass.

Please merge with a merge commit, not a squash. The rented drives' staleness gate needs 125cfadf to be an ancestor of origin/main, or the new snapshot reads as off-history. That gate is what blocks the #2075 rented guide walk.

🤖 Generated with Claude Code

The gateway-image build leaked its build droplet on 2026-10-30. `doctl compute droplet create --wait --format PublicIPv4` answered an empty IP, and the script died **before** it looked up the droplet ID, so the EXIT trap had nothing to delete (`idss-gateway-build-05828fdfe096` stayed up until deleted by hand). - The ID now comes back with the create (`--format ID,PublicIPv4`) and is set before any `die`. - A late IP is polled for up to 2 min via `doctl compute droplet get`. - GOTCHAS #405. **Proof:** a build from this branch ran green on matou-workstation in 16 m 22 s and snapshotted `idss-gateway-125cfadf8736-vgd652a64c3450` (id 252334473), and its build droplet was deleted. The existing `scripts/gateway-image/tests/*` pass. **Please merge with a merge commit, not a squash.** The rented drives' staleness gate needs `125cfadf` to be an ancestor of `origin/main`, or the new snapshot reads as off-history. That gate is what blocks the #2075 rented guide walk. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gateway-image: the build droplet's ID is taken from the create and set before any die, and a lagging IP is polled — an empty IP answer used to leak the build droplet past the cleanup trap (GOTCHAS #402)
Some checks failed
ci / seam (pull_request) Successful in 12m41s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been cancelled
125cfadf87
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge remote-tracking branch 'origin/main' into session/gw-build-ip-race
All checks were successful
ci / seam (pull_request) Successful in 17m22s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
cc70c0efd2
# Conflicts:
#	docs/GOTCHAS.md
ben changed title from gateway-image: set the build droplet's ID before any die — an empty IP leaked the build droplet (GOTCHAS #402) to gateway-image: set the build droplet ID before any die — an empty IP leaked the build droplet (GOTCHAS #404) 2026-11-02 18:42:52 +00:00
Merge remote-tracking branch 'origin/main' into session/gw-build-ip-race
Some checks failed
ci / seam (pull_request) Failing after 12m36s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
9e68ff68b2
# Conflicts:
#	docs/GOTCHAS.md
ben changed title from gateway-image: set the build droplet ID before any die — an empty IP leaked the build droplet (GOTCHAS #404) to gateway-image: set the build droplet ID before any die — an empty IP leaked the build droplet (GOTCHAS #405) 2026-11-04 01:01:36 +00:00
ben merged commit fed0aa92a3 into main 2026-11-04 01:20:51 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss!2120
No description provided.