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

cybertec-postgresql / pgwatch / 25120636498
86%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2026 04:23PM UTC
Jobs 1
Files 45
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

29 Apr 2026 04:20PM UTC coverage: 83.065% (-0.3%) from 83.408%
25120636498

push

github

web-flow
[+] implement parallel source discovery (#1378)

* [+] implement parallel source discovery

Improves dead-source handling with parallel resolution and instance_up=0
on discovery failure.

`Sources.ResolveDatabases()` previously resolved each source
sequentially. A single slow or unresponsive source
(e.g. a continuous-discovery endpoint behind a firewall) would block
discovery of all subsequent sources for the full connection timeout
duration.

Sources are now resolved concurrently using `sync.WaitGroup.Go()`.
Results are collected into a pre-allocated indexed slice to preserve
deterministic ordering. Per-source error logging with source name is
included in the resolver itself.

When a `SourcePostgresContinuous` or `SourcePatroni` source fails to
resolve any databases, `LoadSources()` now emits `instance_up=0` to
the configured sinks. This makes the failure visible in dashboards and
alerting, consistent with how unreachable directly-monitored sources are
handled.

* `reaper.WriteInstanceDown()` accepts name as an argument

* use `on_error` callback in `Sources.ResolveDatabases()`

* use const instead of hard-coded value

6 of 29 new or added lines in 4 files covered. (20.69%)

6 existing lines in 1 file now uncovered.

4434 of 5338 relevant lines covered (83.06%)

0.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
75.09
-3.88% internal/sources/resolver.go
2
35.53
-1.51% internal/reaper/reaper.go

Coverage Regressions

Lines Coverage ∆ File
6
35.53
-1.51% internal/reaper/reaper.go
Jobs
ID Job ID Ran Files Coverage
1 25120636498.1 29 Apr 2026 04:23PM UTC 45
83.06
GitHub Action Run
Source Files on build 25120636498
  • Tree
  • List 45
  • Changed 4
  • Source Changed 4
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25120636498
  • 1677cdb0 on github
  • Prev Build on master (#25117381125)
  • Next Build on master (#25157810564)
  • 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