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

cybertec-postgresql / vip-manager / 44728345520
91%

Build:
DEFAULT BRANCH: master
Ran 20 Nov 2026 11:33AM UTC
Jobs 1
Files 12
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

20 Nov 2026 11:31AM UTC coverage: 90.539% (+0.2%) from 90.31%
44728345520

push

github

web-flow
[*] fail over consul endpoints, closes gaps in DCS checkers (#430)

* [*] make the DCS checkers survive an unreachable endpoint

* the consul checker used only the first of the configured endpoints, so
  every further one was configured in vain. It moves on to the next endpoint
  when a query fails now, which is safe because every member of a consul
  cluster answers for the same key. All endpoints are parsed when the checker
  is created, so a typo in the second one shows up at startup instead of
  hours later.

* the consul checker waited out the scan interval with time.Sleep(), which
  ignores the context and kept the shutdown - and with it the removal of the
  virtual IP - waiting for up to one interval.

* the patroni checker says now that it uses only the first endpoint. Silently
  ignoring the rest is worse than saying so, and using them is not an option:
  every Patroni instance answers for its own node, so asking another one
  would make this node take the virtual IP for a leader running elsewhere.

* the client certificate for etcd no longer depends on a CA certificate being
  configured as well. It only looked that way because the assignment was
  nested in the branch that builds the CA pool.

* [*] report the state of the address only when it changes

The apply loop rechecks the address every ten seconds and wrote "IP address
... is ..., must be ..." at info level on every pass. The state hardly ever
changes, so the loop now writes the line at info level on the first pass and
when the state changed, and at debug level otherwise. #417 throttled the DCS
errors the same way.

The per-manager logger this commit used to add reached master with #429.

* [*] fail over between consul endpoints within one pass

The checker reported false as soon as the endpoint in use failed and tried the
next one only an interval later, so a leader dropped the virtual IP whenever a
single consul agent went away. It asks the remaining endpoints in the same
pass now... (continued)

76 of 78 new or added lines in 4 files covered. (97.44%)

3 existing lines in 2 files now uncovered.

957 of 1057 relevant lines covered (90.54%)

1.33 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.94
1.35% checker/consul_leader_checker.go

Coverage Regressions

Lines Coverage ∆ File
2
93.94
1.35% checker/consul_leader_checker.go
1
92.31
-1.03% checker/etcd_leader_checker.go
Jobs
ID Job ID Ran Files Coverage
1 44728345520.1 20 Nov 2026 11:33AM UTC 17
90.97
GitHub Action Run
Source Files on build 44728345520
  • Tree
  • List 12
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44728345520
  • d52d5ecd on github
  • Prev Build on master (#44514299990)
  • Next Build on master (#45621196586)
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