Skip to content

ci(quality-gate): reserve the Supabase ports before starting the stack - #1057

Draft
Tr00d wants to merge 1 commit into
masterfrom
ci/reserve-supabase-ports
Draft

Tr00d wants to merge 1 commit into
masterfrom
ci/reserve-supabase-ports

Conversation

@Tr00d

@Tr00d Tr00d commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

What does this change?

The E2E gate job reserves ports 54320 to 54329 before it starts Supabase, so an outgoing connection can't take one of them first.

Why?

`Wait for Supabase` fails now and then with `failed to bind host port 0.0.0.0:54324/tcp: address already in use` on the Mailpit container, for example in run 47108259951. The stack's ports sit in Linux's default range for outgoing connections (32768 to 60999). The job runs `dotnet build` and about 8 image pulls while the stack starts, and one of those connections can take a port first. This is a hypothesis: I could not see what held the port.

How to check

Merge, then watch `Wait for Supabase` over the next runs. If the bind error comes back, the port is held by something else and the next step is printing `ss -tanp` when the start fails.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant