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

supabase / supabase-flutter / 32253470757
89%

Build:
DEFAULT BRANCH: main
Ran 19 Aug 2026 12:37PM UTC
Jobs 10
Files 108
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

19 Aug 2026 12:35PM UTC coverage: 88.727% (-0.04%) from 88.767%
32253470757

push

github

web-flow
refactor(postgrest)!: fix the retried status codes to 503 and 520 (#1737)

## What

`PostgrestRetryOptions.statusCodes` is a static constant now instead of
a configurable field, so `503 Service Unavailable` and `520 Unknown
Error` are the only responses that ever trigger a retry.

Letting callers pass their own set invites retrying responses that
cannot change on a second attempt, a `500` from a failing query for
example, which only multiplies the load on the project without a chance
of a different answer.

```dart
// Before
retryOptions: PostgrestRetryOptions(count: 5, statusCodes: {500, 503, 520}),

// After
retryOptions: PostgrestRetryOptions(count: 5),
```

Everything else about the retry configuration is unchanged: `enabled`,
`count`, the backoff knobs and the per-request `.retry()` override all
stay.

Since the set is a `const` now, the two places that snapshotted it with
`Set.unmodifiable` so a caller could not mutate a live client's behavior
are gone as well.

### Breaking changes

| Before | After |
| --- | --- |
| `PostgrestRetryOptions(statusCodes: …)` | removed |
| `PostgrestRetryOptions.copyWith(statusCodes: …)` | removed |
| `PostgrestRetryOptions.statusCodes` (instance field) |
`PostgrestRetryOptions.statusCodes` (static constant) |
| `PostgrestRetryOptions.defaultStatusCodes` |
`PostgrestRetryOptions.statusCodes` |

The v2 `PostgrestClient(retryableStatusCodes:)` and
`PostgrestClientOptions(retryableStatusCodes:)` were already replaced by
`retryOptions` in #1731, and now have no replacement at all.
`MIGRATION.md` gets a section for that and the existing v3 retry section
drops its `statusCodes` references.

## Tests

- `packages/postgrest/test/retry_test.dart` loses the "configurable
retryable status codes" group, gains an explicit "GET does not retry on
500" case and an assertion that the fixed set is `{503, 520}`.
- `packages/supabase/test/postgrest_options_test.dart` proved that the
configured options were threaded through `from()`, ... (continued)

1 of 3 new or added lines in 2 files covered. (33.33%)

2 existing lines in 2 files now uncovered.

5903 of 6653 relevant lines covered (88.73%)

4.25 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
66.67
-7.02% packages/postgrest/lib/src/postgrest_retry_options.dart

Coverage Regressions

Lines Coverage ∆ File
1
88.57
-1.43% packages/postgrest/lib/src/postgrest_query_builder.dart
1
66.67
-7.02% packages/postgrest/lib/src/postgrest_retry_options.dart
Jobs
ID Job ID Ran Files Coverage
9 postgrest - 32253470757.9 19 Aug 2026 12:39PM UTC 11
84.47
GitHub Action Run
10 supabase_flutter - 32253470757.10 19 Aug 2026 12:37PM UTC 10
81.92
GitHub Action Run
6 supabase_storage - 32034091672.6 17 Aug 2026 01:18PM UTC 8
97.18
GitHub Action Run
2 yet_another_json_isolate - 32034091672.2 17 Aug 2026 01:16PM UTC 1
94.44
GitHub Action Run
4 supabase_common - 32034091672.4 17 Aug 2026 01:16PM UTC 16
99.48
GitHub Action Run
3 supabase_functions - 32034091672.3 17 Aug 2026 01:16PM UTC 3
97.75
GitHub Action Run
5 iceberg - 32034091672.5 17 Aug 2026 01:16PM UTC 5
68.62
GitHub Action Run
8 supabase - 32250379512.8 19 Aug 2026 12:04PM UTC 13
91.26
GitHub Action Run
10 supabase_auth - 32250379512.10 19 Aug 2026 12:04PM UTC 29
90.77
GitHub Action Run
9 supabase_realtime - 32036696049.9 17 Aug 2026 01:51PM UTC 12
90.19
GitHub Action Run
Source Files on build 32253470757
  • Tree
  • List 108
  • Changed 16
  • Source Changed 15
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32253470757
  • 17487ff5 on github
  • Prev Build on main (#32250379512)
  • Next Build on main (#32259216865)
  • 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