Skip to content

fix(cli): load a numeric storage.file_size_limit again (CLI-3394) - #7961

Merged
7ttp merged 1 commit into
developfrom
7ttp/cli-3394-storagefile_size_limit-written-as-a-number-of
Dec 4, 2026
Merged

7ttp merged 1 commit into
developfrom
7ttp/cli-3394-storagefile_size_limit-written-as-a-number-of

Conversation

@7ttp

@7ttp 7ttp commented Dec 4, 2026

Copy link
Copy Markdown
Member

TL;DR

fixes every config loading command failing when [storage] file_size_limit is a bare number of bytes

what hurts the user?

file_size_limit = 5000000 in config.toml or a number in config.jsonc stopped supabase start, status and config validate with expected a string, got a number, even though the published config schema takes a number of bytes

fixed by:

reading that key through the @supabase/config storage schema itself, so 5000000 loads as "5000000" bytes while string sizes like "50MiB" and env overrides behave as before

ref:

@7ttp 7ttp self-assigned this Dec 4, 2026
@7ttp
7ttp requested a review from a team as a code owner December 4, 2026 12:20
@7ttp
7ttp requested a review from kanadgupta December 4, 2026 12:20
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit 9d51e03 against develop at 0e8cd8a · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 121 ms 124 ms no real change
supabase --help help 113 ms 116 ms no real change
supabase init init 115 ms 125 ms no real change (+8%, within normal variation)
supabase migration new bench migration-new 126 ms 118 ms no real change (-6%, within normal variation)
supabase config convert config-convert 117 ms 114 ms no real change
supabase config validate config-validate 116 ms 116 ms no real change
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 126 ms 124 ms no real change
supabase projects list projects-list 108 ms 111 ms no real change
supabase functions list --project-ref replayfixtureprojref functions-list 112 ms 115 ms no real change

API calls: unchanged for all 9 commands.

Binary size: 134.2 MB, unchanged.

Details: timing ranges, API calls per command, slowest phases

Timing ranges

Command Workload Before range After range Change Verdict
supabase --version version 103-138 ms 109-172 ms +3 ms (+3%) within noise
supabase --help help 105-162 ms 103-143 ms +3 ms (+3%) within noise
supabase init init 99-150 ms 108-158 ms +9 ms (+8%) within noise
supabase migration new bench migration-new 102-150 ms 103-165 ms -8 ms (-6%) within noise
supabase config convert config-convert 108-125 ms 109-124 ms -3 ms (-3%) within noise
supabase config validate config-validate 111-118 ms 110-129 ms +0 ms (+0%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 120-132 ms 121-136 ms -2 ms (-1%) within noise
supabase projects list projects-list 106-120 ms 108-116 ms +3 ms (+3%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 110-122 ms 111-149 ms +3 ms (+3%) within noise

API calls per command

Command Workload Before After Endpoint changes
supabase --version version 0 0
supabase --help help 0 0
supabase init init 0 0
supabase migration new bench migration-new 0 0
supabase config convert config-convert 0 0
supabase config validate config-validate 0 0
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 2 2
supabase projects list projects-list 1 1
supabase functions list --project-ref replayfixtureprojref functions-list 2 2

Slowest phases

No command moved beyond noise, so there are no phase deltas.

Workflow run

Comment /bench to run the lightweight benchmark (this comment) again on the latest commit, or /bench full to also run the integration-heavy benchmark, which posts in its own comment.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 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 jgoux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@7ttp
7ttp added this pull request to the merge queue Dec 4, 2026
Merged via the queue into develop with commit 5cf5785 Dec 4, 2026
54 checks passed
@7ttp
7ttp deleted the 7ttp/cli-3394-storagefile_size_limit-written-as-a-number-of branch December 4, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

storage.file_size_limit written as a number of bytes is rejected: "expected a string, got a number"

2 participants