Skip to content

fix(cli): clean up timed out healthcheck probes (CLI-3229) - #7808

Merged
7ttp merged 1 commit into
developfrom
7ttp/cli-3229-imgproxy-container-collects-zombie-processes
Nov 25, 2026
Merged

7ttp merged 1 commit into
developfrom
7ttp/cli-3229-imgproxy-container-collects-zombie-processes

Conversation

@7ttp

@7ttp 7ttp commented Nov 25, 2026

Copy link
Copy Markdown
Member

TL;DR

stops imgproxy piling up a leftover process every time its healthcheck times out after supabase start

whats missing?

plain command healthchecks like imgproxy health run under /bin/sh -c, so a timeout kills only sh and hands the probe to imgproxy, which never collects it

now fixed by:

starting those probes with exec, so the timeout kills the probe itself and nothing is left behind

ref:

@7ttp
7ttp requested a review from a team as a code owner November 25, 2026 13:07
@7ttp
7ttp requested a review from avallete November 25, 2026 13:07
@7ttp 7ttp self-assigned this Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit 9363c0a against develop at 3933460 · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 176 ms 178 ms no real change
supabase --help help 211 ms 259 ms no real change (+23%, within normal variation)
supabase init init 212 ms 212 ms no real change
supabase migration new bench migration-new 341 ms 334 ms no real change
supabase config convert config-convert 310 ms 321 ms no real change
supabase config validate config-validate 324 ms 313 ms no real change
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 362 ms 351 ms no real change
supabase projects list projects-list 306 ms 306 ms no real change
supabase functions list --project-ref replayfixtureprojref functions-list 321 ms 326 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 157-206 ms 156-255 ms +2 ms (+1%) within noise
supabase --help help 197-260 ms 201-298 ms +48 ms (+23%) within noise
supabase init init 197-280 ms 190-257 ms +1 ms (+0%) within noise
supabase migration new bench migration-new 281-394 ms 237-427 ms -7 ms (-2%) within noise
supabase config convert config-convert 264-431 ms 284-405 ms +11 ms (+4%) within noise
supabase config validate config-validate 279-409 ms 293-343 ms -11 ms (-3%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 311-414 ms 304-429 ms -11 ms (-3%) within noise
supabase projects list projects-list 287-331 ms 262-408 ms +0 ms (+0%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 284-362 ms 266-392 ms +5 ms (+1%) 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@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.

@7ttp
7ttp added this pull request to the merge queue Nov 25, 2026
Merged via the queue into develop with commit fd20ce6 Nov 25, 2026
63 checks passed
@7ttp
7ttp deleted the 7ttp/cli-3229-imgproxy-container-collects-zombie-processes branch November 25, 2026 15:58
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.

imgproxy container collects zombie processes when its healthcheck times out

2 participants