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

pomerium / pomerium / 16732330868
52%

Build:
DEFAULT BRANCH: main
Ran 04 Aug 2025 07:33PM UTC
Jobs 1
Files 525
Run time 240min
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

04 Aug 2025 07:27PM UTC coverage: 51.998% (-0.08%) from 52.073%
16732330868

push

github

web-flow
core: use iterators for databroker sync and sync latest (#5742)

## Summary
Refactor the databroker storage interface to use an
`iter.Seq2[*databroker.Record,error]` instead of a `RecordStream`. The
original implementation for the storage backend was written before
iterators existed in Go and we can use the standard pattern now.

I also updated the postgres methods to return lists of records
consistently, and used a much smaller batch size. (Previously only a
single changed record was queried at a time) The latest query now uses
`type` and `id` instead of `OFFSET` which should improve performance
when there are a large number of rows.

## Related issues
-
[ENG-2417](https://linear.app/pomerium/issue/ENG-2417/core-use-iterators-for-storage-backends)
-
[ENG-2494](https://linear.app/pomerium/issue/ENG-2494/core-postgres-performance-improvements)

## Checklist
- [x] reference any related issues
- [x] updated unit tests
- [x] add appropriate label (`enhancement`, `bug`, `breaking`,
`dependencies`, `ci`)
- [x] ready for review

209 of 313 new or added lines in 8 files covered. (66.77%)

16 existing lines in 7 files now uncovered.

23531 of 45254 relevant lines covered (52.0%)

76.07 hits per line

Uncovered Changes

Lines Coverage ∆ File
60
0.0
0.0% pkg/storage/storagetest/storagetest.go
14
81.58
pkg/storage/postgres/iterate.go
11
85.9
pkg/storage/inmemory/iterate.go
8
0.0
pkg/storage/iterate.go
6
89.2
0.48% pkg/storage/postgres/postgres.go
5
73.37
-0.15% internal/databroker/server.go

Coverage Regressions

Lines Coverage ∆ File
4
90.69
-1.96% config/config_source.go
3
86.14
-2.97% authorize/authorize.go
2
89.19
-5.41% pkg/fanout/fanout.go
2
90.91
-3.64% pkg/fanout/receive.go
2
76.68
0.54% pkg/storage/postgres/backend.go
2
89.2
0.48% pkg/storage/postgres/postgres.go
1
0.0
0.0% pkg/storage/storagetest/storagetest.go
Jobs
ID Job ID Ran Files Coverage
1 16732330868.1 04 Aug 2025 07:33PM UTC 525
52.0
GitHub Action Run
Source Files on build 16732330868
  • Tree
  • List 525
  • Changed 11
  • Source Changed 6
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16732330868
  • 39504d69 on github
  • Prev Build on main (#16725584523)
  • Next Build on main (#16997273510)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc