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

supabase / cli / 38255347868
67%
develop: 46%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9
DEFAULT BRANCH: develop
Ran 12 Oct 2026 01:24PM UTC
Jobs 1
Files 79
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

12 Oct 2026 01:23PM UTC coverage: 66.737%. Remained the same
38255347868

push

github

web-flow
fix(stack): keep Auth database and stack host connections alive (#7080)

## TL;DR

stops local Auth and the stack host from opening a new connection for
every request.

## whats broken?

Auth keeps no idle Postgres connections unless an idle pool size is set,
so every Auth request opened and closed its own database connection and
left it in `TIME_WAIT`. A busy test suite could use up the macOS port
range, the same way gateway writes did before #7075.

The stack host's HTTP client (readiness probes every 250 ms, log
forwarding to Analytics) also used a non-keep-alive agent, so each call
opened a new connection.

## now fixed by:

- local Auth keeps its pooled connections open when idle: 2 in the stack
(the cap of its image), 10 in `supabase start`. No new `config.toml`
keys.
- the stack host's HTTP client reuses connections and closes them after
4 s idle, before the shortest upstream keep-alive of 5 s.

## known limitation:

Auth's database driver doesn't detect a pooled connection that Postgres
closed while Auth kept running (`pg_terminate_backend`, or a Postgres
restart without an Auth restart), so each such connection fails one Auth
request before it is replaced. `db reset` restarts Auth and is
unaffected.

## ref:

- closes: https://github.com/supabase/cli/issues/6981
- extends: https://github.com/supabase/cli/pull/7075

4097 of 6139 relevant lines covered (66.74%)

7.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38255347868.1 12 Oct 2026 01:24PM UTC 79
66.74
GitHub Action Run
Source Files on build 38255347868
  • Tree
  • List 79
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38255347868
  • d04a5345 on github
  • Prev Build on gh-readonly-queue/develop/pr-7067-b7c8b85fa4c6e23fcf555baeb058f7244ded762d (#38250617995)
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