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

stacklok / toolhive / 21590795175
61%

Build:
DEFAULT BRANCH: main
Ran 02 Feb 2026 12:58PM UTC
Jobs 1
Files 488
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

02 Feb 2026 12:51PM UTC coverage: 60.525% (-0.005%) from 60.53%
21590795175

push

github

web-flow
Fix OAuth token refresh context cancellation (#3539)

* Fix OAuth token refresh context cancellation

The TokenSource created in processToken() was using the OAuth flow's
startup context, which gets cancelled when the callback server shuts down.
When the access token expires (~1 hour later) and refresh is attempted,
the HTTP request fails with "context canceled".

This triggers a full re-authentication flow with new DCR client
registration, requiring user interaction in the browser.

The fix uses context.Background() for the TokenSource, since it is
long-lived and must remain valid for token refresh operations long
after the OAuth flow completes.

Closes gh-3538

Signed-off-by: Greg Katz <gkatz@indeed.com>

* Fix unused ctx parameter lint error

---------

Signed-off-by: Greg Katz <gkatz@indeed.com>
Co-authored-by: Muhammad Amir Ejaz <amir@stacklok.com>

8 of 8 new or added lines in 1 file covered. (100.0%)

5 existing lines in 2 files now uncovered.

39750 of 65675 relevant lines covered (60.53%)

76.37 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
3
71.85
-1.11% pkg/ignore/processor.go
Jobs
ID Job ID Ran Files Coverage
1 21590795175.1 02 Feb 2026 12:58PM UTC 488
60.53
GitHub Action Run
Source Files on build 21590795175
  • Tree
  • List 488
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21590795175
  • 5e5a25c4 on github
  • Prev Build on main (#21583258389)
  • Next Build on main (#21591982495)
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