Repository navigation
ci(quality-gate): start the fixtures' Supabase stand-ins on free ports - #1054
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the intermittent "Quality gate tests" failure seen on #1053:
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, andrun-fixtures.shstopped after 30 seconds without saying why.Reproduced locally: with a socket bound to 127.0.0.1:51742, master's runner fails
coverage-e2e-mergedwith 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
$RUNROOT/.stand-ins/<fixture>.port. Before running a fixture,run-fixtures.shsetse2eHealthUrlin the fixture's baseline, in its working copy, to that port.$RUNROOT/.stand-ins/<fixture>.log, printed if it doesn't start.no-local-supabaseande2e-only-no-supabaseneed nothing to listen on their URL. They point at port 1, instead of a high port another process could take.Verification
coverage-e2e-merged, and master's runner fails it.run-fixtures.sh57/57.compare-baselines12/12.compare-coverage7/7.identify-changes18/18.mark-api5/5.unexpected-exit7/7.gate.sh packageslocally, E2E included:GATE: PASS.🤖 Generated with Claude Code