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

supabase / cli / 28176719735
65%

Build:
DEFAULT BRANCH: develop
Ran 25 Jun 2026 02:19PM UTC
Jobs 1
Files 229
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

25 Jun 2026 02:11PM UTC coverage: 64.981% (-0.02%) from 65.002%
28176719735

push

github

web-flow
fix(cli): detect stale local postgres before declarative sync (#5646)

## What
- Add a declarative schema sync guard that inspects the local Postgres
container image tag before generating a migration.
- Fail with an actionable stop/start suggestion when the running local
Postgres container tag is stale.
- Cover missing, matching, registry-different, and stale local container
cases with regression tests.

## Why
A stale local Postgres container after a CLI upgrade can produce
declarative sync output against an inconsistent local stack, such as
incorrect extension drops.

## Validation
- `cd apps/cli-go && go test ./cmd ./internal/db/declarative`
- `cd apps/cli-go && GOMAXPROCS=4 go test ./...`
- `git diff --check`

Fixes #5555

---------

Co-authored-by: Julien Goux <hi@jgoux.dev>

10976 of 16891 relevant lines covered (64.98%)

10.44 hits per line

Coverage Regressions

Lines Coverage ∆ File
87
26.28
3.37% cmd/db_schema_declarative.go
17
55.42
0.08% internal/db/declarative/declarative.go
2
82.41
0.0% internal/storage/rm/rm.go
Jobs
ID Job ID Ran Files Coverage
1 28176719735.1 25 Jun 2026 02:19PM UTC 229
64.98
GitHub Action Run
Source Files on build 28176719735
  • Tree
  • List 229
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28176719735
  • 229493c2 on github
  • Prev Build on develop (#28165851845)
  • Next Build on develop (#28181096084)
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