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

supabase / auth / 17770297569
69%

Build:
DEFAULT BRANCH: master
Ran 16 Sep 2025 03:15PM UTC
Jobs 1
Files 164
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

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

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>

224 of 224 new or added lines in 2 files covered. (100.0%)

12934 of 19035 relevant lines covered (67.95%)

65.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 17770297569.1 16 Sep 2025 03:15PM UTC 164
67.95
GitHub Action Run
Source Files on build 17770297569
  • Tree
  • List 164
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c77d5120 on github
  • Prev Build on master (#17769379196)
  • Next Build on master (#17802496903)
  • 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

© 2025 Coveralls, Inc