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

pomerium / pomerium / 40958143757
55%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2026 10:24PM UTC
Jobs 1
Files 730
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

29 Oct 2026 09:28PM UTC coverage: 53.833% (-0.02%) from 53.848%
40958143757

push

github

web-flow
raft: fix duplicate keys in raft log lines (#6936)

## Summary

Raft log lines from the clustered databroker could repeat a JSON key:
two "time" fields when raft logged a duration under that name, and two
"component" fields from the logger name. GKE's log agent rejects such a
line and drops the whole chunk of the pod's logs it arrived in. Only the
raft leader logs "failed to contact", so the leader's logs went missing
around leader elections, exactly when they are needed.

Raft log lines now never repeat a key. Raft values whose names collide
with Pomerium's own fields are kept under a "raft-" prefix. Raft's
state-change lines also name the node and its state instead of logging
an empty object or a number.

## Related issues

-
[ENG-4507](https://linear.app/pomerium/issue/ENG-4507/pomerium-mcp-ic-gke-log-agent-drops-chunks-of-the-raft-leaders-logs)

## User Explanation

## AI disclosure

Claude Code wrote the fix and tests under my direction; reviewed by me.

## 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
- [ ] ready for review

49 of 79 new or added lines in 3 files covered. (62.03%)

24 existing lines in 7 files now uncovered.

35494 of 65933 relevant lines covered (53.83%)

344.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
28
63.64
internal/databroker/raft/logger.go
1
0.0
0.0% internal/databroker/raft/node.go
1
0.0
0.0% internal/databroker/raft/transport.go

Coverage Regressions

Lines Coverage ∆ File
8
74.65
-2.25% pkg/storage/postgres/backend.go
5
74.79
-1.37% internal/autocert/manager.go
5
69.84
-0.79% internal/databroker/server_backend.go
2
89.13
-4.35% pkg/fanout/receive.go
2
87.79
-0.42% pkg/storage/postgres/postgres.go
1
92.86
-3.57% pkg/fanout/fanout.go
1
97.37
-1.32% pkg/identity/manager/schedulers.go
Jobs
ID Job ID Ran Files Coverage
1 40958143757.1 29 Oct 2026 10:24PM UTC 730
53.83
GitHub Action Run
Source Files on build 40958143757
  • Tree
  • List 730
  • Changed 12
  • Source Changed 2
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40958143757
  • bafe3e9f on github
  • Prev Build on main (#40934685308)
  • Next Build on main (#40962906974)
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