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

supabase / supavisor / 23354780349
82%

Build:
DEFAULT BRANCH: main
Ran 20 Mar 2026 05:43PM UTC
Jobs 2
Files 122
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

20 Mar 2026 05:29PM UTC coverage: 82.389% (+0.02%) from 82.37%
23354780349

push

github

web-flow
fix: improve handling of database connection failures (#884)

Handles 57p03, doing a graceful pool shutdown.

Removes the existing retry state in favor of relying on poolboy
restarting us, and introducing a connection_cooldown state. This ensures
that both connection closed and failures to connect in general are
treated the same way, and avoids some erroneous behaviour[1] after
disconnects.

New state diagram:

<img width="1164" height="982" alt="image"
src="https://github.com/user-attachments/assets/958eaf8f-7047-4a1e-829f-79db8cde5b4f"
/>


[1] Reconnect_on_db_close could silently reconnect losing server-side
only session state. Since supavisor doesn't track the whole state
necessary to recover the connection, the new connection could not
exactly match the previous one, causing errors for the clients.

49 of 51 new or added lines in 5 files covered. (96.08%)

7 existing lines in 7 files now uncovered.

2573 of 3123 relevant lines covered (82.39%)

58994.37 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
92.9
0.92% lib/supavisor/db_handler.ex
1
87.1
0.14% lib/supavisor/tenant_cache.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.5
-4.17% lib/supavisor/client_handler/proxy/supervisor.ex
1
92.86
-7.14% lib/supavisor/client_handler/proxy.ex
1
92.9
0.92% lib/supavisor/db_handler.ex
1
88.46
-3.21% lib/supavisor/client_handler/error.ex
1
76.92
-7.69% lib/supavisor/erl_sys_mon.ex
1
93.85
-1.54% lib/supavisor/circuit_breaker/sliding_window.ex
1
88.54
-1.04% lib/supavisor/monitoring/prom_ex.ex
Jobs
ID Job ID Ran Files Coverage
1 run-tests - 23354780349.1 20 Mar 2026 05:45PM UTC 122
80.95
GitHub Action Run
2 run-integration - 23354780349.2 20 Mar 2026 05:43PM UTC 122
42.65
GitHub Action Run
Source Files on build 23354780349
  • Tree
  • List 122
  • Changed 15
  • Source Changed 6
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23354780349
  • 82b9bb06 on github
  • Prev Build on main (#23353917213)
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