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

nbari / pg_exporter / 34245274047
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: sandbox
DEFAULT BRANCH: main
Ran 08 Sep 2026 03:39PM 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:22PM UTC coverage: 89.762% (+3.6%) from 86.199%
34245274047

push

github

nbari
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 129 new or added lines in 1 file covered. (81.4%)

4 existing lines in 4 files now uncovered.

19910 of 22181 relevant lines covered (89.76%)

481.82 hits per line

Uncovered Changes

Lines Coverage ∆ File
24
77.97
10.35% tests/collector_safety.rs

Coverage Regressions

Lines Coverage ∆ File
1
96.64
-0.12% src/collectors/statements/pg_statements.rs
1
95.84
-0.28% src/collectors/stat/user_tables.rs
1
93.86
21.66% src/collectors/system/process.rs
1
91.37
-0.18% src/collectors/util.rs
Jobs
ID Job ID Ran Files Coverage
1 34245274047.1 08 Sep 2026 03:39PM UTC 125
89.76
GitHub Action Run
Source Files on build 34245274047
  • Tree
  • List 125
  • Changed 19
  • Source Changed 2
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34245274047
  • 21828cbc on github
  • Prev Build on sandbox (#34222617160)
  • Next Build on develop (#34245401265)
  • 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