Skip to content

chore: e2e tests on all the PGs - #2369

Merged
edgurgel merged 3 commits into
mainfrom
chore/e2e-all-the-pgs
Oct 8, 2026
Merged

edgurgel merged 3 commits into
mainfrom
chore/e2e-all-the-pgs

Conversation

@edgurgel

@edgurgel edgurgel commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Had to swap the PG client because Bun didn't seem to work with sslnegotiation=direct which I had to use for Multigres (on staging for the very least)

It's a bit more involved because we have to set-up a "fake" CLI to support Multigres. So nginx, auth and postgrest has to be started as part of the docker compose file

Once Multigres is handled by Supabase CLI we can simplify this again.

I'm not testing pg14 for now as broadcast changes was not working and I didn't have the time to check properly

@edgurgel
edgurgel force-pushed the chore/e2e-all-the-pgs branch from 34de029 to 07f8305 Compare October 8, 2026 03:45
@blacksmith-sh

This comment has been minimized.

broadcast_changes tests are failing we need to investigate later
@edgurgel
edgurgel force-pushed the chore/e2e-all-the-pgs branch from a69bd35 to ab960cd Compare October 8, 2026 08:53
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

CRAP Score Report

Summary: files=245 functions=1370 scored=1370 worst_score=15944.76

** (Mix) CRAP threshold failed: max_score=30.00
High scores: 30
  lib/extensions/postgres_cdc_rls/subscription_manager.ex Extensions.PostgresCdcRls.SubscriptionManager.handle_info/2 score=37.16
  lib/realtime/adapters/postgres/oid_database.ex Realtime.Adapters.Postgres.OidDatabase.name_for_type_id/1 score=15944.76
  lib/realtime/application.ex Realtime.Application.setup_region_mapping/0 score=47.11
  lib/realtime/nodes.ex Realtime.Nodes.default_region_mapping/1 score=157.20
  lib/realtime/operations.ex Realtime.Operations.rebalance/0 score=42.00
  lib/realtime/operations.ex Realtime.Operations.kill_connections_to_tenant_id/2 score=90.00
  lib/realtime/tenants/connect.ex Realtime.Tenants.Connect.handle_info/2 score=41.41
  lib/realtime_web/channels/auth/jwt_verification.ex RealtimeWeb.JwtVerification.generate_signer/3 score=30.78
  lib/realtime_web/channels/realtime_channel.ex RealtimeWeb.RealtimeChannel.handle_info/2 score=51.06
  lib/realtime_web/dashboard/feature_flags.ex RealtimeWeb.Dashboard.FeatureFlags.handle_event/3 score=112.70
  lib/realtime_web/dashboard/node_info.ex RealtimeWeb.Dashboard.NodeInfo.fetch_node_data/2 score=42.00
  lib/realtime_web/dashboard/recon_trace.ex RealtimeWeb.Dashboard.ReconTrace.handle_event/3 score=552.00
  lib/realtime_web/dashboard/recon_trace.ex RealtimeWeb.Dashboard.ReconTrace.handle_info/2 score=210.00
  lib/realtime_web/dashboard/recon_trace.ex RealtimeWeb.Dashboard.ReconTrace.render_value/2 score=42.00
  lib/realtime_web/dashboard/recon_trace.ex RealtimeWeb.Dashboard.ReconTrace.load_module_functions/1 score=42.00
  lib/realtime_web/dashboard/recon_trace.ex RealtimeWeb.Dashboard.ReconTrace.parse_and_start/2 score=110.00
  lib/realtime_web/dashboard/recon_trace.ex RealtimeWeb.Dashboard.ReconTrace.format_value/1 score=552.00
  lib/realtime_web/dashboard/recon_trace.ex RealtimeWeb.Dashboard.ReconTrace.sort_entries/2 score=42.00
  lib/realtime_web/dashboard/sql_inspector.ex RealtimeWeb.Dashboard.SqlInspector.handle_event/3 score=72.00
  lib/realtime_web/dashboard/sql_inspector.ex RealtimeWeb.Dashboard.SqlInspector.execute_read_only/1 score=72.00
  lib/realtime_web/dashboard/sql_inspector.ex RealtimeWeb.Dashboard.SqlInspector.mask_sensitive_columns/1 score=42.00
  lib/realtime_web/dashboard/sql_inspector.ex RealtimeWeb.Dashboard.SqlInspector.compare_cells/2 score=42.00
  lib/realtime_web/dashboard/sql_inspector.ex RealtimeWeb.Dashboard.SqlInspector.format_cell/1 score=72.00
  lib/realtime_web/dashboard/tenant_migrations.ex RealtimeWeb.Dashboard.TenantMigrations.handle_info/2 score=156.00
  lib/realtime_web/live/components.ex RealtimeWeb.Components.input/1 score=90.00
  lib/realtime_web/live/inspector_live/conn_component.ex RealtimeWeb.InspectorLive.ConnComponent.handle_event/3 score=53.83
  lib/realtime_web/live/inspector_live/event_log_component.ex RealtimeWeb.InspectorLive.EventLogComponent.category_variant/1 score=35.00
  lib/realtime_web/live/inspector_live/event_log_component.ex RealtimeWeb.InspectorLive.EventLogComponent.event_label/1 score=51.43
  lib/realtime_web/live/inspector_live/index.ex RealtimeWeb.InspectorLive.Index.handle_event/3 score=30.84
  lib/realtime_web/live/status_live/index.ex RealtimeWeb.StatusLive.Index.handle_event/3 score=42.00

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 92.487% — chore/e2e-all-the-pgs into main. No base build found for main.

@edgurgel
edgurgel merged commit 6505428 into main Oct 8, 2026
52 checks passed
@edgurgel
edgurgel deleted the chore/e2e-all-the-pgs branch October 8, 2026 21:58
@realtime-release-bot

Copy link
Copy Markdown

🎉 This PR is included in version 2.143.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

leandrocp added a commit that referenced this pull request Oct 20, 2026
GoTrue's add_auth_jwt_function migration replaces auth.jwt(), which fails
with 'must be owner of function jwt' when the init script created it as
supabase_admin. The e2e stack runs GoTrue against this database since #2369.

Amp-Thread-ID: https://ampcode.com/threads/T-01a159db-467b-71c8-9d19-a7cd4f34cf30
Co-authored-by: Amp <[email protected]>
leandrocp added a commit that referenced this pull request Oct 20, 2026
GoTrue's add_auth_jwt_function migration replaces auth.jwt(), which fails
with 'must be owner of function jwt' when the init script created it as
supabase_admin. The e2e stack runs GoTrue against this database since #2369.
leandrocp added a commit that referenced this pull request Oct 20, 2026
GoTrue's add_auth_jwt_function migration replaces auth.jwt(), which fails
with 'must be owner of function jwt' when the init script created it as
supabase_admin. The e2e stack runs GoTrue against this database since #2369.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants