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

nbari / dbpulse / 33535402008
74%
main: 74%

Build:
Build:
LAST BUILD BRANCH: sandbox
DEFAULT BRANCH: main
Ran 01 Sep 2026 05:06PM UTC
Jobs 1
Files 25
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

01 Sep 2026 05:02PM UTC coverage: 73.61% (+0.4%) from 73.201%
33535402008

push

github

nbari
fix replication-lag blind spot, identifier limit, and two stale gauges

A standby whose primary has died reaches equal receive/replay LSNs the
moment replay drains, so dbpulse_replication_lag_seconds reported exactly
0 forever while it served increasingly stale data. Reproduced against a
live streaming pair on PostgreSQL 18.

Equal LSNs now count as caught up only while a walreceiver row is
present. The guard keys off row existence rather than status: status is
privilege-restricted, and an unprivileged monitoring role sees the row
with a NULL status, so testing status = 'streaming' would have reported a
growing lag for every healthy standby not monitored by a superuser -- a
worse failure than the one being fixed. Verified across all four states
at both privilege levels.

validate_identifier accepted 64 characters, but PostgreSQL truncates at
63 rather than erroring, so such a name silently referred to a different
object. Both engines are now held to 63.

dbpulse_table_rows and dbpulse_database_uptime_seconds still froze at
their last reading when their source stopped answering -- the class the
release fixed for three sibling gauges. Both retire the series now, via
one set_or_retire helper so a new call site cannot forget.

The rollback probe's upsert refreshes t2 like the main one, keeping the
two identical so it cannot reintroduce stale-t2 cleanup if it ever stops
rolling back.

Regression tests, each mutation-verified red against the old code: a
seven-case lag truth table built by substituting only the volatile calls
into REPLICATION_LAG_SQL itself, so it cannot drift from the query that
runs; the identifier length boundary; and uptime retirement.

110 of 121 new or added lines in 5 files covered. (90.91%)

4993 of 6783 relevant lines covered (73.61%)

52.63 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
77.03
-0.14% src/queries/mysql.rs
3
99.01
-0.99% src/queries/mod.rs
1
82.79
2.44% tests/postgres_test.rs
Jobs
ID Job ID Ran Files Coverage
1 33535402008.1 01 Sep 2026 05:06PM UTC 25
73.61
GitHub Action Run
Source Files on build 33535402008
  • Tree
  • List 25
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33535402008
  • 33fe8b78 on github
  • Prev Build on sandbox (#33532496171)
  • Next Build on sandbox (#33536456269)
  • Delete
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