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

nbari / dbpulse / 33516048271
74%
main: 74%

Build:
Build:
LAST BUILD BRANCH: sandbox
DEFAULT BRANCH: main
Ran 01 Sep 2026 01:56PM 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:52PM UTC coverage: 72.919% (+0.7%) from 72.244%
33516048271

push

github

nbari
Fix expiry rounding, stale gauges, probe budget, and the blocked-sessions mislabel

A certificate that had just expired reported 0 days. Duration::num_days
truncates toward zero, so the whole 24 hours after expiry rounded up to 0. The
documented alerts are "< 30 and > 0" for expiring and "< 0" for expired, so a
dead certificate matched neither for a full day, which is exactly the window
someone needs to be told about. The count is now floored, so an expired
certificate is always <= -1 while "less than a day left" is still 0.

dbpulse_blocking_queries never measured what its name claimed. Both engines
count sessions waiting on a lock, which are the victims of contention rather
than its cause, and one blocking transaction can produce many blocked sessions.
Renamed to dbpulse_blocked_sessions while 0.10.0 is still unreleased. The MySQL
query also OR-ed LIKE '%lock%' with LIKE '%Locked%'; the default collation is
case-insensitive, so the second matched nothing the first had not.

Best-effort gauges were only written on success, freezing at the last good
reading. A server that stopped answering kept reporting a reassuring value, or
held a contention spike forever after it had cleared. Blocked sessions, table
size and database size now go absent instead, matching the rule already applied
to certificate expiry. record_error left dbpulse_tls_info and
dbpulse_tls_cert_expiry_days untouched for the same reason: a database
unreachable for hours still advertised an active cipher suite and a comfortable
expiry.

The certificate probe applied a flat 3s from whenever it started, but the check
deadline is consumed cumulatively, so a check that had already spent 4s of a 5s
allowance could be failed by optional metadata collection after its required
work had succeeded. The probe now takes whatever remains of the deadline,
capped at 3s, and is skipped below 250ms. The deadline travels as a task-local
rather than a new argument on every call site.

test_rw_with_table is ... (continued)

171 of 193 new or added lines in 6 files covered. (88.6%)

4696 of 6440 relevant lines covered (72.92%)

129.57 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
77.32
-1.3% src/queries/mysql.rs
6
71.18
-0.68% src/queries/postgres.rs
4
84.65
2.16% src/pulse.rs
1
81.87
0.0% src/metrics.rs
1
80.05
3.53% src/tls/probe.rs
Jobs
ID Job ID Ran Files Coverage
1 33516048271.1 01 Sep 2026 01:56PM UTC 25
72.92
GitHub Action Run
Source Files on build 33516048271
  • Tree
  • List 25
  • Changed 7
  • Source Changed 7
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33516048271
  • 8528623a on github
  • Prev Build on sandbox (#33514438095)
  • Next Build on sandbox (#33516576197)
  • 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