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

supabase / realtime / 45763996643
93%

Build:
DEFAULT BRANCH: main
Ran 26 Nov 2026 05:55AM UTC
Jobs 1
Files 150
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

26 Nov 2026 05:48AM UTC coverage: 93.494% (+0.02%) from 93.475%
45763996643

push

github

web-flow
feat(rollcall): add diff heartbeats (#2666)

* feat(rollcall): adds Changes.merge which will be used for diff building

* feat(rollcall): sends diff heartbeats after the first snapshot heartbeat

* chore(rollcall): make the diff heartbeat path cheaper

An empty diff cost more to send and apply than a snapshot of a small
tenant. Cut the fixed cost of the heartbeat path. The protocol, the
messages and the telemetry do not change.

Receive:
- Return early from Peer.apply_diff/3 for an empty diff. It runs only
  after diff_status/3 decided that the diff applies.
- Skip View.write in put_peer when the changes are empty.
- Use map_size/1 in Peer.empty?/1 instead of Enum.empty?/1.

Tick:
- Make one pass over the peers to tick, purge, count the overdue
  peers, find the most silent peer and collect the behind peers. This
  replaces three passes and a Stream. The order of the events does not
  change, and a purged peer gets no request.

Changes:
- Store the leaves as a plain map instead of a MapSet. Changes.new/0
  builds a literal.
- Return [] without Enum.map for empty joins, join refs and leave refs.
- Make merge/2 fold only the new changes into the pending changes. The
  cost of a change no longer depends on the number of pending changes,
  so a burst of N tracks in one period costs O(N) and not O(N^2).

A quiet heartbeat (one send and six applies) falls from about 1,630 to
about 750 reductions. In the presence bench, steady reductions fall by
17% to 40% against the snapshot heartbeat, and memory does not change.

Add a test: a tick sends no request to a peer that the same tick
purges.

5015 of 5364 relevant lines covered (93.49%)

4285.19 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
87.43
-0.52% lib/realtime/tenants/replication_connection.ex
Jobs
ID Job ID Ran Files Coverage
1 45763996643.1 26 Nov 2026 05:55AM UTC 600
62.71
GitHub Action Run
Source Files on build 45763996643
  • Tree
  • List 150
  • Changed 121
  • Source Changed 1
  • Coverage Changed 121
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45763996643
  • d38a4d73 on github
  • Prev Build on main (#45742636341)
  • Next Build on main (#45802433973)
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