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

supabase / supabase-flutter / 29023496087
87%

Build:
DEFAULT BRANCH: main
Ran 09 Jul 2026 02:00PM UTC
Jobs 8
Files 85
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

09 Jul 2026 01:58PM UTC coverage: 86.615% (+0.001%) from 86.614%
29023496087

push

github

web-flow
refactor: drop retry dependency in favor of an in-house helper (#1571)

## What

Removes the `retry` package from both `gotrue` and `storage_client`,
replacing it with a small self-contained `RetryOptions`/`retry` helper
(`lib/src/retry.dart`) in each package.

- `gotrue` used the top-level `retry()` (token refresh).
- `storage_client` used `RetryOptions(...).retry(...)` (request
retries).

## Why

Both packages pulled in `retry` for the same narrow use: exponential
backoff gated by a `retryIf` predicate. The helper is ~40 lines and
mirrors the package's behavior exactly:

- 200 ms delay factor, `2^attempt` backoff
- 25% jitter (`randomizationFactor`)
- 30 s max delay
- 8 max attempts by default

`gotrue`'s time-budget `retryIf` depends on these exact defaults, so
they are preserved.

## Testing

- New `retry_test.dart` in `gotrue` covers success-after-retries,
`maxAttempts` cutoff, `retryIf` short-circuit, `RetryOptions.retry` (the
storage usage shape), and exponential/capped delay math — all pass.
- `dart analyze` clean for both packages.

Note: the helper is duplicated in each package because they are
published independently and there is no shared internal utility package.

33 of 38 new or added lines in 2 files covered. (86.84%)

4601 of 5312 relevant lines covered (86.62%)

4.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
78.95
packages/storage_client/lib/src/retry.dart
1
94.74
packages/gotrue/lib/src/retry.dart
Jobs
ID Job ID Ran Files Coverage
1 storage_client - 29023496087.1 09 Jul 2026 02:02PM UTC 6
92.71
GitHub Action Run
2 postgrest - 29023496087.2 09 Jul 2026 02:03PM UTC 9
84.87
GitHub Action Run
3 functions_client - 29023496087.3 09 Jul 2026 02:00PM UTC 2
98.8
GitHub Action Run
4 supabase_flutter - 29023496087.4 09 Jul 2026 02:01PM UTC 11
79.82
GitHub Action Run
5 realtime_client - 29023496087.5 09 Jul 2026 02:03PM UTC 11
89.41
GitHub Action Run
6 yet_another_json_isolate - 29023496087.6 09 Jul 2026 02:00PM UTC 1
77.78
GitHub Action Run
7 supabase - 29023496087.7 09 Jul 2026 02:01PM UTC 15
81.24
GitHub Action Run
8 gotrue - 29023496087.8 09 Jul 2026 02:04PM UTC 30
86.11
GitHub Action Run
Source Files on build 29023496087
  • Tree
  • List 85
  • Changed 2
  • Source Changed 2
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29023496087
  • b81d2121 on github
  • Prev Build on main (#29022880549)
  • Next Build on main (#29030706929)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc