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

supabase / supabase-py / 41641996150
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: 97.012% (+0.02%) from 96.991%
41641996150

push

github

web-flow
chore(realtime): remove unused _leave_open_topic (#1930)

Resolves SDK-2676.

## What

Removes `AsyncRealtimeClient._leave_open_topic()`. Nothing called it, so
coverage always reported it as uncovered. Also removes the `AsyncMock`
stub for it in `tests/test_presence.py`.

## Why delete instead of wiring it up

- **realtime-js never called it from `channel()`.** In realtime-js v2
(and in phoenix.js, where it comes from), the only caller of
`_leaveOpenTopic` was `RealtimeChannel._rejoin()`. `channel()` returned
the existing channel for the topic. realtime-js removed it in
supabase/supabase-js#2119 when it switched to phoenix's JS client.
- **Python already removed that same caller on purpose.** `git log -S
_leave_open_topic` shows that cfbe5943 (#1346, "ammend reconnect logic
to not unsubscribe") replaced the call in `_rejoin()` with a log line.
During a reconnect the helper found the rejoining channel itself and
unsubscribed it. The method has been dead since then. Its only other
appearance is the test stub added in 6be6c0cd.
- **It can't find a duplicate.** `self.channels` is a dict keyed by
topic, so the helper could only ever match `self.channels[topic]`, which
is the channel being joined. When `channel()` replaces a leaving
channel, the old instance is dropped from the dict and is already
leaving, not joined or joining. `_remove_channel()` only deletes the
entry if it is still the same instance, so the replacement is safe
without this helper.

## Testing

- `git grep leave_open` returns nothing.
- `make ruff` is clean.
- With realtime infra running, `uv run --frozen --package realtime
pytest tests` gives 116 passed, including `test_channel_rejoin.py`,
`test_subscription_status.py` and `test_presence.py`.
- `uv run --frozen --package realtime mypy src/realtime tests` reports
no issues.

## Review

I reviewed the diff with `/code-review` (high effort). It found no
issues, so nothing changed.

13376 of 13788 relevant lines covered (97.01%)

5.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-ubuntu-latest-3.13-supabase - 41641996150.1 03 Nov 2026 01:11PM UTC 22
96.98
GitHub Action Run
2 run-ubuntu-latest-3.15-supabase - 41641996150.2 03 Nov 2026 01:11PM UTC 22
96.97
GitHub Action Run
3 run-ubuntu-latest-3.14-functions - 41641996150.3 03 Nov 2026 01:10PM UTC 18
97.98
GitHub Action Run
4 run-ubuntu-latest-3.11-realtime - 41641996150.4 03 Nov 2026 01:12PM UTC 17
94.85
GitHub Action Run
5 run-ubuntu-latest-3.11-storage - 41641996150.5 03 Nov 2026 01:12PM UTC 42
96.09
GitHub Action Run
6 run-ubuntu-latest-3.13-storage - 41641996150.6 03 Nov 2026 01:11PM UTC 42
96.09
GitHub Action Run
7 run-ubuntu-latest-3.12-realtime - 41641996150.7 03 Nov 2026 01:12PM UTC 17
94.76
GitHub Action Run
8 run-ubuntu-latest-3.11-supabase - 41641996150.8 03 Nov 2026 01:11PM UTC 22
96.98
GitHub Action Run
9 run-ubuntu-latest-3.11-postgrest - 41641996150.9 03 Nov 2026 01:12PM UTC 39
97.83
GitHub Action Run
10 run-ubuntu-latest-3.14-supabase - 41641996150.10 03 Nov 2026 01:11PM UTC 22
96.97
GitHub Action Run
11 run-ubuntu-latest-3.11-auth - 41641996150.11 03 Nov 2026 01:11PM UTC 61
96.37
GitHub Action Run
12 run-ubuntu-latest-3.12-functions - 41641996150.12 03 Nov 2026 01:10PM UTC 18
97.98
GitHub Action Run
13 run-ubuntu-latest-3.11-functions - 41641996150.13 03 Nov 2026 01:10PM UTC 18
97.98
GitHub Action Run
14 run-ubuntu-latest-3.13-realtime - 41641996150.14 03 Nov 2026 01:12PM UTC 17
94.76
GitHub Action Run
15 run-ubuntu-latest-3.12-supabase - 41641996150.15 03 Nov 2026 01:11PM UTC 22
96.98
GitHub Action Run
16 run-ubuntu-latest-3.13-postgrest - 41641996150.16 03 Nov 2026 01:12PM UTC 39
97.83
GitHub Action Run
17 run-ubuntu-latest-3.13-auth - 41641996150.17 03 Nov 2026 01:11PM UTC 61
96.37
GitHub Action Run
18 run-ubuntu-latest-3.15-realtime - 41641996150.18 03 Nov 2026 01:12PM UTC 17
94.42
GitHub Action Run
19 run-ubuntu-latest-3.12-auth - 41641996150.19 03 Nov 2026 01:11PM UTC 61
96.37
GitHub Action Run
20 run-ubuntu-latest-3.15-functions - 41641996150.20 03 Nov 2026 01:11PM UTC 18
97.98
GitHub Action Run
21 run-ubuntu-latest-3.14-auth - 41641996150.21 03 Nov 2026 01:11PM UTC 61
96.36
GitHub Action Run
22 run-ubuntu-latest-3.12-postgrest - 41641996150.22 03 Nov 2026 01:12PM UTC 39
97.83
GitHub Action Run
23 run-ubuntu-latest-3.14-storage - 41641996150.23 03 Nov 2026 01:12PM UTC 42
96.08
GitHub Action Run
24 run-ubuntu-latest-3.14-postgrest - 41641996150.24 03 Nov 2026 01:11PM UTC 39
97.82
GitHub Action Run
25 run-ubuntu-latest-3.15-storage - 41641996150.25 03 Nov 2026 01:13PM UTC 42
96.08
GitHub Action Run
26 run-ubuntu-latest-3.14-realtime - 41641996150.26 03 Nov 2026 01:12PM UTC 17
94.42
GitHub Action Run
27 run-ubuntu-latest-3.15-auth - 41641996150.27 03 Nov 2026 01:11PM UTC 61
96.36
GitHub Action Run
28 run-ubuntu-latest-3.13-functions - 41641996150.28 03 Nov 2026 01:10PM UTC 18
97.98
GitHub Action Run
29 run-ubuntu-latest-3.12-storage - 41641996150.29 03 Nov 2026 01:11PM UTC 42
96.09
GitHub Action Run
30 run-ubuntu-latest-3.15-postgrest - 41641996150.30 03 Nov 2026 01:12PM UTC 39
97.82
GitHub Action Run
Source Files on build 41641996150
  • 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 #41641996150
  • ca09489d on github
  • Prev Build on main (#41641937400)
  • Next Build on main (#41643835757)
  • 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