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

pomerium / pomerium / 39967880512
54%

Build:
DEFAULT BRANCH: main
Ran 23 Oct 2026 02:22PM UTC
Jobs 1
Files 728
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

23 Oct 2026 02:14PM UTC coverage: 53.775% (+0.02%) from 53.756%
39967880512

push

github

web-flow
test: testutil provide temporary tracker for health statuses (#6897)

## Summary

For historical reasons, the health manager / tracker implementations
follow a singleton pattern, with a push-style health status mechanism.

This doesn't play well with tests (and can cause tests to flake), since
they all share the same manager instance. The new testutil library
`healthtest` works around this problem, by registering a temporary
provider and tracker that watch for `test-id=<uuid>` attributes on
health checks.

I would recommend against writing tests for health checks in every test
suite, as they will cause updates to propagate to all registered
providers which might cause some performance or timing issues. But in
general this is probably OK to use where it makes sense.

Adds the fix to cluster follower test that tests health checks.

## Related issues

N/A

## User Explanation

N/A

## AI disclosure

opus 5.5 bootstrapped the pretty obvious self-test in
`internal/testutil/healthtest/health_test.go`. I made some small
adjustments to that. Otherwise, no AI was used either in the design or
implementation or other test changes.

## Checklist

- [X] reference any related issues
- [X] updated unit tests
- [X] add appropriate label (`enhancement`, `bug`, `breaking`,
`dependencies`, `ci`)
- [X] disclosed AI usage (or wrote "none") per AI_POLICY.md
- [X] ready for review

59 of 59 new or added lines in 2 files covered. (100.0%)

28 existing lines in 10 files now uncovered.

35259 of 65568 relevant lines covered (53.77%)

314.3 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
72.61
-1.91% internal/databroker/config_source.go
6
75.21
-1.69% pkg/storage/postgres/backend.go
5
92.27
-0.55% config/config_source.go
3
91.3
0.0% pkg/fanout/receive.go
2
47.67
1.19% internal/databroker/server_clustered_follower.go
2
85.19
-0.67% pkg/databrokerutil/syncer.go
1
79.57
-0.24% pkg/envoy/resource_monitor_linux.go
1
92.86
-3.57% pkg/fanout/fanout.go
1
88.43
0.0% pkg/health/systemd.go
1
97.37
0.0% pkg/identity/manager/schedulers.go
Jobs
ID Job ID Ran Files Coverage
1 39967880512.1 23 Oct 2026 02:22PM UTC 728
53.77
GitHub Action Run
Source Files on build 39967880512
  • Tree
  • List 728
  • Changed 13
  • Source Changed 1
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39967880512
  • 9d11829d on github
  • Prev Build on main (#39963772885)
  • Next Build on main (#39979152946)
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