Skip to content

fix(cli): stop studio and pg-meta healthchecks leaking processes (CLI-3206) - #7784

Merged
7ttp merged 1 commit into
developfrom
7ttp/cli-3206-studio-and-pg-meta-containers-collect-zombie
Nov 25, 2026
Merged

7ttp merged 1 commit into
developfrom
7ttp/cli-3206-studio-and-pg-meta-containers-collect-zombie

Conversation

@7ttp

@7ttp 7ttp commented Nov 24, 2026

Copy link
Copy Markdown
Member

TL;DR

stops the Studio and pg-meta healthchecks leaving a leftover node process behind every time a probe times out after supabase start

whats missing?

both healthchecks run node --eval under /bin/sh -c with a 2s timeout,
so a slow probe gets its sh killed and the orphaned node is handed to PID 1, the app server, which never collects it
so each timed out probe leaves one more <defunct> process in the container for as long as it runs
and a plain start already leaves one behind while Studio warms up

now fixed by:

prefixing both probes with exec so sh hands over to node and the timeout lands on node itself,
keeping the shell form that works on Podman and Windows and the same exit codes for healthy and failing probes, and running stacks pick it up after supabase stop and supabase start

ref:

@7ttp 7ttp self-assigned this Nov 24, 2026
@7ttp
7ttp requested a review from a team as a code owner November 24, 2026 15:05
@7ttp
7ttp requested a review from avallete November 24, 2026 15:05

@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@15fcb7d supplied to reviewers (advisory, not a style pass).

Both independent reviews and adjudication found no issues. Studio and pg-meta now replace the probe shell with Node, and the updated unit test expectations match. A local shell check verified process replacement, exit status, and termination of a stalled probe. The repository test suites and container-runtime probes were not run. The diff contains no CLI reference prose, the start overlay still matches the implementation, and the supplied next-branch context shows no conflict.

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.

@github-actions

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit 5f72f76 against develop at 931e346 · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 390 ms 408 ms no real change
supabase --help help 535 ms 494 ms no real change (-8%, within normal variation)
supabase init init 408 ms 416 ms no real change
supabase migration new bench migration-new 450 ms 492 ms no real change (+9%, within normal variation)
supabase config convert config-convert 468 ms 442 ms no real change (-6%, within normal variation)
supabase config validate config-validate 357 ms 404 ms no real change (+13%, within normal variation)
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 369 ms 361 ms no real change
supabase projects list projects-list 344 ms 327 ms no real change
supabase functions list --project-ref replayfixtureprojref functions-list 442 ms 514 ms no real change (+16%, within normal variation)

API calls: unchanged for all 9 commands.

Binary size: 135.6 MB, unchanged.

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

Timing ranges

Command Workload Before range After range Change Verdict
supabase --version version 290-525 ms 287-502 ms +18 ms (+5%) within noise
supabase --help help 409-902 ms 372-667 ms -41 ms (-8%) within noise
supabase init init 361-615 ms 370-616 ms +8 ms (+2%) within noise
supabase migration new bench migration-new 381-617 ms 394-626 ms +43 ms (+9%) within noise
supabase config convert config-convert 386-522 ms 368-539 ms -26 ms (-6%) within noise
supabase config validate config-validate 329-566 ms 330-494 ms +47 ms (+13%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 296-478 ms 312-589 ms -8 ms (-2%) within noise
supabase projects list projects-list 265-505 ms 271-629 ms -17 ms (-5%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 350-585 ms 333-633 ms +72 ms (+16%) 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.

@7ttp
7ttp added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 25, 2026
@7ttp
7ttp added this pull request to the merge queue Nov 25, 2026
Merged via the queue into develop with commit 9beea65 Nov 25, 2026
55 checks passed
@7ttp
7ttp deleted the 7ttp/cli-3206-studio-and-pg-meta-containers-collect-zombie branch November 25, 2026 09:44
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.

Studio and pg-meta containers collect zombie processes when their healthcheck times out

2 participants