Skip to content

fix: v3 fixes found while syncing main - #1792

Merged
spydon merged 7 commits into
v3from
v3-sync/02-fixes
Oct 27, 2026
Merged

spydon merged 7 commits into
v3from
v3-sync/02-fixes

Conversation

@spydon

@spydon spydon commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Merge with "Rebase and merge", not squash. The commits touch four packages and each has its own type(<pkg>) scope. Release-please needs those scopes to assign the changes to the right package, and a squash would collapse them into one unscoped commit.

Fixes for v3 problems found while syncing main. None of them come from a main commit.

  • realtime: the server now sends phx_close with the join ref after a leave. listen() raised KeyError on it and the connection died, so all realtime integration tests failed.
  • realtime: a presence_state arriving before the matching presence_diff reported the same join twice.
  • auth tests: fake.email() could return the same address twice, so a sign-up failed with "User already registered". The async and sync conftests now share one Faker instance and use fake.unique.email().
  • storage: pyiceberg was imported at module level again, so import storage3 failed without the iceberg extra. That undid d16cfc0.

Review fixes

  • realtime: send() removes its ref even when it is cancelled, and replies nobody waits on are dropped instead of reaching the channel stream. test_unknown_refs.py covers this with a fake server.
  • realtime: presence leaves for refs that are already gone are not reported, and a leave for an unknown key no longer stops the loop. _sync_state now relies on _sync_diff for the join filtering.
  • storage: test_optional_iceberg.py fails if import storage3 needs pyiceberg again.
  • realtime: joined presences go after the current ones, as in realtime-js.

Commits

  • fix(realtime): ignore replies for refs nobody is waiting on
  • fix(realtime): do not report joins for presences that are already known
  • test(auth): use unique emails for mock users
  • fix(storage): import pyiceberg lazily so it stays an optional dependency
  • fix(realtime): drop stale replies and duplicate presence leaves
  • test(storage): check that storage3 imports without pyiceberg
  • fix(realtime): append joined presences after the current ones

Stack

This replaces #1789: main's changes since 6f522d3 are cherry-picked onto v3 one package at a time, so each part can be reviewed on its own. Merge from the bottom up.

  1. chore: sync CI, dependency and tooling changes from main #1791
  2. fix: v3 fixes found while syncing main #1792 (this PR)
  3. fix(supabase): sync client options fix from main and make storage list_v2 folder keys optional #1793
  4. fix(functions): port main's changes to v3 #1794
  5. fix(auth): port main's changes to v3 #1795
  6. fix(postgrest): port main's changes to v3 #1796
  7. fix(storage): port main's changes to v3 #1797
  8. fix(realtime): port main's changes to v3 #1798
  9. chore: sync sdk-compliance.yaml with the v3 public API #1790

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Capability matrix drift detected

The following capabilities are marked implemented in the matrix but could not be found in python:

  • auth.sign_in.sign_up → expected symbol: AsyncGoTrueClient.sign_up
  • auth.sign_in.sign_up → expected symbol: SyncGoTrueClient.sign_up
  • auth.sign_in.sign_in_with_password → expected symbol: AsyncGoTrueClient.sign_in_with_password
  • auth.sign_in.sign_in_with_password → expected symbol: SyncGoTrueClient.sign_in_with_password
  • auth.sign_in.sign_in_with_oauth → expected symbol: AsyncGoTrueClient.sign_in_with_oauth
  • auth.sign_in.sign_in_with_oauth → expected symbol: SyncGoTrueClient.sign_in_with_oauth
  • auth.sign_in.sign_in_with_otp → expected symbol: AsyncGoTrueClient.sign_in_with_otp
  • auth.sign_in.sign_in_with_otp → expected symbol: SyncGoTrueClient.sign_in_with_otp
  • auth.sign_in.sign_in_with_sso → expected symbol: AsyncGoTrueClient.sign_in_with_sso
  • auth.sign_in.sign_in_with_sso → expected symbol: SyncGoTrueClient.sign_in_with_sso
  • auth.sign_in.sign_in_with_id_token → expected symbol: AsyncGoTrueClient.sign_in_with_id_token
  • auth.sign_in.sign_in_with_id_token → expected symbol: SyncGoTrueClient.sign_in_with_id_token
  • auth.sign_in.sign_in_anonymously → expected symbol: AsyncGoTrueClient.sign_in_anonymously
  • auth.sign_in.sign_in_anonymously → expected symbol: SyncGoTrueClient.sign_in_anonymously
  • auth.sign_in.verify_otp → expected symbol: AsyncGoTrueClient.verify_otp
  • auth.sign_in.verify_otp → expected symbol: SyncGoTrueClient.verify_otp
  • auth.sign_in.resend_confirmation → expected symbol: AsyncGoTrueClient.resend
  • auth.sign_in.resend_confirmation → expected symbol: SyncGoTrueClient.resend
  • auth.sign_in.send_password_reset_email → expected symbol: AsyncGoTrueClient.reset_password_for_email
  • auth.sign_in.send_password_reset_email → expected symbol: SyncGoTrueClient.reset_password_for_email
  • auth.sign_in.reauthenticate → expected symbol: AsyncGoTrueClient.reauthenticate
  • auth.sign_in.reauthenticate → expected symbol: SyncGoTrueClient.reauthenticate
  • auth.sign_in.exchange_code_for_session → expected symbol: AsyncGoTrueClient.exchange_code_for_session
  • auth.sign_in.exchange_code_for_session → expected symbol: SyncGoTrueClient.exchange_code_for_session
  • auth.session.get_session → expected symbol: AsyncGoTrueClient.get_session
  • auth.session.get_session → expected symbol: SyncGoTrueClient.get_session
  • auth.session.get_user → expected symbol: AsyncGoTrueClient.get_user
  • auth.session.get_user → expected symbol: SyncGoTrueClient.get_user
  • auth.session.get_claims → expected symbol: AsyncGoTrueClient.get_claims
  • auth.session.get_claims → expected symbol: SyncGoTrueClient.get_claims
  • auth.session.refresh_session → expected symbol: AsyncGoTrueClient.refresh_session
  • auth.session.refresh_session → expected symbol: SyncGoTrueClient.refresh_session
  • auth.session.set_session → expected symbol: AsyncGoTrueClient.set_session
  • auth.session.set_session → expected symbol: SyncGoTrueClient.set_session
  • auth.session.sign_out → expected symbol: AsyncGoTrueClient.sign_out
  • auth.session.sign_out → expected symbol: SyncGoTrueClient.sign_out
  • auth.session.update_user → expected symbol: AsyncGoTrueClient.update_user
  • auth.session.update_user → expected symbol: SyncGoTrueClient.update_user
  • auth.session.subscribe_auth_events → expected symbol: AsyncGoTrueClient.on_auth_state_change
  • auth.session.subscribe_auth_events → expected symbol: SyncGoTrueClient.on_auth_state_change
  • auth.identities.link_identity → expected symbol: AsyncGoTrueClient.link_identity
  • auth.identities.link_identity → expected symbol: SyncGoTrueClient.link_identity
  • auth.identities.unlink_identity → expected symbol: AsyncGoTrueClient.unlink_identity
  • auth.identities.unlink_identity → expected symbol: SyncGoTrueClient.unlink_identity
  • auth.identities.list_identities → expected symbol: AsyncGoTrueClient.get_user_identities
  • auth.identities.list_identities → expected symbol: SyncGoTrueClient.get_user_identities
  • auth.mfa.enroll → expected symbol: AsyncGoTrueMFAAPI.enroll
  • auth.mfa.enroll → expected symbol: SyncGoTrueMFAAPI.enroll
  • auth.mfa.challenge → expected symbol: AsyncGoTrueMFAAPI.challenge
  • auth.mfa.challenge → expected symbol: SyncGoTrueMFAAPI.challenge
  • auth.mfa.verify → expected symbol: AsyncGoTrueMFAAPI.verify
  • auth.mfa.verify → expected symbol: SyncGoTrueMFAAPI.verify
  • auth.mfa.unenroll → expected symbol: AsyncGoTrueMFAAPI.unenroll
  • auth.mfa.unenroll → expected symbol: SyncGoTrueMFAAPI.unenroll
  • auth.mfa.challenge_and_verify → expected symbol: AsyncGoTrueMFAAPI.challenge_and_verify
  • auth.mfa.challenge_and_verify → expected symbol: SyncGoTrueMFAAPI.challenge_and_verify
  • auth.mfa.list_factors → expected symbol: AsyncGoTrueMFAAPI.list_factors
  • auth.mfa.list_factors → expected symbol: SyncGoTrueMFAAPI.list_factors
  • auth.mfa.get_authenticator_assurance_level → expected symbol: AsyncGoTrueMFAAPI.get_authenticator_assurance_level
  • auth.mfa.get_authenticator_assurance_level → expected symbol: SyncGoTrueMFAAPI.get_authenticator_assurance_level
  • auth.admin.create_user → expected symbol: AsyncGoTrueAdminAPI.create_user
  • auth.admin.create_user → expected symbol: SyncGoTrueAdminAPI.create_user
  • auth.admin.delete_user → expected symbol: AsyncGoTrueAdminAPI.delete_user
  • auth.admin.delete_user → expected symbol: SyncGoTrueAdminAPI.delete_user
  • auth.admin.update_user → expected symbol: AsyncGoTrueAdminAPI.update_user_by_id
  • auth.admin.update_user → expected symbol: SyncGoTrueAdminAPI.update_user_by_id
  • auth.admin.get_user → expected symbol: AsyncGoTrueAdminAPI.get_user_by_id
  • auth.admin.get_user → expected symbol: SyncGoTrueAdminAPI.get_user_by_id
  • auth.admin.list_users → expected symbol: AsyncGoTrueAdminAPI.list_users
  • auth.admin.list_users → expected symbol: SyncGoTrueAdminAPI.list_users
  • auth.admin.invite_user → expected symbol: AsyncGoTrueAdminAPI.invite_user_by_email
  • auth.admin.invite_user → expected symbol: SyncGoTrueAdminAPI.invite_user_by_email
  • auth.admin.sign_out → expected symbol: AsyncGoTrueAdminAPI.sign_out
  • auth.admin.sign_out → expected symbol: SyncGoTrueAdminAPI.sign_out
  • auth.admin.generate_link → expected symbol: AsyncGoTrueAdminAPI.generate_link
  • auth.admin.generate_link → expected symbol: SyncGoTrueAdminAPI.generate_link
  • auth.admin.list_mfa_factors → expected symbol: AsyncGoTrueAdminMFAAPI.list_factors
  • auth.admin.list_mfa_factors → expected symbol: SyncGoTrueAdminMFAAPI.list_factors
  • auth.admin.delete_mfa_factor → expected symbol: AsyncGoTrueAdminMFAAPI.delete_factor
  • auth.admin.delete_mfa_factor → expected symbol: SyncGoTrueAdminMFAAPI.delete_factor
  • auth.oauth_admin.create_client → expected symbol: AsyncGoTrueAdminOAuthAPI.create_client
  • auth.oauth_admin.create_client → expected symbol: SyncGoTrueAdminOAuthAPI.create_client
  • auth.oauth_admin.delete_client → expected symbol: AsyncGoTrueAdminOAuthAPI.delete_client
  • auth.oauth_admin.delete_client → expected symbol: SyncGoTrueAdminOAuthAPI.delete_client
  • auth.oauth_admin.get_client → expected symbol: AsyncGoTrueAdminOAuthAPI.get_client
  • auth.oauth_admin.get_client → expected symbol: SyncGoTrueAdminOAuthAPI.get_client
  • auth.oauth_admin.list_clients → expected symbol: AsyncGoTrueAdminOAuthAPI.list_clients
  • auth.oauth_admin.list_clients → expected symbol: SyncGoTrueAdminOAuthAPI.list_clients
  • auth.oauth_admin.regenerate_client_secret → expected symbol: AsyncGoTrueAdminOAuthAPI.regenerate_client_secret
  • auth.oauth_admin.regenerate_client_secret → expected symbol: SyncGoTrueAdminOAuthAPI.regenerate_client_secret
  • auth.oauth_admin.update_client → expected symbol: AsyncGoTrueAdminOAuthAPI.update_client
  • auth.oauth_admin.update_client → expected symbol: SyncGoTrueAdminOAuthAPI.update_client
  • database.query.from_table → expected symbol: AsyncPostgrestClient.from_
  • database.query.from_table → expected symbol: AsyncPostgrestClient.table
  • database.query.from_table → expected symbol: SyncPostgrestClient.from_
  • database.query.from_table → expected symbol: SyncPostgrestClient.table
  • database.query.select → expected symbol: AsyncRequestBuilder.select
  • database.query.select → expected symbol: SyncRequestBuilder.select
  • database.query.rpc → expected symbol: AsyncPostgrestClient.rpc
  • database.query.rpc → expected symbol: SyncPostgrestClient.rpc
  • database.mutate.insert → expected symbol: AsyncRequestBuilder.insert
  • database.mutate.insert → expected symbol: SyncRequestBuilder.insert
  • database.mutate.update → expected symbol: AsyncRequestBuilder.update
  • database.mutate.update → expected symbol: SyncRequestBuilder.update
  • database.mutate.upsert → expected symbol: AsyncRequestBuilder.upsert
  • database.mutate.upsert → expected symbol: SyncRequestBuilder.upsert
  • database.mutate.delete → expected symbol: AsyncRequestBuilder.delete
  • database.mutate.delete → expected symbol: SyncRequestBuilder.delete
  • database.using_modifiers.single_row → expected symbol: AsyncSelectRequestBuilder.single
  • database.using_modifiers.single_row → expected symbol: SyncSelectRequestBuilder.single
  • database.using_modifiers.maybe_single_row → expected symbol: AsyncSelectRequestBuilder.maybe_single
  • database.using_modifiers.maybe_single_row → expected symbol: SyncSelectRequestBuilder.maybe_single
  • database.using_modifiers.format_csv → expected symbol: AsyncSelectRequestBuilder.csv
  • database.using_modifiers.format_csv → expected symbol: SyncSelectRequestBuilder.csv
  • database.using_modifiers.explain → expected symbol: AsyncSelectRequestBuilder.explain
  • database.using_modifiers.explain → expected symbol: SyncSelectRequestBuilder.explain
  • database.configuration.auto_retry → expected symbol: AsyncSelectRequestBuilder.retry
  • database.configuration.auto_retry → expected symbol: SyncSelectRequestBuilder.retry
  • functions.invocation.invoke → expected symbol: AsyncFunctionsClient.invoke
  • functions.invocation.invoke → expected symbol: SyncFunctionsClient.invoke
  • functions.invocation.set_auth_token → expected symbol: AsyncFunctionsClient.set_auth
  • functions.invocation.set_auth_token → expected symbol: SyncFunctionsClient.set_auth
  • realtime.client.connect → expected symbol: AsyncRealtimeClient.connect
  • realtime.client.connect → expected symbol: SyncRealtimeClient.connect
  • realtime.client.disconnect → expected symbol: AsyncRealtimeClient.disconnect
  • realtime.client.disconnect → expected symbol: SyncRealtimeClient.disconnect
  • realtime.client.get_channels → expected symbol: AsyncRealtimeClient.get_channels
  • realtime.client.get_channels → expected symbol: SyncRealtimeClient.get_channels
  • realtime.client.remove_channel → expected symbol: AsyncRealtimeClient.remove_channel
  • realtime.client.remove_channel → expected symbol: SyncRealtimeClient.remove_channel
  • realtime.client.remove_all_channels → expected symbol: AsyncRealtimeClient.remove_all_channels
  • realtime.client.remove_all_channels → expected symbol: SyncRealtimeClient.remove_all_channels
  • realtime.client.set_auth_token → expected symbol: AsyncRealtimeClient.set_auth
  • realtime.client.set_auth_token → expected symbol: SyncRealtimeClient.set_auth
  • realtime.client.channel → expected symbol: AsyncRealtimeClient.channel
  • realtime.client.channel → expected symbol: SyncRealtimeClient.channel
  • realtime.channel.subscribe → expected symbol: AsyncRealtimeChannel.subscribe
  • realtime.channel.subscribe → expected symbol: SyncRealtimeChannel.subscribe
  • realtime.channel.unsubscribe → expected symbol: AsyncRealtimeChannel.unsubscribe
  • realtime.channel.unsubscribe → expected symbol: SyncRealtimeChannel.unsubscribe
  • realtime.channel.broadcast → expected symbol: AsyncRealtimeChannel.send_broadcast
  • realtime.channel.broadcast → expected symbol: SyncRealtimeChannel.send_broadcast
  • realtime.subscriptions.broadcast → expected symbol: AsyncRealtimeChannel.on_broadcast
  • realtime.subscriptions.broadcast → expected symbol: SyncRealtimeChannel.on_broadcast
  • realtime.subscriptions.postgres_changes → expected symbol: AsyncRealtimeChannel.on_postgres_changes
  • realtime.subscriptions.postgres_changes → expected symbol: SyncRealtimeChannel.on_postgres_changes
  • realtime.subscriptions.subscribe_presence → expected symbol: AsyncRealtimeChannel.on_presence_change
  • realtime.subscriptions.subscribe_presence → expected symbol: SyncRealtimeChannel.on_presence_change
  • realtime.presence.track → expected symbol: AsyncRealtimeChannel.track
  • realtime.presence.track → expected symbol: SyncRealtimeChannel.track
  • realtime.presence.untrack → expected symbol: AsyncRealtimeChannel.untrack
  • realtime.presence.untrack → expected symbol: SyncRealtimeChannel.untrack
  • realtime.presence.presence_state → expected symbol: AsyncRealtimeChannel.presences
  • realtime.presence.presence_state → expected symbol: SyncRealtimeChannel.presences
  • storage.file_buckets.create_file_bucket → expected symbol: AsyncStorageBucketAPI.create_bucket
  • storage.file_buckets.create_file_bucket → expected symbol: SyncStorageBucketAPI.create_bucket
  • storage.file_buckets.get_bucket → expected symbol: AsyncStorageBucketAPI.get_bucket
  • storage.file_buckets.get_bucket → expected symbol: SyncStorageBucketAPI.get_bucket
  • storage.file_buckets.list_file_buckets → expected symbol: AsyncStorageBucketAPI.list_buckets
  • storage.file_buckets.list_file_buckets → expected symbol: SyncStorageBucketAPI.list_buckets
  • storage.file_buckets.update_bucket → expected symbol: AsyncStorageBucketAPI.update_bucket
  • storage.file_buckets.update_bucket → expected symbol: SyncStorageBucketAPI.update_bucket
  • storage.file_buckets.delete_file_bucket → expected symbol: AsyncStorageBucketAPI.delete_bucket
  • storage.file_buckets.delete_file_bucket → expected symbol: SyncStorageBucketAPI.delete_bucket
  • storage.file_buckets.empty_bucket → expected symbol: AsyncStorageBucketAPI.empty_bucket
  • storage.file_buckets.empty_bucket → expected symbol: SyncStorageBucketAPI.empty_bucket
  • storage.file_buckets.upload → expected symbol: AsyncBucketActionsMixin.upload
  • storage.file_buckets.upload → expected symbol: SyncBucketActionsMixin.upload
  • storage.file_buckets.download → expected symbol: AsyncBucketActionsMixin.download
  • storage.file_buckets.download → expected symbol: SyncBucketActionsMixin.download
  • storage.file_buckets.list_files → expected symbol: AsyncBucketActionsMixin.list
  • storage.file_buckets.list_files → expected symbol: SyncBucketActionsMixin.list
  • storage.file_buckets.list_files → expected symbol: AsyncBucketActionsMixin.list_v2
  • storage.file_buckets.list_files → expected symbol: SyncBucketActionsMixin.list_v2
  • storage.file_buckets.move → expected symbol: AsyncBucketActionsMixin.move
  • storage.file_buckets.move → expected symbol: SyncBucketActionsMixin.move
  • storage.file_buckets.copy → expected symbol: AsyncBucketActionsMixin.copy
  • storage.file_buckets.copy → expected symbol: SyncBucketActionsMixin.copy
  • storage.file_buckets.remove → expected symbol: AsyncBucketActionsMixin.remove
  • storage.file_buckets.remove → expected symbol: SyncBucketActionsMixin.remove
  • storage.file_buckets.get_public_url → expected symbol: AsyncBucketActionsMixin.get_public_url
  • storage.file_buckets.get_public_url → expected symbol: SyncBucketActionsMixin.get_public_url
  • storage.file_buckets.create_signed_url → expected symbol: AsyncBucketActionsMixin.create_signed_url
  • storage.file_buckets.create_signed_url → expected symbol: SyncBucketActionsMixin.create_signed_url
  • storage.file_buckets.create_signed_urls → expected symbol: AsyncBucketActionsMixin.create_signed_urls
  • storage.file_buckets.create_signed_urls → expected symbol: SyncBucketActionsMixin.create_signed_urls
  • storage.file_buckets.create_signed_upload_url → expected symbol: AsyncBucketActionsMixin.create_signed_upload_url
  • storage.file_buckets.create_signed_upload_url → expected symbol: SyncBucketActionsMixin.create_signed_upload_url
  • storage.file_buckets.upload_with_signed_url → expected symbol: AsyncBucketActionsMixin.upload_to_signed_url
  • storage.file_buckets.upload_with_signed_url → expected symbol: SyncBucketActionsMixin.upload_to_signed_url
  • storage.file_buckets.update_file → expected symbol: AsyncBucketActionsMixin.update
  • storage.file_buckets.update_file → expected symbol: SyncBucketActionsMixin.update
  • storage.file_buckets.file_exists → expected symbol: AsyncBucketActionsMixin.exists
  • storage.file_buckets.file_exists → expected symbol: SyncBucketActionsMixin.exists
  • storage.file_buckets.file_info → expected symbol: AsyncBucketActionsMixin.info
  • storage.file_buckets.file_info → expected symbol: SyncBucketActionsMixin.info
  • storage.file_buckets.download_with_transform → expected symbol: AsyncBucketActionsMixin.create_signed_url
  • storage.file_buckets.download_with_transform → expected symbol: SyncBucketActionsMixin.create_signed_url
  • storage.file_buckets.upload_with_metadata → expected symbol: AsyncBucketActionsMixin.upload
  • storage.file_buckets.upload_with_metadata → expected symbol: SyncBucketActionsMixin.upload
  • storage.file_buckets.url_cache_nonce → expected symbol: AsyncBucketActionsMixin.download
  • storage.file_buckets.url_cache_nonce → expected symbol: SyncBucketActionsMixin.download
  • storage.vector_buckets.create_vector_bucket → expected symbol: AsyncStorageVectorsClient.create_bucket
  • storage.vector_buckets.create_vector_bucket → expected symbol: SyncStorageVectorsClient.create_bucket
  • storage.vector_buckets.list_vector_buckets → expected symbol: AsyncStorageVectorsClient.list_buckets
  • storage.vector_buckets.list_vector_buckets → expected symbol: SyncStorageVectorsClient.list_buckets
  • storage.vector_buckets.delete_vector_bucket → expected symbol: AsyncStorageVectorsClient.delete_bucket
  • storage.vector_buckets.delete_vector_bucket → expected symbol: SyncStorageVectorsClient.delete_bucket
  • storage.vector_buckets.access_vector_index → expected symbol: AsyncStorageClient.vectors
  • storage.vector_buckets.access_vector_index → expected symbol: AsyncStorageVectorsClient.from_
  • storage.vector_buckets.access_vector_index → expected symbol: AsyncVectorBucketScope.index
  • storage.vector_buckets.access_vector_index → expected symbol: SyncStorageClient.vectors
  • storage.vector_buckets.access_vector_index → expected symbol: SyncStorageVectorsClient.from_
  • storage.vector_buckets.access_vector_index → expected symbol: SyncVectorBucketScope.index
  • storage.vector_buckets.create_index → expected symbol: AsyncVectorBucketScope.create_index
  • storage.vector_buckets.create_index → expected symbol: SyncVectorBucketScope.create_index
  • storage.vector_buckets.delete_index → expected symbol: AsyncVectorBucketScope.delete_index
  • storage.vector_buckets.delete_index → expected symbol: SyncVectorBucketScope.delete_index
  • storage.vector_buckets.get_index → expected symbol: AsyncVectorBucketScope.get_index
  • storage.vector_buckets.get_index → expected symbol: SyncVectorBucketScope.get_index
  • storage.vector_buckets.list_indexes → expected symbol: AsyncVectorBucketScope.list_indexes
  • storage.vector_buckets.list_indexes → expected symbol: SyncVectorBucketScope.list_indexes
  • storage.vector_buckets.put_vectors → expected symbol: AsyncVectorIndexScope.put
  • storage.vector_buckets.put_vectors → expected symbol: SyncVectorIndexScope.put
  • storage.vector_buckets.get_vectors → expected symbol: AsyncVectorIndexScope.get
  • storage.vector_buckets.get_vectors → expected symbol: SyncVectorIndexScope.get
  • storage.vector_buckets.delete_vectors → expected symbol: AsyncVectorIndexScope.delete
  • storage.vector_buckets.delete_vectors → expected symbol: SyncVectorIndexScope.delete
  • storage.vector_buckets.list_vectors → expected symbol: AsyncVectorIndexScope.list
  • storage.vector_buckets.list_vectors → expected symbol: SyncVectorIndexScope.list
  • storage.vector_buckets.query_vectors → expected symbol: AsyncVectorIndexScope.query
  • storage.vector_buckets.query_vectors → expected symbol: SyncVectorIndexScope.query
  • storage.vector_buckets.parallel_scan → expected symbol: AsyncVectorIndexScope.list
  • storage.vector_buckets.parallel_scan → expected symbol: SyncVectorIndexScope.list
  • storage.analytics.create_analytics_bucket → expected symbol: AsyncStorageAnalyticsClient.create
  • storage.analytics.create_analytics_bucket → expected symbol: SyncStorageAnalyticsClient.create
  • storage.analytics.list_analytics_buckets → expected symbol: AsyncStorageAnalyticsClient.list
  • storage.analytics.list_analytics_buckets → expected symbol: SyncStorageAnalyticsClient.list
  • storage.analytics.delete_analytics_bucket → expected symbol: AsyncStorageAnalyticsClient.delete
  • storage.analytics.delete_analytics_bucket → expected symbol: SyncStorageAnalyticsClient.delete
  • storage.analytics.access_catalog → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.access_catalog → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.create_namespace → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.create_namespace → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.list_namespaces → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.list_namespaces → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.delete_namespace → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.delete_namespace → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.load_namespace_metadata → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.load_namespace_metadata → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.namespace_exists → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.namespace_exists → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.update_namespace_properties → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.update_namespace_properties → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.create_table → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.create_table → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.list_tables → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.list_tables → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.load_table → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.load_table → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.update_table → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.update_table → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.rename_table → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.rename_table → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.delete_table → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.delete_table → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.register_table → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.register_table → expected symbol: SyncStorageAnalyticsClient.catalog
  • storage.analytics.table_exists → expected symbol: AsyncStorageAnalyticsClient.catalog
  • storage.analytics.table_exists → expected symbol: SyncStorageAnalyticsClient.catalog

The following capabilities are marked implemented in python but have no registered symbols to verify:

  • auth.session.auto_refresh (no symbols list — cannot confirm implementation exists)
  • client.authentication_integration.cross_client_token_sync (no symbols list — cannot confirm implementation exists)
  • client.authentication_integration.oauth_flow_type (no symbols list — cannot confirm implementation exists)
  • client.session_management.custom_storage (no symbols list — cannot confirm implementation exists)
  • client.session_management.persist_session (no symbols list — cannot confirm implementation exists)
  • client.request_configuration.custom_http_client (no symbols list — cannot confirm implementation exists)
  • client.request_configuration.global_headers (no symbols list — cannot confirm implementation exists)
  • database.mutate.select_after_mutation (no symbols list — cannot confirm implementation exists)
  • database.mutate.bulk_rows_with_differing_fields (no symbols list — cannot confirm implementation exists)
  • database.mutate.count (no symbols list — cannot confirm implementation exists)
  • database.mutate.missing_defaults (no symbols list — cannot confirm implementation exists)
  • database.using_filters.eq (no symbols list — cannot confirm implementation exists)
  • database.using_filters.neq (no symbols list — cannot confirm implementation exists)
  • database.using_filters.gt (no symbols list — cannot confirm implementation exists)
  • database.using_filters.gte (no symbols list — cannot confirm implementation exists)
  • database.using_filters.lt (no symbols list — cannot confirm implementation exists)
  • database.using_filters.lte (no symbols list — cannot confirm implementation exists)
  • database.using_filters.like (no symbols list — cannot confirm implementation exists)
  • database.using_filters.ilike (no symbols list — cannot confirm implementation exists)
  • database.using_filters.is (no symbols list — cannot confirm implementation exists)
  • database.using_filters.in (no symbols list — cannot confirm implementation exists)
  • database.using_filters.contains (no symbols list — cannot confirm implementation exists)
  • database.using_filters.contained_by (no symbols list — cannot confirm implementation exists)
  • database.using_filters.range_gt (no symbols list — cannot confirm implementation exists)
  • database.using_filters.range_gte (no symbols list — cannot confirm implementation exists)
  • database.using_filters.range_lt (no symbols list — cannot confirm implementation exists)
  • database.using_filters.range_lte (no symbols list — cannot confirm implementation exists)
  • database.using_filters.range_adjacent (no symbols list — cannot confirm implementation exists)
  • database.using_filters.overlaps (no symbols list — cannot confirm implementation exists)
  • database.using_filters.text_search (no symbols list — cannot confirm implementation exists)
  • database.using_filters.match (no symbols list — cannot confirm implementation exists)
  • database.using_filters.not (no symbols list — cannot confirm implementation exists)
  • database.using_filters.or (no symbols list — cannot confirm implementation exists)
  • database.using_filters.raw (no symbols list — cannot confirm implementation exists)
  • database.using_filters.regex (no symbols list — cannot confirm implementation exists)
  • database.using_filters.regex_icase (no symbols list — cannot confirm implementation exists)
  • database.using_filters.not_in (no symbols list — cannot confirm implementation exists)
  • database.using_modifiers.order (no symbols list — cannot confirm implementation exists)
  • database.using_modifiers.limit (no symbols list — cannot confirm implementation exists)
  • database.using_modifiers.range (no symbols list — cannot confirm implementation exists)
  • database.using_modifiers.request_cancellation (no symbols list — cannot confirm implementation exists)
  • database.using_modifiers.relationship_embed (no symbols list — cannot confirm implementation exists)
  • database.configuration.request_timeout (no symbols list — cannot confirm implementation exists)
  • functions.invocation.method_override (no symbols list — cannot confirm implementation exists)
  • functions.invocation.region_selection (no symbols list — cannot confirm implementation exists)
  • functions.invocation.request_cancellation (no symbols list — cannot confirm implementation exists)
  • functions.invocation.timeout (no symbols list — cannot confirm implementation exists)
  • realtime.subscriptions.postgres_changes_filter (no symbols list — cannot confirm implementation exists)
  • realtime.subscriptions.private_channel (no symbols list — cannot confirm implementation exists)
  • realtime.subscriptions.broadcast_self (no symbols list — cannot confirm implementation exists)
  • realtime.subscriptions.broadcast_replay (no symbols list — cannot confirm implementation exists)
  • realtime.subscriptions.postgres_changes_multiple_filters (no symbols list — cannot confirm implementation exists)
  • realtime.presence.presence_key (no symbols list — cannot confirm implementation exists)
  • realtime.configuration.heartbeat_interval (no symbols list — cannot confirm implementation exists)
  • storage.file_buckets.access_bucket (no symbols list — cannot confirm implementation exists)
  • storage.file_buckets.request_cancellation (no symbols list — cannot confirm implementation exists)

These may have been renamed, removed, or never registered. Please update the capability matrix.
See: https://github.com/supabase/sdk/blob/main/packages/capability-matrix/docs/capability-matrix.md

@grdsdev grdsdev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review findings. Some findings are on lines outside the diff, so I put them here.

1. presence.py:169: break in the leaves loop skips the remaining keys.
In _sync_diff, a leave for a key with no current presences does break, not continue. Every later key in the same diff is not processed. Example: a presence_diff has leaves for a and b, and a is unknown locally (this is the same ordering race this PR fixes for joins). The loop stops at a. The presences of b stay in self.state, and no PresenceLeave fires for b.

2. presence.py:183: leaves are still reported for presences that are already gone.
The join path now ignores known refs, but the leave path still yields PresenceLeave with all left_presences, even when none of those refs are in the state. Example: presence_state arrives without presence A, then the matching presence_diff leave for A arrives. The key still has other presences, so the leave fires a second time. Suggestion: filter left_presences to refs in current_presences, and skip the event when the list is empty.

3. presence.py:122: the join filter in _sync_state is now redundant.
_sync_diff now filters joins against the current refs. _sync_state can pass the new_state entries as joins and compute only the leaves. Then the ref-set logic is in one place.

4. PR title: the package scope is missing.
AGENTS.md says: "Commit and PR title: type(<pkg>): lowercase subject". The title fix: v3 fixes found while syncing main has no scope. With a squash merge, release-please cannot assign the commit to a package. Suggestion: merge with a rebase to keep the scoped commits, or split per package.

