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

nbari / pg_exporter / 34237571161
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: sandbox
DEFAULT BRANCH: main
Ran 08 Sep 2026 02:24PM UTC
Jobs 1
Files 125
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

08 Sep 2026 02:19PM UTC coverage: 86.158% (-0.04%) from 86.199%
34237571161

push

github

nbari
chore: strengthen blocking-read guard and cross-target lint coverage

Follow-up to the release review of the scrape-gate and OS-sampling fixes.

Guard: rewrite collectors_do_not_block_the_runtime_with_os_reads as a
per-file call-graph taint analysis instead of a flat source-text scan.
Markers are now derived from aliased OS imports as well as the pinned
literals, functions containing OS reads are propagated to their callers
to a fixpoint, and the offload_coalesced(...) argument region is scoped
by parenthesis depth. This closes two evasions the previous guard
allowed: hiding the read in a helper called inline from collect_once,
and reading through a renamed std::fs import.

CI: run cargo clippy for x86_64-unknown-freebsd and
x86_64-unknown-illumos in the lint job so the unsupported-platform cfg
arm is compiled on every push. The redundant Check (FreeBSD) step is
dropped from the check job.

Fix: the unsupported-platform read_cpu_times() returned Ok(Vec::new())
unconditionally and tripped clippy::unnecessary_wraps, which the new
illumos lint surfaced. The Result is load-bearing because
update_cpu_seconds distinguishes Ok(empty) from Err, so the lint is
allowed locally with a justification rather than changing the signature.

Docs: note in CHANGELOG.md and src/collectors/system/README.md that the
collector duration histogram _sum/_count include aborted scrapes, and
give the PromQL needed to read the real successful-scrape cost.

105 of 166 new or added lines in 1 file covered. (63.25%)

58 existing lines in 6 files now uncovered.

19911 of 23110 relevant lines covered (86.16%)

728.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
61
69.44
1.82% tests/collector_safety.rs

Coverage Regressions

Lines Coverage ∆ File
35
74.72
-1.37% src/collectors/system/cpu.rs
17
69.44
1.82% tests/collector_safety.rs
3
86.67
-4.0% src/collectors/activity/wait.rs
1
95.84
-0.28% src/collectors/stat/user_tables.rs
1
71.97
-0.22% src/collectors/system/process.rs
1
91.37
-0.18% src/collectors/util.rs
Jobs
ID Job ID Ran Files Coverage
1 34237571161.1 08 Sep 2026 02:24PM UTC 125
86.16
GitHub Action Run
Source Files on build 34237571161
  • Tree
  • List 125
  • Changed 11
  • Source Changed 2
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34237571161
  • 99c6cb03 on github
  • Prev Build on sandbox (#34222617160)
  • Next Build on sandbox (#34237846773)
  • 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