• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-py / 41641937400
98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 01:10PM UTC
Jobs 30
Files 175
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Nov 2026 01:10PM UTC coverage: 96.991% (+0.02%) from 96.969%
41641937400

push

github

web-flow
fix(realtime): keep postgres bindings and report mismatches on join replies (#1929)

Fixes SDK-2672.

## Problem

`on_join_push_ok` in `AsyncRealtimeChannel` rebuilt
`postgres_changes_callbacks` from the server's join reply. When the
reply had no `postgres_changes`, or an empty list, the matching loop was
skipped, every client postgres callback was thrown away, and the channel
still reported `SUBSCRIBED`. Database changes were then silently never
delivered.

## Fix

The join reply handling now matches realtime-js (`RealtimeChannel.ts`,
`subscribe` and `_updatePostgresBindings`):

| Join reply | Before | After (and realtime-js) |
| ------------------------------------------------ |
----------------------------------- |
-------------------------------------------------------- |
| no `postgres_changes` key | `SUBSCRIBED`, all callbacks dropped |
`SUBSCRIBED`, client bindings kept unchanged |
| `postgres_changes: []` with client bindings | `SUBSCRIBED`, all
callbacks dropped | unsubscribe, state errored, `CHANNEL_ERROR`
"mismatch" |
| mismatched server entry | unsubscribe, `CHANNEL_ERROR` | unsubscribe,
state errored, `CHANNEL_ERROR` "mismatch" |
| matching server entries | ids assigned, `SUBSCRIBED` | ids assigned,
`SUBSCRIBED` |

realtime-js compares schema, table and filter with `isFilterValueEqual`,
which treats `null` and `undefined` as equal. Python has no `undefined`:
pydantic parses both a missing and a `null` filter to `None`, so plain
equality already gives the same result. A test pins this down.

## Tests

`src/realtime/tests/test_join_reply_postgres_bindings.py` covers the
cases above without a live server, using a fake connection patched into
`realtime._async.client.connect` and replies delivered through
`channel._handle_message`. Three of them fail on `main`.

Ran `make ruff`, mypy, and the full realtime test suite (including the
integration tests against the local Supabase stack): 124 passed.

## Self-review changes

A review of this PR led... (continued)

13377 of 13792 relevant lines covered (96.99%)

5.02 hits per line

Coverage Regressions

Lines Coverage ∆ File
9
95.86
1.0% src/realtime/_async/channel.py
Jobs
ID Job ID Ran Files Coverage
1 run-ubuntu-latest-3.15-functions - 41641937400.1 03 Nov 2026 01:10PM UTC 18
97.98
GitHub Action Run
2 run-ubuntu-latest-3.12-realtime - 41641937400.2 03 Nov 2026 01:12PM UTC 17
94.5
GitHub Action Run
3 run-ubuntu-latest-3.11-auth - 41641937400.3 03 Nov 2026 01:11PM UTC 61
96.37
GitHub Action Run
4 run-ubuntu-latest-3.14-supabase - 41641937400.4 03 Nov 2026 01:10PM UTC 22
96.97
GitHub Action Run
5 run-ubuntu-latest-3.11-realtime - 41641937400.5 03 Nov 2026 01:11PM UTC 17
94.59
GitHub Action Run
6 run-ubuntu-latest-3.13-storage - 41641937400.6 03 Nov 2026 01:11PM UTC 42
96.09
GitHub Action Run
7 run-ubuntu-latest-3.13-realtime - 41641937400.7 03 Nov 2026 01:11PM UTC 17
94.5
GitHub Action Run
8 run-ubuntu-latest-3.14-storage - 41641937400.8 03 Nov 2026 01:11PM UTC 42
96.08
GitHub Action Run
9 run-ubuntu-latest-3.14-realtime - 41641937400.9 03 Nov 2026 01:11PM UTC 17
94.15
GitHub Action Run
10 run-ubuntu-latest-3.11-postgrest - 41641937400.10 03 Nov 2026 01:11PM UTC 39
97.83
GitHub Action Run
11 run-ubuntu-latest-3.12-auth - 41641937400.11 03 Nov 2026 01:11PM UTC 61
96.37
GitHub Action Run
12 run-ubuntu-latest-3.13-postgrest - 41641937400.12 03 Nov 2026 01:11PM UTC 39
97.83
GitHub Action Run
13 run-ubuntu-latest-3.11-functions - 41641937400.13 03 Nov 2026 01:10PM UTC 18
97.98
GitHub Action Run
14 run-ubuntu-latest-3.13-functions - 41641937400.14 03 Nov 2026 01:10PM UTC 18
97.98
GitHub Action Run
15 run-ubuntu-latest-3.15-realtime - 41641937400.15 03 Nov 2026 01:12PM UTC 17
94.15
GitHub Action Run
16 run-ubuntu-latest-3.14-functions - 41641937400.16 03 Nov 2026 01:10PM UTC 18
97.98
GitHub Action Run
17 run-ubuntu-latest-3.12-postgrest - 41641937400.17 03 Nov 2026 01:11PM UTC 39
97.83
GitHub Action Run
18 run-ubuntu-latest-3.11-supabase - 41641937400.18 03 Nov 2026 01:10PM UTC 22
96.98
GitHub Action Run
19 run-ubuntu-latest-3.15-postgrest - 41641937400.19 03 Nov 2026 01:11PM UTC 39
97.82
GitHub Action Run
20 run-ubuntu-latest-3.11-storage - 41641937400.20 03 Nov 2026 01:11PM UTC 42
96.09
GitHub Action Run
21 run-ubuntu-latest-3.12-storage - 41641937400.21 03 Nov 2026 01:11PM UTC 42
96.09
GitHub Action Run
22 run-ubuntu-latest-3.15-auth - 41641937400.22 03 Nov 2026 01:11PM UTC 61
96.36
GitHub Action Run
23 run-ubuntu-latest-3.12-supabase - 41641937400.23 03 Nov 2026 01:10PM UTC 22
96.98
GitHub Action Run
24 run-ubuntu-latest-3.14-auth - 41641937400.24 03 Nov 2026 01:11PM UTC 61
96.36
GitHub Action Run
25 run-ubuntu-latest-3.15-storage - 41641937400.25 03 Nov 2026 01:13PM UTC 42
96.08
GitHub Action Run
26 run-ubuntu-latest-3.13-auth - 41641937400.26 03 Nov 2026 01:11PM UTC 61
96.37
GitHub Action Run
27 run-ubuntu-latest-3.12-functions - 41641937400.27 03 Nov 2026 01:10PM UTC 18
97.98
GitHub Action Run
28 run-ubuntu-latest-3.13-supabase - 41641937400.28 03 Nov 2026 01:10PM UTC 22
96.98
GitHub Action Run
29 run-ubuntu-latest-3.14-postgrest - 41641937400.29 03 Nov 2026 01:11PM UTC 39
97.82
GitHub Action Run
30 run-ubuntu-latest-3.15-supabase - 41641937400.30 03 Nov 2026 01:10PM UTC 22
96.97
GitHub Action Run
Source Files on build 41641937400
  • Tree
  • List 175
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41641937400
  • cfb21597 on github
  • Prev Build on main (#41641867822)
  • Next Build on main (#41641996150)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc