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

pomerium / pomerium / 40770941207
55%

Build:
DEFAULT BRANCH: main
Ran 28 Oct 2026 09:33PM UTC
Jobs 1
Files 729
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

28 Oct 2026 09:19PM UTC coverage: 53.836% (-0.004%) from 53.84%
40770941207

push

github

web-flow
fix(storage): retry stream requests on canceled error code (#6916)

## Summary
The sync querier code interprets a `Canceled` error code as indicating
Pomerium was shut down. However that error code is sometimes returned
for operations that ought to be retried.

Instead of treating `Canceled` as a permanent error, call `.Stop` on the
sync queriers directly in the Authorize service. This way they are still
stopped when Pomerium is shut down, but actual `Canceled` errors, for
example when a clustered databroker leader changes, will be retried.

## Related issues
-
[ENG-4499](https://linear.app/pomerium/issue/ENG-4499/coredatabroker-writes-can-go-through-even-if-leadership-is-lost)

## AI disclosure
Some AI was used to discover the issue, but none was used to write this
code.

## 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

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

---

<a href="https://app.devin.ai/review/pomerium/pomerium/pull/6916"
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 -->

7 of 9 new or added lines in 2 files covered. (77.78%)

21 existing lines in 10 files now uncovered.

35454 of 65856 relevant lines covered (53.84%)

343.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
86.21
-0.12% authorize/authorize.go

Coverage Regressions

Lines Coverage ∆ File
6
88.95
-3.31% config/config_source.go
4
72.61
-1.27% internal/databroker/config_source.go
2
77.6
-1.6% pkg/grpcutil/client_manager.go
2
93.62
-0.34% pkg/ssh/auth.go
2
88.21
-0.42% pkg/storage/postgres/postgres.go
1
86.21
-0.12% authorize/authorize.go
1
88.43
0.0% pkg/health/systemd.go
1
86.3
-0.26% pkg/ssh/manager.go
1
76.9
-0.28% pkg/storage/postgres/backend.go
1
73.21
0.0% pkg/storage/postgres/registry.go
Jobs
ID Job ID Ran Files Coverage
1 40770941207.1 28 Oct 2026 09:33PM UTC 729
53.84
GitHub Action Run
Source Files on build 40770941207
  • Tree
  • List 729
  • Changed 14
  • Source Changed 2
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40770941207
  • 2428ec4b on github
  • Prev Build on main (#40572156801)
  • Next Build on main (#40774180655)
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