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

pomerium / pomerium / 22687055219
46%

Build:
DEFAULT BRANCH: main
Ran 04 Mar 2026 08:21PM UTC
Jobs 1
Files 686
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

04 Mar 2026 08:07PM UTC coverage: 44.972% (+0.1%) from 44.877%
22687055219

push

github

web-flow
ssh: refactor StreamHandler state management (#6166)

This refactors some of the state management in `ssh.StreamHandler` to
fix potential data races between `StreamHandler.Run()` and
`StreamHandler.ServeChannel()`.

Instead of keeping state as a field in StreamHandler itself, it is kept
local to the `Run` loop. Methods which previously accessed the state
field now accept the state as an argument instead and were converted to
free functions if possible.

Operations outside of the `Run` loop which need to read the state
(currently, creating internal channels from ServeChannel, and requesting
handoff) now interact with the `Run` loop via new channels specifically
for those requests. The `Run` loop can then reply with a _copy_ of the
state and/or other needed info, or an error (if the request can fail).

Additionally, the username+hostname fields which used to be in the
stream state as individual fields were pulled out into a separate type
`api.UserRequest`. This struct holds a username and hostname, and is
only modifiable from an Update method. It encapsulates the validation
logic for username and hostname updates and should be less error-prone
to use.

265 of 298 new or added lines in 5 files covered. (88.93%)

8 existing lines in 3 files now uncovered.

34067 of 75752 relevant lines covered (44.97%)

115.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
28.57
0.0% authorize/ssh_grpc.go
2
83.51
0.0% pkg/ssh/auth.go
3
0.0
0.0% pkg/ssh/cli/commands/portal.go
27
83.42
0.85% pkg/ssh/stream.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
58.29
-0.25% internal/controlplane/server.go
1
75.15
-0.3% internal/databroker/config_source.go
6
89.22
-1.47% config/config_source.go
Jobs
ID Job ID Ran Files Coverage
1 22687055219.1 04 Mar 2026 08:21PM UTC 686
44.97
GitHub Action Run
Source Files on build 22687055219
  • Tree
  • List 686
  • Changed 12
  • Source Changed 5
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22687055219
  • 8658e256 on github
  • Prev Build on main (#22685279033)
  • Next Build on main (#22688784628)
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