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

stacklok / toolhive / 44617133567
75%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2026 09:25PM UTC
Jobs 1
Files 1040
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

19 Nov 2026 09:16PM UTC coverage: 73.633% (+0.007%) from 73.626%
44617133567

push

github

web-flow
Stop the row-identity refresh test racing its follower (#7203)

## Summary

`TestUpstreamTokenRefresher_RowIdentity` flakes in CI (about 0.3% of runs under `-race`, first seen on #7198). The test releases the leader's refresh as soon as the follower has looked up the shared row, but it never observes the follower joining the in-flight singleflight call. If the leader finishes first, the follower starts its own flight, re-reads its session's row, and the mock, which does not expect that read, fails the test.

The late path is correct. The leader's compare-and-swap has already made the shared row fresh, so the follower's read returns that row, and `rowChanged` makes the follower return it without a second provider call or write. This change lets the test accept that read. The `Times(1)` expectations on the provider and the compare-and-swap still prove there is exactly one refresh and one write.

No product code changes.

## Type of change

- [x] Bug fix
- [ ] New feature
- [ ] Refactoring (no behavior change)
- [ ] Dependency update
- [ ] Documentation
- [ ] Other (describe):

## Test plan

- [x] Unit tests (`task test`)
- [ ] E2E tests (`task test-e2e`)
- [ ] Linting (`task lint-fix`)
- [ ] Manual testing (describe below)

Ran `go test -race -count=200 -run TestUpstreamTokenRefresher_RowIdentity ./pkg/authserver/`, which passes. Before this change the same test failed about 0.3% of the time under `-race`.

## Does this introduce a user-facing change?

No.

97651 of 132618 relevant lines covered (73.63%)

881.72 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
88.15
0.0% pkg/transport/proxy/transparent/transparent_proxy.go
Jobs
ID Job ID Ran Files Coverage
1 44617133567.1 19 Nov 2026 09:25PM UTC 1040
73.63
GitHub Action Run
Source Files on build 44617133567
  • Tree
  • List 1040
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44617133567
  • e71af959 on github
  • Prev Build on main (#44599262066)
  • Next Build on main (#44698582154)
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