Repository navigation
fix(cli): stop studio and pg-meta healthchecks leaking processes (CLI-3206) - #7784
Conversation
There was a problem hiding this comment.
🤖 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.
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 9 commands. Binary size: 135.6 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 |
TL;DR
stops the Studio and pg-meta healthchecks leaving a leftover
nodeprocess behind every time a probe times out aftersupabase startwhats missing?
both healthchecks run
node --evalunder/bin/sh -cwith a 2s timeout,so a slow probe gets its
shkilled and the orphanednodeis handed to PID 1, the app server, which never collects itso each timed out probe leaves one more
<defunct>process in the container for as long as it runsand a plain start already leaves one behind while Studio warms up
now fixed by:
prefixing both probes with
execsoshhands over tonodeand the timeout lands onnodeitself,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 stopandsupabase startref: