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

supabase / cli / 32834614222
62%
develop: 62%

Build:
Build:
LAST BUILD BRANCH: 7ttp/cli-2262-cli-rejects-new-sbp_v0_-personal-access-token-format
DEFAULT BRANCH: develop
Ran 25 Aug 2026 09:57AM UTC
Jobs 1
Files 95
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 Aug 2026 09:56AM UTC coverage: 62.406%. Remained the same
32834614222

push

github

web-flow
fix(cli): detect dead db connections (CLI-2207) (#6277)

## TL;DR

fixes `supabase db reset` and `supabase start` hanging forever with no
error when the database connection dies while migrations are being
applied

## whats broken?

node-postgres silently discards every protocol frame once a socket stops
being writable, while still reporting the write as successful, so the
whole batch goes nowhere and the CLI waits forever on a reply the server
was never asked for

it also leaves TCP keepalive off by default, where the Go CLI's driver
had it on, so a peer that dies without a FIN or RST is never noticed
either

## fixed now by:

- failing a batch that never reached the wire as a connection error,
carrying the driver's own reason instead of blaming the migration's
first statement
- discarding that pooled connection, so the next batch redials instead
of writing into the same dead socket
- turning TCP keepalive on for every connection the CLI opens, so a
silently dead peer is eventually detected instead of waited on

a server that stays alive but never answers still waits, matching the Go
CLI, since that is indistinguishable from a long running statement

## ref:
- closes: https://github.com/supabase/cli/issues/6244

5571 of 8927 relevant lines covered (62.41%)

6.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32834614222.1 25 Aug 2026 09:57AM UTC 95
62.41
GitHub Action Run
Source Files on build 32834614222
  • Tree
  • List 95
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32834614222
  • 11878ae3 on github
  • Prev Build on gh-readonly-queue/develop/pr-6310-81937a2720240e44b85614c984119c67b7d1a9e2 (#32831103028)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc