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

supabase / supabase-py / 41625202713
98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 11:10AM UTC
Jobs 30
Files 167
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 11:09AM UTC coverage: 95.758% (+0.05%) from 95.704%
41625202713

push

github

web-flow
fix(realtime): rejoin channels on the stepped schedule (#1916)

**What this changes**

Channel rejoin now follows the Realtime `channel/subscribe` spec
proposed in supabase/sdk#304.

**The problem**

The rejoin timer computed its delay as `2**(tries + 1)`, so the first
rejoin waited 4 seconds and later ones grew without limit. On top of
that:

- The rejoin timer callback rescheduled itself every time it fired, so a
channel kept resending its join on the backoff interval, even while a
join was still waiting for a reply.
- A join that the server rejected with an error reply never scheduled a
rejoin.
- Rate-limit join errors were retried on the normal schedule.
- After a reconnect, only channels that were joined or joining got
rejoined. Channels that were already errored waited for their timer, and
attempt counts were never reset.

**The fix**

- Rejoin delays are 1, 2, 5 and 10 seconds for attempts 1 to 4, then 10
seconds for every later attempt.
- `AsyncTimer` passes the actual attempt number to its delay function,
and `schedule_timeout` accepts an explicit delay override.
- A join that fails or times out schedules a rejoin, but only while the
socket is open. The rejoin timer no longer reschedules itself.
- A join rejected with `ChannelRateLimitReached`,
`ConnectionRateLimitReached`, `ClientJoinRateLimitReached` or
`DatabaseConnectionRateLimitReached` waits 30 seconds before the next
rejoin.
- When the socket opens, every channel's rejoin attempt count resets,
and each errored channel rejoins at once.
- `_reconnect` remembers which channels were joined or joining before
the socket dropped, and those channels rejoin on the new socket even if
a late join reply from the old connection marks them joined during the
handshake. Each channel rejoins once, and channels that were removed or
are being left are skipped.

The socket reconnect curve (`AsyncRealtimeClient.connect`) is unchanged
here.

**Behavior change**

A join rejected for a reason other than rate ... (continued)

12686 of 13248 relevant lines covered (95.76%)

4.94 hits per line

Coverage Regressions

Lines Coverage ∆ File
29
89.05
2.11% src/realtime/_async/channel.py
25
86.15
1.15% src/realtime/_async/client.py
Jobs
ID Job ID Ran Files Coverage
1 run-ubuntu-latest-3.14-supabase - 41625202713.1 03 Nov 2026 11:10AM UTC 20
96.84
GitHub Action Run
2 run-ubuntu-latest-3.12-auth - 41625202713.2 03 Nov 2026 11:10AM UTC 57
93.92
GitHub Action Run
3 run-ubuntu-latest-3.13-functions - 41625202713.3 03 Nov 2026 11:10AM UTC 18
97.98
GitHub Action Run
4 run-ubuntu-latest-3.13-realtime - 41625202713.4 03 Nov 2026 11:11AM UTC 17
91.52
GitHub Action Run
5 run-ubuntu-latest-3.15-functions - 41625202713.5 03 Nov 2026 11:10AM UTC 18
97.98
GitHub Action Run
6 run-ubuntu-latest-3.11-functions - 41625202713.6 03 Nov 2026 11:10AM UTC 18
97.98
GitHub Action Run
7 run-ubuntu-latest-3.12-functions - 41625202713.7 03 Nov 2026 11:10AM UTC 18
97.98
GitHub Action Run
8 run-ubuntu-latest-3.13-supabase - 41625202713.8 03 Nov 2026 11:10AM UTC 20
96.85
GitHub Action Run
9 run-ubuntu-latest-3.11-supabase - 41625202713.9 03 Nov 2026 11:10AM UTC 20
96.85
GitHub Action Run
10 run-ubuntu-latest-3.14-functions - 41625202713.10 03 Nov 2026 11:10AM UTC 18
97.98
GitHub Action Run
11 run-ubuntu-latest-3.15-storage - 41625202713.11 03 Nov 2026 11:13AM UTC 40
95.69
GitHub Action Run
12 run-ubuntu-latest-3.11-auth - 41625202713.12 03 Nov 2026 11:10AM UTC 57
93.92
GitHub Action Run
13 run-ubuntu-latest-3.12-realtime - 41625202713.13 03 Nov 2026 11:11AM UTC 17
91.52
GitHub Action Run
14 run-ubuntu-latest-3.15-auth - 41625202713.14 03 Nov 2026 11:11AM UTC 57
93.9
GitHub Action Run
15 run-ubuntu-latest-3.12-storage - 41625202713.15 03 Nov 2026 11:11AM UTC 40
95.71
GitHub Action Run
16 run-ubuntu-latest-3.13-storage - 41625202713.16 03 Nov 2026 11:11AM UTC 40
95.71
GitHub Action Run
17 run-ubuntu-latest-3.11-storage - 41625202713.17 03 Nov 2026 11:11AM UTC 40
95.71
GitHub Action Run
18 run-ubuntu-latest-3.15-postgrest - 41625202713.18 03 Nov 2026 11:11AM UTC 39
97.71
GitHub Action Run
19 run-ubuntu-latest-3.13-auth - 41625202713.19 03 Nov 2026 11:10AM UTC 57
93.92
GitHub Action Run
20 run-ubuntu-latest-3.14-storage - 41625202713.20 03 Nov 2026 11:11AM UTC 40
95.69
GitHub Action Run
21 run-ubuntu-latest-3.11-postgrest - 41625202713.21 03 Nov 2026 11:11AM UTC 39
97.72
GitHub Action Run
22 run-ubuntu-latest-3.14-realtime - 41625202713.22 03 Nov 2026 11:11AM UTC 17
90.95
GitHub Action Run
23 run-ubuntu-latest-3.13-postgrest - 41625202713.23 03 Nov 2026 11:11AM UTC 39
97.72
GitHub Action Run
24 run-ubuntu-latest-3.15-supabase - 41625202713.24 03 Nov 2026 11:10AM UTC 20
96.84
GitHub Action Run
25 run-ubuntu-latest-3.12-supabase - 41625202713.25 03 Nov 2026 11:10AM UTC 20
96.85
GitHub Action Run
26 run-ubuntu-latest-3.12-postgrest - 41625202713.26 03 Nov 2026 11:11AM UTC 39
97.72
GitHub Action Run
27 run-ubuntu-latest-3.14-postgrest - 41625202713.27 03 Nov 2026 11:11AM UTC 39
97.71
GitHub Action Run
28 run-ubuntu-latest-3.11-realtime - 41625202713.28 03 Nov 2026 11:11AM UTC 17
91.62
GitHub Action Run
29 run-ubuntu-latest-3.15-realtime - 41625202713.29 03 Nov 2026 11:11AM UTC 17
90.95
GitHub Action Run
30 run-ubuntu-latest-3.14-auth - 41625202713.30 03 Nov 2026 11:10AM UTC 57
93.9
GitHub Action Run
Source Files on build 41625202713
  • Tree
  • List 167
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41625202713
  • db14ec51 on github
  • Prev Build on main (#41624559224)
  • Next Build on main (#41625746008)
  • 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