Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 48 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 18, 2026
PostgREST's rule is fixed (GET/HEAD, 503/520, 4 attempts, on/off switch only); Storage's is configurable. Both share full-jitter capped backoff, Retry-After honoured up to the cap, stop on cancellation, and no replay of one-shot bodies or of errors thrown by caller-supplied code. Refs SDK-1791, supabase/supabase-swift#1341. Co-Authored-By: Claude <noreply@anthropic.com>
Rewrite both specs as normative contracts per the current TEMPLATE, after comparing the retry code in all seven SDKs. Add a decision flowchart to each. Database: state the per-request override works both ways, define what counts as a transport failure, and stop retrying when Retry-After exceeds the 30 s cap instead of clamping it. Storage: restrict replays to reads (GET, HEAD and the two list POSTs), drop the Idempotency-Key rule that the Storage API does not honour, retry 429 only with Retry-After, make the attempt count the only knob, and stop retries once a streamed download returns.
grdsdev
force-pushed
the
guilherme/sdk-1791-auto-retry-specs
branch
from
November 26, 2026 09:34
a10bf94 to
c00ebb5
Compare
grdsdev
marked this pull request as ready for review
November 26, 2026 09:34
This was referenced Nov 26, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds spec files for two existing feature IDs that had none. Each spec has a decision flowchart.
database.configuration.auto_retry: a fixed rule.GET/HEADonly,503/520or a network failure, 4 attempts in total, a per-client switch and a per-request override in either direction. Full-jitter backoff (1 s base, 30 s cap).Retry-Afteris honoured up to 30 s; a longer value ends the retries.X-Retry-Count: non the n-th retry. Cancellation, errors from caller-supplied hooks, and decoding errors are never retried.storage.configuration.auto_retry: reads only (GET,HEAD, and the two listPOSTs). Statuses408,429(only withRetry-After),500,502–504,520–524,530. A per-client attempt count (default 3,1turns retries off). Full-jitter backoff (500 ms base, 20 s cap). Retries end when a streamed download returns.How the SDKs compare today
Retry-Afterover capThe divergences from these specs become issues in each SDK repository after merge.
bun run validatepasses. Written alongside supabase/supabase-swift#1341. Linear: SDK-1791.