Repository navigation
fix(cli): clean up timed out healthcheck probes (CLI-3229) - #7808
Conversation
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 9 commands. Binary size: 135.7 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@a36d218 supplied to reviewers (advisory, not a style pass).
Confirmed two minor edge cases in Docker health-check argument generation. Empty command arrays can produce a probe that succeeds without running a check, and Bash can reject dash-prefixed executable names before launching them. Current CLI service definitions supply explicit executable names and exercise neither case. Verification used the generated arguments and local shells because Docker daemon access was denied. The PR changes no CLI reference prose, and the supplied next-branch context shows no fundamental conflict.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟡 MINOR | apps/cli/src/command-internal/db-bootstrap/docker-create-args.ts:181 |
correctness |
codex | An empty health-check test or a CMD test with no command now emits a probe that reports success without checking the container. |
| 🟡 MINOR | apps/cli/src/command-internal/db-bootstrap/docker-create-args.ts:181 |
shell-compatibility |
codex | On images that use Bash for shell-form health checks, a dash-prefixed probe executable can fail before it starts. |
Stats
Claude findings: 0 · Codex findings: 2 · Confirmed: 2 · 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.
TL;DR
stops imgproxy piling up a leftover process every time its healthcheck times out after
supabase startwhats missing?
plain command healthchecks like
imgproxy healthrun under/bin/sh -c, so a timeout kills onlyshand hands the probe to imgproxy, which never collects itnow fixed by:
starting those probes with
exec, so the timeout kills the probe itself and nothing is left behindref: