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

pomerium / pomerium / 19909853294 / 1
45%
main: 45%

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

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

28991 of 53940 relevant lines covered (53.75%)

91.37 hits per line

Source Files on job 19909853294.1
  • Tree
  • List 588
  • Changed 8
  • Source Changed 1
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19909853294
  • be8debae on github
  • Prev Job for on main (#19906577602.1)
  • Next Job for on main (#19912305728.1)
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