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

stacklok / toolhive / 45151614249
75%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 10:05AM UTC
Jobs 1
Files 1047
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

23 Nov 2026 09:57AM UTC coverage: 73.713% (+0.03%) from 73.684%
45151614249

push

github

web-flow
Pass redemption handler dependencies as a struct (#7220)

* Pass redemption handler dependencies as a struct

The JWT-bearer and ID-JAG redemption constructors took seven and ten
positional parameters, and the factory's build closure took eight, so
every new dependency touched every constructor, both factory closures
and about 25 test call sites.

Collect the compose-time inputs in an issuanceDeps struct. Both
constructors now take it and name their assertion form through a shared
newIssuanceCore, which filters the trusted issuers once. The exported
factory signatures, error texts and log lines are unchanged.

Tests build handlers through one fixture builder. New tests pin that
both constructors refuse bad dependencies with the same error, that the
issuer-is-resource warning reads the unfiltered issuer list, and that
both factories pass their inputs through to the handler.

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

* Validate all redemption dependencies in one place

Dependency checks were split: newJWTBearerHandler checked the validator
and token endpoint, issuanceDeps.validate checked the rest. A new field
could be checked in one place and missed in the other.

Move the validator and endpoint checks into a shared helper that both
newJWTBearerHandler and issuanceDeps.validate call. newIssuanceCore now
validates once, up front. Check order and error texts are unchanged.

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

---------

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

56 of 56 new or added lines in 3 files covered. (100.0%)

15 existing lines in 4 files now uncovered.

98022 of 132977 relevant lines covered (73.71%)

880.69 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
19.87
-3.97% pkg/client/manager.go
6
63.68
4.06% pkg/workloads/manager.go
2
73.19
-0.27% pkg/transport/proxy/streamable/streamable_proxy.go
1
81.58
-0.12% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 45151614249.1 23 Nov 2026 10:05AM UTC 1047
73.71
GitHub Action Run
Source Files on build 45151614249
  • Tree
  • List 1047
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45151614249
  • 740e467b on github
  • Prev Build on main (#45139848235)
  • Next Build on main (#45179229236)
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