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

pomerium / pomerium / 19909853294
45%

Build:
DEFAULT BRANCH: main
Ran 03 Dec 2025 09:55PM UTC
Jobs 1
Files 588
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

03 Dec 2025 09:44PM UTC coverage: 53.747% (+0.01%) from 53.737%
19909853294

push

github

web-flow
pebble: fix secure fs wrapper (#5967)

## Summary
Fix the secure file system wrapper for pebble. The arguments passed to
`ReuseForWrite` were misinterpreted. It should've been `(oldname,
newname)`, but we were expecting `(newname, oldname)`.

Because the `chmod` failed and the call to `ReuseForWrite` returned an
error, pebble would call `logger.Fatalf` with the error. Since our
logger wrapper just ignored `Fatalf`, this resulted in a confusing panic
"fatal error: sync: unlock of unlocked mutex". (the code expected that
`Fatal` would exit the function immediately, so the subsuqent unlock
should never have been called)

So now the logger is setup to actually log things, except `Info` will be
sent to `Debug` instead, since these logs are pretty noisy.

No AI was used for this PR.

## Related issues
-
[ENG-3266](https://linear.app/pomerium/issue/ENG-3266/corepebble-fatal-error-sync-unlock-of-unlocked-mutex)

## Checklist

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

12 of 25 new or added lines in 1 file covered. (48.0%)

12 existing lines in 5 files now uncovered.

28991 of 53940 relevant lines covered (53.75%)

91.37 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
13
38.46
7.69% pkg/pebbleutil/pebbleutil.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
75.41
0.0% pkg/storage/postgres/registry.go
2
67.39
-0.48% internal/databroker/server_clustered_follower.go
2
89.19
-5.41% pkg/fanout/fanout.go
3
90.69
0.0% config/config_source.go
4
90.91
-3.64% pkg/fanout/receive.go
Jobs
ID Job ID Ran Files Coverage
1 19909853294.1 03 Dec 2025 09:55PM UTC 588
53.75
GitHub Action Run
Source Files on build 19909853294
  • Tree
  • List 588
  • Changed 8
  • Source Changed 1
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19909853294
  • be8debae on github
  • Prev Build on main (#19906577602)
  • Next Build on main (#19912305728)
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