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

supabase / supavisor / 21673231902
66%

Build:
DEFAULT BRANCH: main
Ran 04 Feb 2026 01:34PM UTC
Jobs 2
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

04 Feb 2026 01:26PM UTC coverage: 65.675% (+0.1%) from 65.58%
21673231902

push

github

web-flow
fix(db-handler): wait for secrets when they aren't available (#813)

Instead of terminating, the connection enters a waiting state, and
responds to checkout attempts with:
```
Error: Authentication credentials are invalid. Please reconnect with fresh credentials to restore pool functionality.
```

This helps in a few situations:
- Avoids restart loop when a pool has no client connections and stale
credentials, and poolboy wants to start a db handler to keep it warm.
Instead of trying to start a DbHandler that fails immediately, the
DbHandler will be waiting until an user connects with fresh credentials,
and only then tries to connect to the upstream db.

- Avoids multiple wrong password attempts when credentials change with a
pool running with multiple open connections. E.g.: assume we have 100
client connections, 10 db connections, and the user changes the
password. Eventually, an 11th connection is needed. Starting the
DbHandler with old credentials will fail with a bad password. Before,
every attempt to create this 11th connection would result in an error.
With 100 existing client connections, we could try to auth to the
upstream db up to 100 times, if no new client connections came up to
refresh our cache. This could lead supavisor to get banned by the
upstream db. Now the 11th connection will hog a slot in the pool and
refuse checkouts, so the pool continues existing, degraded, until a new
connection comes up, without impacting connectivity to the upstream db.

39 of 57 new or added lines in 5 files covered. (68.42%)

1 existing line in 1 file now uncovered.

1965 of 2992 relevant lines covered (65.68%)

4144.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
79.28
-0.44% lib/supavisor/client_handler.ex
7
81.14
-0.54% lib/supavisor/db_handler.ex
8
81.51
-3.88% lib/supavisor/manager.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
81.14
-0.54% lib/supavisor/db_handler.ex
Jobs
ID Job ID Ran Files Coverage
1 run-integration - 21673231902.1 04 Feb 2026 01:36PM UTC 79
41.14
GitHub Action Run
2 run-tests - 21673231902.2 04 Feb 2026 01:34PM UTC 79
62.4
GitHub Action Run
Source Files on build 21673231902
  • Tree
  • List 79
  • Changed 9
  • Source Changed 5
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21673231902
  • 7feb9fd3 on github
  • Prev Build on main (#21579574864)
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