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

pomerium / pomerium / 37329156889
54%

Build:
DEFAULT BRANCH: main
Ran 05 Oct 2026 03:18PM UTC
Jobs 1
Files 723
Run time 2min
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 Oct 2026 02:59PM UTC coverage: 53.562% (+0.03%) from 53.535%
37329156889

push

github

web-flow
close storage backend when stopping databroker server (#6837)

## Summary

I noticed this while doing the singleflight changes, but forgot to port
it to main directly.

When we use the in memory backend via `pkg/databroker/testutil.go`, we
expect

```go
srv := databroker.NewBackendServer(noop.NewTracerProvider())
t.Cleanup(srv.Stop)
```

to close the storage backend. As it stands pebble continues to run in
the background until all tests in the package finish, potentially
causing resource saturation issues.

This was also probably the intended behaviour of Stop(), but not closing
the backend very likely wasn't noticeable to end-users since the process
exits soon after that's called in `databroker/databroker.go`:
```go
func (d *DataBroker) Run(ctx context.Context) error {
  defer func() {
    health.ReportTerminating(health.DatabrokerCluster)
    d.srv.Stop()
  }()
  // ...
}
```

## Related issues

N/A

## User Explanation

N/A

## AI disclosure

none

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

12 of 19 new or added lines in 1 file covered. (63.16%)

9 existing lines in 4 files now uncovered.

34816 of 65001 relevant lines covered (53.56%)

314.42 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
70.32
0.67% internal/databroker/server_backend.go

Coverage Regressions

Lines Coverage ∆ File
4
74.79
-1.1% internal/autocert/manager.go
2
70.32
0.67% internal/databroker/server_backend.go
2
46.26
0.0% internal/databroker/server_clustered_follower.go
1
96.05
-1.32% pkg/identity/manager/schedulers.go
Jobs
ID Job ID Ran Files Coverage
1 37329156889.1 05 Oct 2026 03:18PM UTC 723
53.56
GitHub Action Run
Source Files on build 37329156889
  • Tree
  • List 723
  • Changed 9
  • Source Changed 1
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37329156889
  • 45f90e57 on github
  • Prev Build on main (#37056362051)
  • Next Build on main (#37353378721)
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