Repository navigation
feat(cli): add test-db skill topic - #7892
Prashansa-K wants to merge 5 commits into
Conversation
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 9 commands. Binary size: 135.7 MB, up 8.0 KB from 135.7 MB. 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@3dcb524 supplied to reviewers (advisory, not a style pass).
Both independent reviews were available. Eight distinct findings were confirmed in the new test-db skill topic. The most consequential is that the hosted retry guidance can redirect write-capable tests away from the database the user approved. The CLI reference style snapshot was available, and its scope excludes the changed skill content and metadata. The diff introduces no overlay drift, breaking CLI behavior, or fundamental conflict with the supplied next work.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟠 MAJOR | apps/cli/src/commands/skill/content/test-db.md:52 |
correctness |
claude+codex | The hosted approval instructions tell the agent to retry with a project ref even when the user approved a database URL. Substituting the ref can run write-capable SQL on a different database. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/test-db.md:25 |
correctness |
claude | The topic says every failure emits plain-text stderr in JSON mode. Setup and consent failures can instead emit a JSON error envelope on stdout. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/test-db.md:51 |
correctness |
claude | The hosted approval guidance omits that an approved retry can remove the project's network bans while establishing the connection. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/test-db.md:34 |
error-handling |
codex | The pgTAP availability check queries the local database even when extension creation failed on a hosted database. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/test-db.md:23 |
error-handling |
codex | The output guide treats a TAP plan mismatch paired with a nonzero test exit as proof that SQL execution stopped early. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/test-db.md:33 |
error-handling |
codex | The troubleshooting guide diagnoses a stopped stack from errors that also occur while the database is running but unhealthy or unreachable. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/test-db.md:45 |
correctness |
codex | The reset guidance rules out a reset for a failed assertion even when local schema drift caused the failure. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/test-db.md:51 |
correctness |
codex | The hosted warning implies that the presence of ROLLBACK determines whether test SQL changes hosted data. |
Stats
Claude findings: 3 · Codex findings: 6 · Confirmed: 8 · 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.
|
Found 1 test failure on Blacksmith runners: Failure
|
|
Waiting on #7891 (functions skill topic) to merge before this PR goes green. On #7891 replaces that footer with a per-topic |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
4780edf to
ff51d98
Compare
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-v2-3x.png)
Adds the
test-dbtopic tosupabase skill display, with guidance for running pgTAP tests throughsupabase test db.The topic covers:
supabase/tests, files or directories as arguments,test new) and what the command does and does not do (it enables pgTAP for the run, and does not apply migrations or reset).pg_proveoutput, which is not wrapped in a JSON envelope, and what the one-line stderr failure message does and does not say.migration uphelps before a run and when it does not, pointing to themigrationstopic fordb reset.--remote: supported but not recommended, and the approval flow the agent follows before it runs against a hosted database.It also registers the topic, adds it to the overview's topic list, and drops one bullet from
migrationsthat the overview already covers, to keep that topic under its size cap now that the footer lists one more topic.🤖 Generated with Claude Code