Skip to content

fix(cli): recover a stopped stack on its network - #7913

Open
7ttp wants to merge 2 commits into
developfrom
7ttp/cli-3313-db-reset-fails-to-respect-prior-network-id-followup-2
Open

7ttp wants to merge 2 commits into
developfrom
7ttp/cli-3313-db-reset-fails-to-respect-prior-network-id-followup-2

Conversation

@7ttp

@7ttp 7ttp commented Dec 1, 2026

Copy link
Copy Markdown
Member

TL;DR

keeps a stopped stack on its docker network when supabase start or supabase db start brings it back without --network-id

what might hurt the user?

after supabase start --network-id <name>, containers stopped outside the cli, like docker stop, came back on the generated network. a plain supabase start moved the whole stack there and a plain supabase db start moved only the database, so the other services lost it and the api returned 503

fixed by:

both read the network from the stopped database container before recreating it, and so do the db schema declarative commands that start the database, while --network-id and SUPABASE_NETWORK_ID still win

ref:

@7ttp 7ttp self-assigned this Dec 1, 2026
@7ttp
7ttp requested a review from a team as a code owner December 1, 2026 19:02
@7ttp
7ttp requested a review from kanadgupta December 1, 2026 19:02
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit b3eeed8 against develop at 0c3e35f · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 227 ms 209 ms no real change (-8%, within normal variation)
supabase --help help 207 ms 230 ms no real change (+11%, within normal variation)
supabase init init 204 ms 203 ms no real change
supabase migration new bench migration-new 208 ms 206 ms no real change
supabase config convert config-convert 212 ms 220 ms no real change
supabase config validate config-validate 240 ms 285 ms no real change (+19%, within normal variation)
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 333 ms 358 ms no real change (+8%, within normal variation)
supabase projects list projects-list 401 ms 368 ms no real change (-8%, within normal variation)
supabase functions list --project-ref replayfixtureprojref functions-list 317 ms 302 ms no real change

API calls: unchanged for all 9 commands.

Binary size: 135.7 MB, unchanged.

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

Timing ranges

Command Workload Before range After range Change Verdict
supabase --version version 184-248 ms 179-311 ms -18 ms (-8%) within noise
supabase --help help 180-338 ms 201-288 ms +23 ms (+11%) within noise
supabase init init 190-282 ms 175-236 ms 0 ms (0%) within noise
supabase migration new bench migration-new 189-237 ms 192-275 ms -1 ms (-1%) within noise
supabase config convert config-convert 180-276 ms 201-241 ms +9 ms (+4%) within noise
supabase config validate config-validate 214-351 ms 246-329 ms +45 ms (+19%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 282-593 ms 277-494 ms +26 ms (+8%) within noise
supabase projects list projects-list 302-494 ms 275-553 ms -33 ms (-8%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 293-362 ms 251-367 ms -16 ms (-5%) 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[bot]

This comment was marked as resolved.

This branch has not been deployed

No deployments
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.

1 participant