• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 27351701595
65%
develop: 65%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-5572-b899193b72da71ec461dc69ebfcd53eb7486194d
DEFAULT BRANCH: develop
Ran 11 Jun 2026 01:53PM UTC
Jobs 1
Files 224
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Jun 2026 01:51PM UTC coverage: 64.676%. Remained the same
27351701595

push

github

web-flow
feat(cli): port supabase test db and test new (#5522)

## What changed

Native TypeScript port of `supabase test db` and `supabase test new`
into the legacy shell (stable channel), replacing the Phase-0 Go
proxies.

- **`test new`** — writes `supabase/tests/<name>_test.sql` from the
embedded pgtap template; matches Go's relative-path success message,
file location, and exit codes. `--template` (pgtap).
- **`test db`** — `--db-url` / `--local` / `--linked` + variadic paths.
Connects via `@effect/sql-pg` to enable/disable the pgTAP extension,
then runs `supabase/pg_prove:3.36` through `docker run` (read-only
volume mounts, `--security-opt label:disable`, local docker network or
host networking). Honors `--network-id`, and the
`db-url`/`linked`/`local` mutual-exclusivity is byte-for-byte identical
to Go's cobra error.

## New shared infrastructure (for upcoming `db reset` / `db dump` ports)

- `LegacyDbConnection` — Postgres connection seam (single swap point for
the driver).
- `LegacyDbConfigResolver` — `--db-url` / `--local` / `--linked`
resolution, including the linked sub-flow (temp login-role via
`V1CreateLoginRole`, pooler fallback with a public-suffix MITM domain
check, network-ban unban, backoff). Ports Go's
`flags.ParseDatabaseConfig` + `NewDbConfigWithPassword`.
- `LegacyDockerRun` — one-shot `docker run` runner.

The Management API stack is built lazily on the `--linked` branch only,
so `--local` / `--db-url` never resolve an access token (auth-free,
matching Go).

## Reviewer notes

- **Driver choice:** added `@effect/sql-pg` (4.0.0-beta.75, pure-JS
`pg`); verified it bundles and round-trips under `bun build --compile`.
- **pgTAP drop-skip:** `PgClient` exposes no `OnNotice` hook, so
"already installed" is detected with a `pg_extension` pre-check before
enabling — equivalent observable behavior to Go's notice-code 42710
callback.
- **Credentials** are kept out of all error output (docker spawn
failure, db-url parse failure).
- **Documented di... (continued)

10528 of 16278 relevant lines covered (64.68%)

7.15 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
80.61
0.0% internal/storage/rm/rm.go
Jobs
ID Job ID Ran Files Coverage
1 27351701595.1 11 Jun 2026 01:53PM UTC 224
64.68
GitHub Action Run
Source Files on build 27351701595
  • Tree
  • List 224
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27351701595
  • b4970053 on github
  • Prev Build on gh-readonly-queue/develop/pr-5545-bd39bcf5e613be87943f8bb8fe4ce75c8dfd84de (#27347052762)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc