test: validate Supabase compatibility and add a test harness - #106
Conversation
|
🤖 Automated review This is a well-scoped, test-only PR that validates pg-sprite against Supabase and establishes a repeatable harness. No production engine behavior changes. What it does
Strengths
Observations / minor suggestions (non-blocking)
Approving — test-only change with clear boundaries and strong evidence discipline. |
JashLal
left a comment
There was a problem hiding this comment.
🤖 Approved by automated review.
…nto armand/supabase-compatibility
|
🤖 Addressed the maintenance suggestions:
|
|
🤖 Addressed the maintenance suggestions:
|
|
🤖 Updated the image-maintenance approach: instead of a monthly manual chore, The proposal should include current and candidate versions, release-note links, compatibility risks, and required validation. Image upgrades retain version/digest pins and update the pooler attribution and tested-version documentation together. If upstream release information is unavailable, the agent must report the check as incomplete. |
Why
Validate that pg-sprite can work with Supabase and establish a repeatable test harness. As pg-sprite evolves, this harness will help us verify and expand Supabase support.
The initial coverage exercises supported schema changes, checks that unsupported changes are safely refused, and verifies that Supabase's access policies, API, and live subscriptions keep working.
What
How
Go tests call pg-sprite's public APIs against pinned Supabase PostgreSQL, Auth, PostgREST, Supavisor, and Realtime containers. Each DDL case has its own named test with the complete SQL visible. Tests inspect database state and exercise application access, rather than relying only on a successful verdict.
Risk
No production engine behavior changes. This validates the local fixture; hosted Supabase projects and successful copy-and-swap changes still need validation.
Testing
Ran the guide's CLI preview, apply, and verification commands against local Supabase. The results matched the documented examples.
Bigger picture
Extend the harness as new engine capabilities land, so each expansion of Supabase support comes with automated evidence. Hosted validation and broader declarative workflows are the next milestones.
Generated with Codex (GPT-6)