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

supabase / supavisor / 27162032768
77%

Build:
DEFAULT BRANCH: main
Ran 08 Jun 2026 07:46PM UTC
Jobs 2
Files 126
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

08 Jun 2026 07:34PM UTC coverage: 76.471% (+0.09%) from 76.381%
27162032768

push

github

web-flow
fix: auto-detect ipv6 from metadata db hostname (#1027)

## What kind of change does this PR introduce?

Updates runtime config to auto-detect IP version from the metadata DB
hostname, so it can work out of the box for ipv6 hosts, achieving parity
with how we handle tenant DBs, and for someone migrating from pgbouncer
without having them touch new knobs.

## What is the current behavior?

Supavisor couldn't start up when its `DATABASE_URL` pointed at an
IPv6-only hostname (like fly.io's internal dns). It would fail on
`:nxdomain` errors.

The IP version is configurable via the `SUPAVISOR_DB_IP_VERSION` env var
(defaults to ipv4), but ideally can be auto-detected (what this PR aims
to do).

## What is the new behavior?

We already had the necessary helper that we used to resolve tenant DBs.
Reused the same to set for our metadata db as well. I have tested and
verified the behavior on some test deployments on fly.io with a postgres
instance on a `.internal` hostname. It works.

## Additional context

Closes #314

---------

Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
Co-authored-by: felipe stival <14948182+v0idpwn@users.noreply.github.com>

2548 of 3332 relevant lines covered (76.47%)

55219.75 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
75.82
-1.1% lib/supavisor/peep_storage.ex
1
88.54
-1.04% lib/supavisor/monitoring/prom_ex.ex
1
93.85
-1.54% lib/supavisor/circuit_breaker/sliding_window.ex
Jobs
ID Job ID Ran Files Coverage
1 run-integration - 27162032768.1 08 Jun 2026 07:46PM UTC 126
41.27
GitHub Action Run
2 run-tests - 27162032768.2 08 Jun 2026 07:48PM UTC 126
75.39
GitHub Action Run
Source Files on build 27162032768
  • Tree
  • List 126
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27162032768
  • 161022d3 on github
  • Prev Build on main (#27159141347)
  • Next Build on main (#27165991153)
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