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

stacklok / toolhive / 46009395187
75%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2026 01:53PM UTC
Jobs 1
Files 1090
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

27 Nov 2026 01:42PM UTC coverage: 74.974% (-0.002%) from 74.976%
46009395187

push

github

web-flow
Give the per-user refresh worker one owner (#7354)

Give per-user refresh worker one owner

The per-user refresh worker ran without a deadline, so a hung row
resolution inside the refresher, or the worker's own suppression
lookups, could keep the goroutine alive indefinitely. It now runs under
its own one-minute deadline, longer than the refresher's refresh
timeout, which still bounds the provider call.

Who recorded a refresh outcome was decided by two independent checks of
ctx.Err(), one in the worker after sending and one in the caller. They
raced: a caller that saw the failure and was then cancelled produced a
second WARN, and a worker that saw ctx live while the caller then saw it
cancelled left the backoff unrecorded. The caller's select now decides:
if it receives the result it records it; if ctx ends first it marks the
work abandoned and the worker records it. The read returns an internal
sentinel for that case, still matching ErrRefreshFailed and ctx.Err().

Whether a refresh was ID-token-only was re-derived from the row's
ExpiresAt at failure time, which misread a storage ErrExpired row with
no expiry as ID-token-only and dropped failures whose access token
expired during the wait. The call site now passes it explicitly.

An ID-token-only refresh no longer returns the stored credential when
its access token expired during the refresh, whether or not the caller
was still waiting; the read returns the refresh error instead.

The docs no longer tell callers to log a failure category rather than
error text, which neither the service nor its caller did, and describe
which background failures are logged and backed off.

Co-authored-by: Mecatl <noreply@mecatl.dev>

35 of 37 new or added lines in 1 file covered. (94.59%)

8 existing lines in 2 files now uncovered.

104707 of 139658 relevant lines covered (74.97%)

982.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
98.72
0.7% pkg/auth/upstreamtoken/service.go

Coverage Regressions

Lines Coverage ∆ File
6
72.34
-6.38% pkg/secrets/keyring/keyctl_linux.go
2
55.44
-0.52% pkg/transport/stdio.go
Jobs
ID Job ID Ran Files Coverage
1 46009395187.1 27 Nov 2026 01:53PM UTC 1090
74.97
GitHub Action Run
Source Files on build 46009395187
  • Tree
  • List 1090
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46009395187
  • a4ad7281 on github
  • Prev Build on main (#46006753112)
  • Next Build on main (#46013789463)
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