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

stacklok / toolhive / 25001948671
67%

Build:
DEFAULT BRANCH: main
Ran 27 Apr 2026 02:52PM UTC
Jobs 1
Files 668
Run time 2min
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 Apr 2026 02:47PM UTC coverage: 66.282% (+0.006%) from 66.276%
25001948671

push

github

web-flow
Rename pkg/oauth to pkg/oauthproto and move DCR primitives (#5036)

Implements Phase 1 of issue #4977:
- Rename pkg/oauth/ -> pkg/oauthproto/; update all 17 import sites
  (8 with alias can now drop the alias since pkg name matches)
- Move DCR types, ScopeList, RegisterClientDynamically, and helpers
  from pkg/auth/oauth/dynamic_registration.go into pkg/oauthproto/dcr.go
- RegisterClientDynamically now takes *http.Client directly (nil builds
  a default); drop registerClientDynamicallyWithClient and HTTPClient iface
- Relocate IsLocalhost logic into pkg/oauthproto/IsLoopbackHost; pkg/networking
  keeps its IsLocalhost as a thin wrapper to avoid touching all callers
- Move UserAgent constant from pkg/auth/oauth/oidc.go to pkg/oauthproto/constants.go
- Generalize handleHTTPResponse error string (remove CLI-flag hints)
- Host NewDynamicClientRegistrationRequest in pkg/auth/discovery/dcr_request.go
  (sole caller; loopback redirect-URI assumption stays out of protocol pkg)
- Add tests in pkg/oauthproto/dcr_test.go covering the moved behaviour
- Update pkg/oauthproto/doc.go to document the expanded surface area

Address code review feedback

Fixed issues from code review:
- CRITICAL: Delete orphaned pkg/oauth/ directory (7 files); no importers remain
- HIGH: Copy request in RegisterClientDynamically before validateAndSetDefaults
  to avoid mutating the caller's struct; nil guard moved up before the deref
- HIGH: Drop redundant oauthproto alias from 4 test files (token_test.go,
  oidc_test.go, discovery_test.go, upstream/oidc_test.go)
- MEDIUM: Remove isLoopbackHost private wrapper; dcr.go calls IsLoopbackHost directly
- MEDIUM: Replace 13-line Apache header in pkg/oauthproto/doc.go with 2-line SPDX
- MEDIUM: Add comment in registerDynamicClient clarifying CLI-flag hint is
  intentional; reference #4978 for future structured error handling

Address second round of code review feedback

Fixed issues from code review:
- HIGH: Replace 13-line Apache header and... (continued)

81 of 99 new or added lines in 11 files covered. (81.82%)

10 existing lines in 2 files now uncovered.

59392 of 89605 relevant lines covered (66.28%)

61.77 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
0.0
pkg/auth/discovery/dcr_request.go
4
77.2
0.16% pkg/auth/discovery/discovery.go
2
95.09
pkg/oauthproto/dcr.go

Coverage Regressions

Lines Coverage ∆ File
8
93.41
-4.4% pkg/auth/oauth/oidc.go
2
82.29
-0.21% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 25001948671.1 27 Apr 2026 02:52PM UTC 668
66.28
GitHub Action Run
Source Files on build 25001948671
  • Tree
  • List 668
  • Changed 16
  • Source Changed 14
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25001948671
  • d82a03bf on github
  • Prev Build on main (#24988918773)
  • Next Build on main (#25006281594)
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