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

supabase / supavisor / 37323859913
81%

Build:
DEFAULT BRANCH: main
Ran 05 Oct 2026 02:34PM 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

05 Oct 2026 02:20PM UTC coverage: 81.056% (+0.2%) from 80.831%
37323859913

push

github

web-flow
fix: one pool disconnecting no longer wipes metrics for a tenant's other pools (#1221)

## Summary

- When a tenant has more than one active pool (for example, a busy
transaction-mode pool and an occasional session-mode connection), and
just one of those pools disconnects, Supavisor deletes the metrics for
the **whole tenant** — not just the pool that disconnected. This means
the still-running pool's metrics disappear too, even though it never
stopped working.
- This matches a live customer issue: `supavisor_*` Prometheus metrics
vanish for hours at a time on a project with steady transaction-mode
traffic plus an intermittent session-mode connection.
- The bug is in `Supavisor.TenantsMetrics.handle_info/2`
(`lib/supavisor/tenants_metrics.ex`): it clears the cache using only the
tenant name as the key, not the specific pool that went away.
- POOLER-830
- 
## Test plan

- `mix test test/supavisor/tenants_metrics_test.exs` — 1 test, 0
failures.
- The test: registers a transaction-mode pool and a session-mode pool
for the same tenant, confirms both show up in the cached metrics, then
drops only the session-mode pool. After that, the transaction-mode
pool's metrics are gone too, even though it's still connected —
reproducing the bug.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

5 of 5 new or added lines in 1 file covered. (100.0%)

3 existing lines in 3 files now uncovered.

3085 of 3806 relevant lines covered (81.06%)

49548.23 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
86.84
-2.63% lib/supavisor/monitoring/tenant.ex
1
87.5
-12.5% lib/supavisor/terminator.ex
1
76.92
-7.69% lib/supavisor/erl_sys_mon.ex
Jobs
ID Job ID Ran Files Coverage
1 run-integration - 37323859913.1 05 Oct 2026 02:39PM UTC 142
41.83
GitHub Action Run
2 run-tests - 37323859913.2 05 Oct 2026 02:34PM UTC 142
79.82
GitHub Action Run
Source Files on build 37323859913
  • Tree
  • List 142
  • Changed 12
  • Source Changed 1
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37323859913
  • f7608d51 on github
  • Prev Build on main (#36885161152)
  • Next Build on main (#37351652321)
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