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

nbari / dbpulse / 33514438095
74%
main: 74%

Build:
Build:
LAST BUILD BRANCH: sandbox
DEFAULT BRANCH: main
Ran 01 Sep 2026 01:41PM 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 01:36PM UTC coverage: 72.244% (-0.2%) from 72.437%
33514438095

push

github

nbari
Fail closed on TLS mode, fix phantom PG replication lag, surface maintenance errors

An unrecognised sslmode silently disabled TLS. extract_tls_config parsed the
DSN parameter with .ok().unwrap_or_default(), and TlsMode's default is Disable,
so a typo such as sslmode=verify-fill produced a plaintext connection that
carried the credentials in the clear and reported nothing. MySQL's own
spellings were not accepted either, so the documented ssl-mode alias meant "no
TLS" for values like REQUIRED and VERIFY_IDENTITY. Unparseable modes now abort
startup, MySQL spellings are accepted, and the opportunistic modes are rejected
rather than guessed at in either direction. The existing dispatch test only
used lowercase verify-ca, which is why the gap survived.

PostgreSQL replication lag was measured as NOW() - pg_last_xact_replay_timestamp(),
which is the age of the last replayed transaction rather than the distance
behind the primary. On a synchronised standby with an idle primary the value
grew without bound. Verified against a real streaming pair on PostgreSQL 18:
the old expression reported 20s and then 75s on a replica with nothing left to
apply, while the new one reported 0; with replay paused and a fresh write on
the primary the new expression still reported genuine lag. The receive and
replay LSNs are now compared first, and a primary still reports no series.

The hourly table maintenance discarded its errors with .ok(). Keeping it
non-fatal is right, but a permission change or a lock that blocked maintenance
indefinitely was invisible until the table had grown large enough to cause a
real outage. Failures are now counted on
dbpulse_table_maintenance_errors_total{database,operation}.

README claimed --range separates the row IDs each instance writes. It does not:
every range starts at zero, so ranges 1000 and 2000 overlap completely on
0..999. The section now describes the collision instead of promising it away.
The metrics section also claimed every met... (continued)

89 of 147 new or added lines in 5 files covered. (60.54%)

10 existing lines in 3 files now uncovered.

4542 of 6287 relevant lines covered (72.24%)

151.64 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
78.61
-3.01% src/queries/mysql.rs
23
71.86
-1.53% src/queries/postgres.rs
11
81.87
-2.55% src/metrics.rs
1
98.25
1.82% src/tls/config.rs

Coverage Regressions

Lines Coverage ∆ File
6
78.61
-3.01% src/queries/mysql.rs
3
97.1
-0.36% tests/pulse_robustness_test.rs
1
71.86
-1.53% src/queries/postgres.rs
Jobs
ID Job ID Ran Files Coverage
1 33514438095.1 01 Sep 2026 01:41PM UTC 25
72.24
GitHub Action Run
Source Files on build 33514438095
  • 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 #33514438095
  • c08911fc on github
  • Prev Build on sandbox (#33509574644)
  • Next Build on sandbox (#33516048271)
  • 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