Skip to content

chore: Fix IPv4 localhost resolution in Supabase e2e tests - #3808

Open
Ziinc wants to merge 3 commits into
mainfrom
claude/integration-tests-connection-failures-exrhbt
Open

chore: Fix IPv4 localhost resolution in Supabase e2e tests#3808
Ziinc wants to merge 3 commits into
mainfrom
claude/integration-tests-connection-failures-exrhbt

Conversation

@Ziinc

@Ziinc Ziinc commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Refactors env vars for Supabase e2e tests to fix connectivity issues on CI where Node 18+ resolves localhost to IPv6 (::1) first, but the Supabase stack only publishes ports on IPv4.

@Ziinc Ziinc changed the title Fix IPv4 localhost resolution in Supabase e2e tests chore: Fix IPv4 localhost resolution in Supabase e2e tests Aug 11, 2026
claude and others added 3 commits August 14, 2026 02:00
Node 18+ resolves localhost to ::1 first on CI runners, while the Supabase
stack publishes ports on IPv4 only. Playwright's request context failed with
connect ECONNREFUSED ::1:8000 and supabase-js with a bare 'fetch failed'.
Normalise SUPABASE_PUBLIC_URL to 127.0.0.1 in a shared lib/env module, and fix
the .env path used by lib/supabase.ts.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N9dnfRS1nCWkhNs5ESbsjw
The clipboard spec timed out because Playwright charges beforeEach to the
test's own budget: an 8s settle plus a polling searchLogs left no headroom in
the 30s default. Raise the per-test timeout and make searchLogs throw when the
event never shows, instead of deferring the failure to an unrelated hover.

Also stop setup-supabase-services.sh from reporting success when the stack is
broken. An unhealthy analytics container blocks kong via depends_on, so nothing
listens on the public port, but the readiness probe runs inside the analytics
container and never notices. Name the unhealthy services with their logs, and
probe the gateway from the host.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N9dnfRS1nCWkhNs5ESbsjw
@Ziinc
Ziinc force-pushed the claude/integration-tests-connection-failures-exrhbt branch from 313c452 to 08ff411 Compare August 13, 2026 18:01
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.

2 participants