Repository navigation
fix(cli): load a numeric storage.file_size_limit again (CLI-3394) - #7961
Conversation
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 9 commands. Binary size: 134.2 MB, unchanged. Details: timing ranges, API calls per command, slowest phasesTiming ranges
API calls per command
Slowest phasesNo command moved beyond noise, so there are no phase deltas. Comment |
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: snapshot supabase/supabase@ae20b4b supplied to reviewers (advisory, not a style pass).
Both independent reviews completed with zero findings. The new codec uses the existing schema to normalize finite numeric storage.file_size_limit values to strings and preserves environment-variable parsing. The added integration test covers both materialized config and keyed reads. No CLI reference prose changed. Verification was by code inspection because workspace dependencies were unavailable.
Findings
No issues found.
Stats
Claude findings: 0 · Codex findings: 0 · Confirmed: 0 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
jgoux
left a comment
There was a problem hiding this comment.
Reviewed the change and found no issues: a bare numeric storage.file_size_limit now loads as its decimal string in the materialized and file-declared config, string sizes and env overrides behave as before, and the new integration test covers the original failure.
TL;DR
fixes every config loading command failing when
[storage] file_size_limitis a bare number of byteswhat hurts the user?
file_size_limit = 5000000inconfig.tomlor a number inconfig.jsoncstoppedsupabase start,statusandconfig validatewithexpected a string, got a number, even though the published config schema takes a number of bytesfixed by:
reading that key through the
@supabase/configstorage schema itself, so5000000loads as"5000000"bytes while string sizes like"50MiB"and env overrides behave as beforeref:
storage.file_size_limitwritten as a number of bytes is rejected: "expected a string, got a number" #7959