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

pomerium / pomerium / 42105633294
55%

Build:
DEFAULT BRANCH: main
Ran 05 Nov 2026 08:55PM UTC
Jobs 1
Files 738
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

05 Nov 2026 08:40PM UTC coverage: 54.319% (-0.03%) from 54.347%
42105633294

push

github

web-flow
fix(databroker): stop streams when a server is stopped (#6920)

## Summary
When a clustered follower or clustered leader server is stopped, also
stop any active streams. This should fix an issue when a leadership
transition happens and we only stopped the streams after the new leader
is elected and the local state cleared, rather than stopping the streams
immediately after leadership is lost.

https://github.com/pomerium/pomerium/pull/6916 should be merged before
this, since this change will exacerbate that issue.

## Related issues
-
[ENG-4498](https://linear.app/pomerium/issue/ENG-4498/coredatabroker-stop-should-cancel-active-streams)

## AI disclosure
Claude was used to help discover the issue. The code was written by
hand.

## Checklist

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

<!-- devin-review-badge-begin -->

---

<a href="https://app.devin.ai/review/pomerium/pomerium/pull/6920"
target="_blank"><picture><source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img
src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4"
alt="Devin Review"></picture></a>
<!-- devin-review-badge-end -->

10 of 31 new or added lines in 3 files covered. (32.26%)

43 existing lines in 9 files now uncovered.

36348 of 66916 relevant lines covered (54.32%)

340.76 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
0.0
pkg/grpcutil/stream.go
6
48.57
0.45% internal/databroker/server_clustered_follower.go
6
33.33
4.01% internal/databroker/server_clustered_leader.go

Coverage Regressions

Lines Coverage ∆ File
10
88.4
-5.52% config/config_source.go
10
74.08
-2.82% pkg/storage/postgres/backend.go
9
86.56
0.0% pkg/ssh/manager.go
4
70.32
-0.63% internal/databroker/server_backend.go
4
48.57
0.45% internal/databroker/server_clustered_follower.go
2
93.62
-0.34% pkg/ssh/auth.go
2
88.21
-0.42% pkg/storage/postgres/postgres.go
1
79.57
-0.24% pkg/envoy/resource_monitor_linux.go
1
88.43
0.0% pkg/health/systemd.go
Jobs
ID Job ID Ran Files Coverage
1 42105633294.1 05 Nov 2026 08:55PM UTC 738
54.32
GitHub Action Run
Source Files on build 42105633294
  • Tree
  • List 738
  • Changed 15
  • Source Changed 2
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42105633294
  • b9956d30 on github
  • Prev Build on main (#42104113343)
  • Next Build on main (#42261462421)
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