Skip to content

ci(quality-gate): start the fixtures' Supabase stand-ins on free ports - #1054

Merged
Tr00d merged 1 commit into
masterfrom
ci/gate-fixture-stand-in-ports
Dec 3, 2026
Merged

Tr00d merged 1 commit into
masterfrom
ci/gate-fixture-stand-in-ports

Conversation

@Tr00d

@Tr00d Tr00d commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Fixes the intermittent "Quality gate tests" failure seen on #1053:

the Supabase stand-in for coverage-e2e-merged on 127.0.0.1:51742 didn't start

Cause

Each fixture that needs Supabase got a small Python HTTP server on a fixed port, 51737–51756. Those ports are in the range Linux uses for outgoing connections (32768–60999). When one was already taken, Python failed to bind, its output went to /dev/null, and run-fixtures.sh stopped after 30 seconds without saying why.

Reproduced locally: with a socket bound to 127.0.0.1:51742, master's runner fails coverage-e2e-merged with exactly that message. The output was discarded on CI, so I can't confirm the runner hit the same thing. It's the failure mode that matches.

Changes

  • Free ports: each stand-in binds port 0 and writes the port the OS gave it to $RUNROOT/.stand-ins/<fixture>.port. Before running a fixture, run-fixtures.sh sets e2eHealthUrl in the fixture's baseline, in its working copy, to that port.
  • Fixed URLs removed: the 15 fixed URLs are gone from the fixture baselines.
  • Output kept: each stand-in's output goes to $RUNROOT/.stand-ins/<fixture>.log, printed if it doesn't start.
  • The two "no Supabase" fixtures: no-local-supabase and e2e-only-no-supabase need nothing to listen on their URL. They point at port 1, instead of a high port another process could take.

Verification

  • The reproduction: with port 51742 held, this branch passes coverage-e2e-merged, and master's runner fails it.
  • Gate test suites: run-fixtures.sh 57/57. compare-baselines 12/12. compare-coverage 7/7. identify-changes 18/18. mark-api 5/5. unexpected-exit 7/7.
  • Full gate: gate.sh packages locally, E2E included: GATE: PASS.

🤖 Generated with Claude Code

Each stand-in listened on a fixed port in the range Linux hands out for
outgoing connections. When that port was already taken, Python failed
to bind, its output went nowhere, and run-fixtures.sh stopped after 30s
with "the Supabase stand-in ... didn't start". It happened once on CI.

Each stand-in now binds a port the OS picks, and the runner writes its
URL into the fixture's baseline. Its output goes to a log printed when
it doesn't start. The two fixtures that need nothing to listen point at
port 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Tr00d
Tr00d marked this pull request as ready for review December 3, 2026 08:49
@Tr00d
Tr00d merged commit 454d68e into master Dec 3, 2026
11 checks passed
@Tr00d
Tr00d deleted the ci/gate-fixture-stand-in-ports branch December 3, 2026 08:49
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