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

supabase / auth / 17770297569 / 1
69%
master: 69%

Build:
DEFAULT BRANCH: master
Ran 16 Sep 2025 03:15PM UTC
Files 164
Run time 11s
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

16 Sep 2025 03:07PM UTC coverage: 67.949% (+0.3%) from 67.627%
17770297569.1

push

github

web-flow
feat: config reloading with fsnotify, poller fallback, and signals (#2161)

**Summary**
This PR introduces additional configuration reloading options.
Previously, Auth only supported fsnotify for watching `.env` changes,
which fails on some filesystems. This implementation adds a poller
fallback mode and a signal-triggered reloads.

**Config reloader**

* Multi-source triggers:
  * **fsnotify** for `.env` changes where supported
* **poller fallback** that diffs directory contents for filesystems
without notification support
* **POSIX signals** (default `SIGUSR1`) for operator initiated reloads
(i.e. `systemctl reoad`)
* Debounce via `GracePeriodInterval` to coalesce bursts of changes into
a single reload.
* Invalid configs are logged but ignored, last good configuration
continues to serve.

**Wiring & observability**

* Update `serve_cmd` to construct `NewReloader` from
`ReloadingConfiguration` and log enabled modes/intervals.
* Graceful shutdown handled independently of reloads.
* Errors from watchers and pollers logged clearly, fallbacks engaged
automatically when possible.

**Configuration knobs** (`GOTRUE_RELOADING_*`)

* `NotifyEnabled` (default true)
* `PollerEnabled` (default true), `PollerInterval` (default 10s)
* `SignalEnabled` (default false), `SignalNumber` (default 10 / SIGUSR1)
* `GracePeriodInterval` (default 5s)

**Tests**

* End-to-end reloader tests: fsnotify happy path, poller fallback,
signal path, debounce, invalid configs.
* Poller unit tests for detection semantics and concurrency guard.

---------

Co-authored-by: Chris Stockton <chris.stockton@supabase.io>

12934 of 19035 relevant lines covered (67.95%)

65.64 hits per line

Source Files on job 17770297569.1
  • Tree
  • List 164
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17770297569
  • c77d5120 on github
  • Prev Job for on master (#17769379196.1)
  • Next Job for on master (#17802496903.1)
  • Delete
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