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

cybertec-postgresql / vip-manager / 44514299990
91%

Build:
DEFAULT BRANCH: master
Ran 19 Nov 2026 11:24AM 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

19 Nov 2026 11:22AM UTC coverage: 90.31% (-1.0%) from 91.3%
44514299990

push

github

web-flow
[-] release the virtual IP on every shutdown path (#429)

* [-] release the virtual IP on every shutdown path

Three independent defects all ended in the same place: the process went away
with the virtual IP still assigned to the interface, while Patroni promoted
another node - two hosts answering on the same address.

* handle SIGTERM, not only SIGINT. The service unit is Type=simple without an
  ExecStop, so "systemctl stop|restart" sends SIGTERM, which was not
  registered: the process was terminated right away and the ctx.Done() branch
  of SyncStates that removes the address never ran. Ctrl-C worked, which is
  why this survived manual testing.

* do not call log.Fatal() when the leader checker returns an error. os.Exit()
  skips the removal of the address just the same. Cancel the context instead,
  let the manager shut down and report the failure through the exit code. The
  call was also using a format string with a variadic logger, so the "%s" was
  printed literally.

* never block on the recheck signal. The channel was unbuffered, so a state
  change arriving while applyLoop had already returned on a cancelled context
  blocked SyncStates forever, again before the address was removed. The
  channel is buffered now and the send is dropped when a signal is already
  pending - applyLoop reads the current state itself.

On top of that SyncStates now waits for a running (de)configuration to finish
before it removes the address, so the two goroutines no longer work on the
same address at the same time. The wait is bounded by shutdownGrace, because
a configurer can be slow (the Hetzner one shells out to curl) and being
SIGKILLed while waiting is the very situation this is about. Keep the
TimeoutStopSec of the service unit above that value.

The package level logger of the ipmanager tests moves into TestMain and the
mock configurer counters are guarded by a mutex, so that the package passes
"go test -race", which it did not before.

* [*] give vip-... (continued)

76 of 108 new or added lines in 5 files covered. (70.37%)

4 existing lines in 2 files now uncovered.

904 of 1001 relevant lines covered (90.31%)

1.34 hits per line

Uncovered Changes

Lines Coverage ∆ File
28
10.29
10.29% main.go
3
94.3
0.0% ipmanager/hetznerConfigurer.go
1
90.0
-10.0% ipmanager/ip_configuration.go

Coverage Regressions

Lines Coverage ∆ File
3
10.29
10.29% main.go
1
94.3
0.0% ipmanager/hetznerConfigurer.go
Jobs
ID Job ID Ran Files Coverage
1 44514299990.1 19 Nov 2026 11:24AM UTC 17
90.79
GitHub Action Run
Source Files on build 44514299990
  • Tree
  • List 12
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44514299990
  • 33a77863 on github
  • Prev Build on master (#44089677244)
  • Next Build on master (#44728345520)
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