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

nbari / pg_exporter / 28222625222
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: sandbox
DEFAULT BRANCH: main
Ran 26 Jun 2026 07:03AM UTC
Jobs 1
Files 91
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

26 Jun 2026 07:00AM UTC coverage: 90.151% (+0.03%) from 90.123%
28222625222

push

github

nbari
fix(devpod): make `just test` pass in the devcontainer

Three issues surfaced running the suite inside the compose devcontainer:

- pgbench missing: on Debian/PGDG the pgbench binary ships in the server package
  (postgresql-NN), not postgresql-client-NN, so `postgresql-client` alone left a
  wrapper with no backing binary ("You must install at least one
  postgresql-client-<version> package"). Add scripts/install-postgres-client.sh
  which adds the PGDG repo, disables auto local-cluster creation, and installs the
  matching client + server package for psql + pgbench 18; mise task calls it.

- localhost-only test guard: tests/common/get_test_dsn refused any non-localhost
  DSN. The devcontainer's DB is a trusted compose sibling reached as `postgres`,
  so add an explicit PG_EXPORTER_TEST_ALLOW_NONLOCAL opt-in (set in
  .devcontainer/compose.yaml); the guard stays strict everywhere else.

- hardcoded DSNs: two tests in tests/exporter.rs connected to
  localhost:5432 directly instead of common::get_test_dsn(), timing out against
  the postgres service. Use the helper (the intentional db-down test keeps its
  bad-port DSN).

6 of 9 new or added lines in 2 files covered. (66.67%)

4 existing lines in 2 files now uncovered.

11139 of 12356 relevant lines covered (90.15%)

83.88 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
75.46
-0.58% tests/common/mod.rs

Coverage Regressions

Lines Coverage ∆ File
3
91.55
-4.23% src/collectors/activity/wait.rs
1
75.46
-0.58% tests/common/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 28222625222.1 26 Jun 2026 07:03AM UTC 91
90.15
GitHub Action Run
Source Files on build 28222625222
  • Tree
  • List 91
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28222625222
  • ef9b1e34 on github
  • Prev Build on sandbox (#28218192286)
  • Next Build on sandbox (#28225750623)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc