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

supabase / cli / 28026600674
65%

Build:
DEFAULT BRANCH: develop
Ran 23 Jun 2026 12:37PM UTC
Jobs 1
Files 228
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

23 Jun 2026 12:30PM UTC coverage: 64.768% (-0.2%) from 64.97%
28026600674

push

github

web-flow
feat(cli): port db diff and db pull to native TypeScript (CLI-1313) (#5620)

Ports `supabase db diff` and `supabase db pull` from the Go CLI to
native Effect handlers in the legacy shell, replacing their Phase-0
proxy stubs. Linear: CLI-1313. Builds on the pg-delta infrastructure
merged in #5586.

## What changed

**Shared engine (promotion + new modules)**
- Promotes the pg-delta engine — adapter, seam, cache, deno-templates,
declarative write, and its errors — out of `db/schema/declarative/` into
`db/shared/legacy-pgdelta.*`, so `diff`, `pull`, and `declarative`
import one copy. The `generate`/`sync` call sites are updated in the
same change; `findDropStatements` is hoisted to `legacy-sql-split.ts`.
- New shared modules: `legacy-diff-engine.ts` (pure `resolveDiffEngine`
/ `resolvePullDiffEngine` / `shouldUsePgDelta`), `legacy-migra.*`
(byte-exact Go templates + a `legacyDiffMigra` free function over the
pg-delta context with the OOM→`supabase/migra` bash fallback), and
migration-file helpers.

**Live-shadow Go seam**
- Adds a hidden `db __shadow` command (with `PrepareShadowSource` /
`PrepareRawShadow`, refactored out of `DiffDatabase` /
`pullDeclarativePgDelta`). It provisions the shadow Postgres, prints its
connection URL + container id, and leaves it running so the native TS
handler runs migra/pg-delta against it and tears it down — mirroring
Go's `differ(shadowConfig, config)` for both engines (migra needs a live
source, which the catalog-file `__catalog` seam couldn't provide).
`start.SetupDatabase` stays unported, which is why provisioning remains
in Go.

**db diff**
- Native pg-delta / migra diff via edge-runtime; explicit
`--from`/`--to` mode (always pg-delta). `--use-pgadmin` /
`--use-pg-schema` rebuild the argv and delegate to the bundled Go binary
(telemetry disabled on the child so the single `cli_command_executed`
event comes from the TS command).

**db pull**
- Native pg-delta / migra migration pull + `--declarative` pg-delta
export; r... (continued)

10804 of 16681 relevant lines covered (64.77%)

10.23 hits per line

Coverage Regressions

Lines Coverage ∆ File
91
22.91
-0.7% cmd/db_schema_declarative.go
88
45.51
-5.17% cmd/db.go
29
57.36
2.51% internal/db/pull/pull.go
25
59.17
2.89% internal/db/diff/diff.go
15
93.8
0.16% internal/utils/connect.go
7
41.67
5.3% cmd/pgdelta_catalog.go
Jobs
ID Job ID Ran Files Coverage
1 28026600674.1 23 Jun 2026 12:37PM UTC 228
64.77
GitHub Action Run
Source Files on build 28026600674
  • Tree
  • List 228
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28026600674
  • df3c7401 on github
  • Prev Build on gh-readonly-queue/develop/pr-5634-41d9f2bc610f695776332373f1906fa41c7305da (#28023425419)
  • Next Build on develop (#28027565215)
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