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

supabase / supavisor / 36638313288
84%

Build:
DEFAULT BRANCH: main
Ran 29 Sep 2026 10:23PM UTC
Jobs 2
Files 142
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

29 Sep 2026 10:13PM UTC coverage: 80.752% (+0.5%) from 80.253%
36638313288

push

github

web-flow
feat: add pool rebalancing (#1218)

A pool stays on the node it started on, so pools started while only part
of the cluster was up are concentrated on the first nodes.

Supavisor.rebalance/1 stops, on every node, the pools whose target node
from determine_node/2 is another one. Their clients are drained and
start the pool on its new node when they reconnect. Pools are stopped in
the background, and the pools being moved are returned. It is exposed as
POST /api/rebalance, with dry_run and max_concurrency options.

The target node depends on the tenant's availability zone, which is now
stored in the :syn metadata of the tenant supervisor. Cluster pools
store nil, as their replicas may be in different zones.

43 of 47 new or added lines in 8 files covered. (91.49%)

7 existing lines in 2 files now uncovered.

3050 of 3777 relevant lines covered (80.75%)

49876.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
84.8
5.74% lib/supavisor.ex
1
85.4
7.62% lib/supavisor/tenants.ex

Coverage Regressions

Lines Coverage ∆ File
5
89.11
-6.24% lib/supavisor/monitoring/prom_ex.ex
2
93.85
-3.08% lib/supavisor/circuit_breaker/sliding_window.ex
Jobs
ID Job ID Ran Files Coverage
1 run-integration - 36638313288.1 29 Sep 2026 10:29PM UTC 142
41.91
GitHub Action Run
2 run-tests - 36638313288.2 29 Sep 2026 10:23PM UTC 142
79.53
GitHub Action Run
Source Files on build 36638313288
  • Tree
  • List 142
  • Changed 14
  • Source Changed 7
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36638313288
  • cb237c01 on github
  • Prev Build on main (#36602489035)
  • Next Build on main (#36774170337)
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