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

supabase / supavisor / 19741285883
65%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2025 03:39PM 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

27 Nov 2025 03:32PM UTC coverage: 63.26% (+2.0%) from 61.246%
19741285883

push

github

web-flow
fix(defrag): improve statems, caching, logs, circuit breaking (#744)

This is a big "defrag" PR solving many of the paper cuts from the
current architecture:

### Secret caching
Ensure we don't store secrets inside start options, which caused
unintentional caching on the pool, and made it required to restart the
pool if a password changed.

Introduces a central secret caching module instead of relying on
arbitrary cachex calls.

Breaks into two types of secrets:
- validation secrets: used to validate credentials on connection
attempts, **can be skipped for users where we don't want caching, e.g.:
users with single use passwords**
- upstream secrets: used for connection. 

### Logs
- Reduces log duplication: terminate processes normally on expected
situations
- Better messages

### Pool termination
- Terminate pool early if Db doesn't exist anymore: this resolves an
issue where we would keep getting spammed by prisma shadow dbs that get
deleted but we would keep trying to connect to them.

### Circuit breaker
- Under situations we can't proceed (can't connect to the database,
can't get secrets) don't allow pool initialization. Give a user friendly
message.

### ClientHandler changes
- Break ClientHandler into more modules
- Break ClientHandler into more states, with no arbitrary socket
receives
- Try to isolate some parts of ClientHandler: error handling, auth, etc
- Remove dead code (read replicas)
- Some refactoring/renaming, e.g.: db_pid -> db_connection (it was a
tuple)
- Use state enter for state tracking in ClientHandler (removes manual
logger.metadata calls, adds telemetry)
- Improve active counting

### Breaking changes
Support for aliases removed

### Misc
- Better error decoding and formatting

651 of 845 new or added lines in 25 files covered. (77.04%)

22 existing lines in 8 files now uncovered.

1851 of 2926 relevant lines covered (63.26%)

4216.46 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% lib/supavisor/application.ex
1
97.5
lib/supavisor/circuit_breaker.ex
1
94.12
lib/supavisor/client_handler/cancel.ex
1
41.3
-14.25% lib/supavisor/handler_helpers.ex
1
95.17
-0.57% lib/supavisor/protocol/server.ex
1
69.72
4.1% lib/supavisor/tenants.ex
3
84.21
lib/supavisor/tenant_cache.ex
4
0.0
lib/supavisor/client_handler/http.ex
4
81.82
lib/supavisor/client_handler/protocol_helpers.ex
4
85.23
-1.61% lib/supavisor/secret_checker.ex
5
0.0
lib/supavisor/circuit_breaker/janitor.ex
6
68.75
-3.1% lib/supavisor.ex
6
37.5
-10.65% lib/supavisor/monitoring/prom_ex.ex
9
75.0
lib/supavisor/secret_cache.ex
11
0.0
lib/supavisor/client_handler/proxy.ex
14
85.38
-2.37% lib/supavisor/manager.ex
15
81.23
1.3% lib/supavisor/db_handler.ex
20
75.9
lib/supavisor/client_handler/auth.ex
41
44.59
lib/supavisor/client_handler/error.ex
46
76.79
10.45% lib/supavisor/client_handler.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% lib/supavisor/application.ex
1
68.75
-3.1% lib/supavisor.ex
1
85.23
-1.61% lib/supavisor/secret_checker.ex
1
76.79
10.45% lib/supavisor/client_handler.ex
3
37.5
-10.65% lib/supavisor/monitoring/prom_ex.ex
3
41.3
-14.25% lib/supavisor/handler_helpers.ex
4
74.48
-2.76% lib/supavisor/protocol/debug.ex
8
81.23
1.3% lib/supavisor/db_handler.ex
Jobs
ID Job ID Ran Files Coverage
1 run-integration - 19741285883.1 27 Nov 2025 03:39PM UTC 79
40.91
GitHub Action Run
2 run-tests - 19741285883.2 27 Nov 2025 03:43PM UTC 79
59.88
GitHub Action Run
Source Files on build 19741285883
  • Tree
  • List 79
  • Changed 19
  • Source Changed 17
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19741285883
  • 8c3f973c on github
  • Prev Build on main (#18883475998)
  • Next Build on main (#19769343042)
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