Comment thread src/realtime/src/realtime/client.py Resolved
Comment thread src/realtime/src/realtime/client.py Resolved
Comment thread src/realtime/src/realtime/client.py Resolved
Comment thread src/realtime/src/realtime/presence.py Resolved
Comment thread src/storage/src/storage3/analytics.py Resolved
Comment thread src/auth/tests/_async/conftest.py Resolved
Comment thread src/auth/tests/_async/conftest.py Resolved
Comment thread src/auth/tests/_sync/conftest.py Resolved
Comment thread src/realtime/src/realtime/channel.py Resolved
Comment thread src/realtime/src/realtime/client.py Resolved
Comment thread src/realtime/src/realtime/client.py Resolved
@spydon
spydon force-pushed the v3-sync/02-fixes branch 2 times, most recently from 811393d to 905a9ca Compare October 22, 2026 08:01
Base automatically changed from v3-sync/01-root to main October 26, 2026 13:51
fake.email() draws from a limited pool of names, so two tests could sign up with the same address against the shared GoTrue database and fail with "User already registered". The async and sync conftests now share one Faker instance and use fake.unique.email(), which never repeats an address within a test run.
send() removes its ref even when it is cancelled, so a reply that arrives after a timeout is dropped instead of reaching the channel stream. Presence leaves for refs that are already gone are not reported, and the remaining leave keys are still processed.
Joined presences are appended after the current ones, as in realtime-js. The orphan reply test now also checks that the listen loop kept running.
@spydon
spydon removed this pull request from stack #1799 October 26, 2026 15:40
@spydon
spydon changed the base branch from main to v3 October 26, 2026 15:40
@spydon
spydon added this pull request to stack #1841 October 26, 2026 15:40
@spydon
spydon removed this pull request from stack #1841 October 26, 2026 15:42
@spydon
spydon added this pull request to stack #1842 October 26, 2026 15:42
@spydon
spydon merged commit 56401e2 into v3 Oct 27, 2026
4 checks passed
@spydon
spydon deleted the v3-sync/02-fixes branch October 27, 2026 16:26
spydon pushed a commit that referenced this pull request Oct 30, 2026
## Why

