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

supabase / supabase-py / 41667595084
98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 03:48PM UTC
Jobs 30
Files 187
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 03:47PM UTC coverage: 99.03% (-0.02%) from 99.047%
41667595084

push

github

web-flow
fix(realtime): wait for the join reply in subscribe (#1940)

SDK-217

Refs #1209

## Why

`AsyncRealtimeChannel.subscribe()` sent the join and returned straight
away. When `await channel.subscribe(callback)` returned, the callback
had usually not been called yet, so callers had to build their own
`asyncio.Event` plus `wait_for` to find out whether the channel was
joined.

## What changed

- `subscribe()` now waits until the join settles before it returns: an
`ok` reply (`SUBSCRIBED`), an `error` reply or postgres bindings
mismatch (`CHANNEL_ERROR`), the existing join timeout (`TIMED_OUT`), a
channel or socket error while joining (`CHANNEL_ERROR`), or the server
closing the channel (`CLOSED`).
- Leaving the channel (`unsubscribe()`, `client.remove_channel()`,
`client.remove_all_channels()`, including when that call is cancelled
partway) or calling `client.close()` while the join is pending also ends
the wait right away. In those cases `subscribe()` returns before the
`CLOSED` or `TIMED_OUT` callback, which arrives later as it did before.
- Every subscribe state notification goes through one method,
`_notify_subscribe_state`, which calls the user callback and then
releases a pending `subscribe()`. The callback is still called exactly
once per state change, and the waiter is released even if the callback
raises.
- No new timer. The wait is bounded by the join push timeout that
already exists (`AsyncRealtimeClient(timeout=...)`, 10 seconds by
default).
- Cancelling the task that awaits `subscribe()` only stops the wait. The
join keeps going in the background and the callback still fires, the
same as before this change. A `join()` waiting on the same join is not
cancelled with it.
- Reconnect and rejoin are unchanged. Only the first join started by
`subscribe()` is awaited; later rejoins (rejoin timer, reconnect,
presence resubscribe) keep reporting through the callback only.
- The deprecated `join()` now waits for a `subscribe()` that is still in
flight i... (continued)

15715 of 15869 relevant lines covered (99.03%)

5.13 hits per line

Coverage Regressions

Lines Coverage ∆ File
10
96.72
-0.74% src/realtime/_async/channel.py
2
99.26
0.01% src/realtime/_async/client.py
Jobs
ID Job ID Ran Files Coverage
1 run-ubuntu-latest-3.13-realtime - 41667595084.1 03 Nov 2026 03:49PM UTC 17
97.86
GitHub Action Run
2 run-ubuntu-latest-3.11-postgrest - 41667595084.2 03 Nov 2026 03:49PM UTC 42
99.57
GitHub Action Run
3 run-ubuntu-latest-3.15-supabase - 41667595084.3 03 Nov 2026 03:48PM UTC 22
97.92
GitHub Action Run
4 run-ubuntu-latest-3.15-realtime - 41667595084.4 03 Nov 2026 03:49PM UTC 17
97.73
GitHub Action Run
5 run-ubuntu-latest-3.12-functions - 41667595084.5 03 Nov 2026 03:48PM UTC 18
97.98
GitHub Action Run
6 run-ubuntu-latest-3.11-storage - 41667595084.6 03 Nov 2026 03:49PM UTC 43
98.5
GitHub Action Run
7 run-ubuntu-latest-3.12-storage - 41667595084.7 03 Nov 2026 03:49PM UTC 43
98.5
GitHub Action Run
8 run-ubuntu-latest-3.14-postgrest - 41667595084.8 03 Nov 2026 03:49PM UTC 42
99.57
GitHub Action Run
9 run-ubuntu-latest-3.13-auth - 41667595084.9 03 Nov 2026 03:49PM UTC 68
98.83
GitHub Action Run
10 run-ubuntu-latest-3.12-auth - 41667595084.10 03 Nov 2026 03:49PM UTC 68
98.83
GitHub Action Run
11 run-ubuntu-latest-3.13-postgrest - 41667595084.11 03 Nov 2026 03:49PM UTC 42
99.57
GitHub Action Run
12 run-ubuntu-latest-3.15-postgrest - 41667595084.12 03 Nov 2026 03:49PM UTC 42
99.57
GitHub Action Run
13 run-ubuntu-latest-3.13-storage - 41667595084.13 03 Nov 2026 03:49PM UTC 43
98.5
GitHub Action Run
14 run-ubuntu-latest-3.11-functions - 41667595084.14 03 Nov 2026 03:48PM UTC 18
97.98
GitHub Action Run
15 run-ubuntu-latest-3.11-auth - 41667595084.15 03 Nov 2026 03:49PM UTC 68
98.83
GitHub Action Run
16 run-ubuntu-latest-3.12-realtime - 41667595084.16 03 Nov 2026 03:49PM UTC 17
97.86
GitHub Action Run
17 run-ubuntu-latest-3.12-postgrest - 41667595084.17 03 Nov 2026 03:49PM UTC 42
99.57
GitHub Action Run
18 run-ubuntu-latest-3.15-auth - 41667595084.18 03 Nov 2026 03:49PM UTC 68
98.83
GitHub Action Run
19 run-ubuntu-latest-3.14-storage - 41667595084.19 03 Nov 2026 03:49PM UTC 43
98.5
GitHub Action Run
20 run-ubuntu-latest-3.15-functions - 41667595084.20 03 Nov 2026 03:48PM UTC 18
97.98
GitHub Action Run
21 run-ubuntu-latest-3.11-supabase - 41667595084.21 03 Nov 2026 03:48PM UTC 22
97.93
GitHub Action Run
22 run-ubuntu-latest-3.13-supabase - 41667595084.22 03 Nov 2026 03:48PM UTC 22
97.93
GitHub Action Run
23 run-ubuntu-latest-3.14-realtime - 41667595084.23 03 Nov 2026 03:49PM UTC 17
97.73
GitHub Action Run
24 run-ubuntu-latest-3.14-auth - 41667595084.24 03 Nov 2026 03:49PM UTC 68
98.83
GitHub Action Run
25 run-ubuntu-latest-3.12-supabase - 41667595084.25 03 Nov 2026 03:48PM UTC 22
97.93
GitHub Action Run
26 run-ubuntu-latest-3.14-functions - 41667595084.26 03 Nov 2026 03:48PM UTC 18
97.98
GitHub Action Run
27 run-ubuntu-latest-3.15-storage - 41667595084.27 03 Nov 2026 03:51PM UTC 43
98.5
GitHub Action Run
28 run-ubuntu-latest-3.11-realtime - 41667595084.28 03 Nov 2026 03:49PM UTC 17
97.86
GitHub Action Run
29 run-ubuntu-latest-3.13-functions - 41667595084.29 03 Nov 2026 03:48PM UTC 18
97.98
GitHub Action Run
30 run-ubuntu-latest-3.14-supabase - 41667595084.30 03 Nov 2026 03:48PM UTC 22
97.92
GitHub Action Run
Source Files on build 41667595084
  • Tree
  • List 187
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41667595084
  • c725015c on github
  • Prev Build on main (#41667435053)
  • Next Build on main (#41673893468)
  • 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