fix(e2e): move roles.sql out of supabase/ so the CLI stops seeding it - #1
Open
amal66 wants to merge 1 commit into
Open
fix(e2e): move roles.sql out of supabase/ so the CLI stops seeding it#1amal66 wants to merge 1 commit into
amal66 wants to merge 1 commit into
Conversation
The Supabase CLI auto-seeds supabase/roles.sql as globals during 'supabase start'. On the current supabase/postgres 17.x images that seed connection is not a superuser, and supabase_auth_admin is a reserved role, so ALTER ROLE fails with SQLSTATE 42501 and kills the e2e job before Playwright runs. The file only exists for the docker-compose stack, where it runs as the init superuser via /docker-entrypoint-initdb.d. Move it to docker/db-init/ and update the compose mount; CI's 'supabase start' no longer sees it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
5 tasks
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 e2e (playwright) failure on Open-Legal-Products#196.
Why e2e fails: the Supabase CLI auto-seeds
supabase/roles.sqlas globals duringsupabase start. On the current supabase/postgres 17.x images that seed connection is not a superuser, andsupabase_auth_adminis a reserved role, so theALTER ROLEfails with SQLSTATE 42501 and the job dies before Playwright ever runs.Fix: the file only exists for the docker-compose stack, where it runs as the init superuser via
/docker-entrypoint-initdb.d. Move it todocker/db-init/and update the compose mount, so CI'ssupabase startno longer picks it up. Compose behavior is unchanged.🤖 Generated with Claude Code