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

supabase / supabase / 42038574098
87%

Build:
DEFAULT BRANCH: master
Ran 05 Nov 2026 01:49PM UTC
Jobs 1
Files 189
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

05 Nov 2026 01:45PM UTC coverage: 87.039%. Remained the same
42038574098

push

github

web-flow
fix(studio): stop retrying client errors in the storage buckets query (#53026)

## Problem

The storage buckets queries (`usePaginatedBucketsQuery`,
`useBucketQuery`) override the global retry rule with
`shouldRetryBucketsQuery`, which retried every error except 404 and two
specific messages. A permanent client error, such as a 402 returned when
a project's service is restricted, was retried 3 times with exponential
backoff. The Storage files page showed its loading skeleton for that
whole time instead of the error that `FilesBuckets` already renders.

## Solution

`shouldRetryBucketsQuery` now skips retries for any 4xx response except
429. This matches the global default in `data/query-client.ts`. The
existing checks for 404, "Missing tenant config" and "Project has no
active API keys" are kept, with 404 now covered by the 4xx rule. 5xx and
429 errors are still retried up to `MAX_RETRY_FAILURE_COUNT`.

The function is exported so it can be unit-tested, and
`data/storage/buckets-query.test.ts` covers the new behaviour.

Checks run:
- `pnpm exec vitest run data/storage/buckets-query.test.ts` (3 passed)
- `pnpm turbo run typecheck --filter='...[origin/master]'`
- `pnpm turbo run lint --filter='[origin/master]'`
- prettier `--check` on the changed files

## Review instructions

1. Open Storage > Files (`/project/<ref>/storage/files`) for a project
whose buckets request returns a 4xx (for example a 402 for a restricted
project). The "Failed to retrieve buckets" error with the API message
shows after one request, with no long loading state.
2. Open the same page for a healthy project. Buckets load and list as
before.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
... (continued)

2043 of 2411 branches covered (84.74%)

Branch coverage included in aggregate %.

2839 of 3198 relevant lines covered (88.77%)

201.27 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 studio-tests 42038574098.1 05 Nov 2026 01:49PM UTC 756
38.16
GitHub Action Run
Source Files on build 42038574098
  • Tree
  • List 189
  • Changed 156
  • Source Changed 0
  • Coverage Changed 156
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42038574098
  • f4b60922 on github
  • Prev Build on master (#42034797724)
  • Next Build on master (#42040624329)
  • 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