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

supabase / supabase-swift / 44070007488
96%

Build:
DEFAULT BRANCH: main
Ran 17 Nov 2026 11:08AM UTC
Jobs 1
Files 222
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

17 Nov 2026 11:00AM UTC coverage: 96.126% (+0.003%) from 96.123%
44070007488

push

github

web-flow
feat(realtime): add buffering policies to presence state and broadcast streams (#1840)

* feat(realtime): add buffering policies to presence state and broadcast streams

Stream buffers had no limit, so a slow consumer made memory grow without
bound. Streams now take a buffering policy.

- `presenceStates(bufferingPolicy:)` defaults to `.bufferingNewest(1)`.
  Each element is the full state, so a slow consumer skips to the latest
  one. Pass `.unbounded` to keep every state.
- `broadcasts(event:bufferingPolicy:)` defaults to `.unbounded`. Pass a
  bounded policy for high-rate events such as cursors.

Status, event, presence change, and Postgres streams stay unbounded: a
dropped element there loses a change or breaks a documented guarantee.

* fix(realtime): keep the old stream signatures for ABI stability

A defaulted parameter changes a function's symbol, so the API digester
reported `presenceStates()` and `broadcasts(event:)` as renamed. Keep
both as their own functions and add overloads where `bufferingPolicy`
is required. Callers and binaries built against the old API keep
working.

* test(realtime): wait for the latest presence state in the late-track test

`presenceStates()` keeps only the latest state, so the replayed state can
be skipped when the next sync arrives first. The test read the first
state, then waited for a later one that never came. Wait for the state
with Bob and check that it still has Ana.

20 of 20 new or added lines in 3 files covered. (100.0%)

16350 of 17009 relevant lines covered (96.13%)

666154.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44070007488.1 17 Nov 2026 11:08AM UTC 222
96.13
GitHub Action Run
Source Files on build 44070007488
  • Tree
  • List 222
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44070007488
  • 3a5863a2 on github
  • Prev Build on main (#44064984150)
  • Next Build on main (#44073164287)
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