Storage analytics users who install `storage3[iceberg]` cannot load an
existing table because the extra omits the backend selected by
`catalog()`.

Closes #1872.

## What changed

- Request PyIceberg's `pyarrow` extra in the Iceberg extra and existing
mypy group.
- Add public async and generated sync table-load regressions with valid
Iceberg REST responses. Only HTTP is mocked.
- Refresh locked Pydantic from 2.12.2 to 2.12.3 so the existing
PyIceberg 0.10 can parse table metadata. That patch [reverts an upstream
validator
regression](https://github.com/pydantic/pydantic/releases/tag/v2.12.3).

## Scope

This fixes the Storage Iceberg installation. Backend selection and
public APIs retain their existing behavior. #1513 and #1792 address
optional imports rather than backend completeness.

## Tradeoffs

Arrow adds binary wheels to the opt-in extra. A base Storage
installation still imports without PyIceberg or Arrow.

## Blast radius

The shared lock has no other existing package version changes. Auth and
PostgREST response-parsing controls pass with the Pydantic patch.

## Verification

- Both new tests fail on unchanged upstream with missing FileIO. Fresh
fixed-wheel installations pass both tests and the localhost HTTP
reproduction on Python 3.9 and 3.11.
- Frozen Storage selection passes 82 tests. Mypy, Ruff, format, sync
generation, build, lock checks, and diff checks pass. CI-pinned uv 0.8.2
executes both regressions after mypy without an extra argument.
- Full Storage service tests are unverified. Isolated Supabase CLI
startup fails before services start because Docker image blobs return
input/output errors.

AI-assisted contribution. Reproductions and checks were run locally.
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.

3 participants