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

supabase / supabase-swift / 44311596979
96%

Build:
DEFAULT BRANCH: main
Ran 18 Nov 2026 01:21PM UTC
Jobs 1
Files 223
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

18 Nov 2026 01:13PM UTC coverage: 96.166% (+0.006%) from 96.16%
44311596979

push

github

web-flow
fix(helpers): use full jitter for the retry backoff (#1860)

* fix(helpers): use full jitter for the retry backoff

The draft auto_retry specs (supabase/sdk PR 190) draw the wait before the
n-th retry from 0...min(maxDelay, baseDelay * 2^(n-1)). RetryPolicy drew it
from cap/2...cap (equal jitter). Full jitter spreads clients that failed
together over the whole window, and matches the Realtime reconnect backoff.

backoffDelay(retry:random:) takes the jitter source so tests can pin it.

* refactor(helpers): share one full-jitter backoff between HTTP retries and Realtime

RetryPolicy.backoffDelay repeated the full-jitter math of Realtime's
BackoffPolicy. Move BackoffPolicy into Helpers, which Realtime already
depends on, and have RetryPolicy delegate to it. Move its tests to
HelpersTests and drop the randomized RetryPolicy backoff test that the
pinned-jitter test now covers.

* docs(helpers): fix backoffDelay doc comment for swift-format lint

* test(helpers): cover BackoffPolicy's default random source

* test(helpers): tighten backoff tests after code review

- The interceptor test now runs ten retries and checks that the wait window grows,
  so a wrong retry number fails it.
- The default random test draws 200 delays and checks they spread over the window.
- RetryPolicyTests keeps one delegation check instead of repeating BackoffPolicy's tests.
- The RetryPolicy doc no longer says it drives Realtime's reconnect delays.

4 of 4 new or added lines in 1 file covered. (100.0%)

16502 of 17160 relevant lines covered (96.17%)

662843.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44311596979.1 18 Nov 2026 01:21PM UTC 223
96.17
GitHub Action Run
Source Files on build 44311596979
  • Tree
  • List 223
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44311596979
  • 22017653 on github
  • Prev Build on main (#44309027756)
  • Next Build on main (#44344158464)
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