Skip to content

fix(cli): fail test db when no tests ran (CLI-2194) - #6210

Open
7ttp wants to merge 4 commits into
developfrom
cli-2194-supabase-test-db-silently-reports-files0-tests0-on-linux
Open

fix(cli): fail test db when no tests ran (CLI-2194)#6210
7ttp wants to merge 4 commits into
developfrom
cli-2194-supabase-test-db-silently-reports-files0-tests0-on-linux

Conversation

@7ttp

@7ttp 7ttp commented Aug 15, 2026

Copy link
Copy Markdown
Member

TL;DR

fixes supabase test db reporting success on a run that executed zero tests,
which was caused by passing pg_prove's exit code straight through when it prints Result: NOTESTS and still exits 0
and is now fixed by watching the TAP summary for that verdict and failing with a msg naming the paths that were searched.
A typo'd path, an empty tests directory, and a bind mount the Docker daemon resolved against a different filesystem than the CLI all hit this, so CI could stay green while testing nothing.
The TAP stream on stdout is unchanged, the diagnostic goes to stderr, and the new exit 1 is recorded in the Go divergence because Go exits 0 here...

ref:

@7ttp 7ttp self-assigned this Aug 15, 2026
@7ttp
7ttp requested a review from a team as a code owner August 15, 2026 06:56

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3026a8132d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli/src/legacy/shared/legacy-test-db.handler.ts Outdated
Comment thread apps/cli/src/legacy/shared/legacy-test-db.handler.ts
@github-actions

github-actions Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@3e371dd86348307c1235a6e50d58bfac0a59f530

Preview package for commit 3e371dd.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c74e787da8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli/src/legacy/shared/legacy-test-db.handler.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f47a1c1c49

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli/src/legacy/shared/legacy-test-db.handler.ts Outdated
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.

supabase test db silently reports Files=0, Tests=0 on Linux regardless of path argument

1 participant