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

stacklok / toolhive / 28852900937
68%

Build:
DEFAULT BRANCH: main
Ran 07 Jul 2026 08:41AM UTC
Jobs 1
Files 795
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

07 Jul 2026 08:35AM UTC coverage: 67.932% (+0.07%) from 67.858%
28852900937

push

github

web-flow
Expose UpstreamFilter through authserver.New facade (#5733)

* Expose UpstreamFilter through authserver.New facade

WithUpstreamFilter (added in #5725) was only reachable via the
low-level handlers.NewHandler constructor, so a caller using the
public authserver.New facade had no way to install a filter.

Add Config.UpstreamFilter and thread it into the handler options
built for handlers.NewHandler, mirroring the existing refresher
wiring. A nil filter preserves current behavior.

* Guard UpstreamFilter misuse in authserver.Config

Addresses stacklok/toolhive#5733 review comments:
- MEDIUM pkg/authserver/config.go (3533389467): Validate() now rejects
  UpstreamFilter set with fewer than 2 upstreams, since computeChain
  never consults the filter in that case and it would silently no-op.
- LOW pkg/authserver/config.go (3533389470): doc comment now warns that
  a typed-nil concrete pointer is a non-nil interface value and will
  still be wired in.

* Clean up UpstreamFilter test hygiene in integration tests

Addresses stacklok/toolhive#5733 review comments:
- MEDIUM pkg/authserver/integration_test.go (3533389480): wire
  options.upstreamFilter into setupTestServer and
  setupTestServerWithOIDCProvider's Config literals so withUpstreamFilter
  no longer silently no-ops when applied to those helpers (or to
  setupTestServerWithMockOIDC, which delegates to setupTestServer).
- LOW pkg/authserver/integration_test.go (3533389475): extract the
  shared client->authorize->first-upstream->callback boilerplate into
  runFirstLeg, reused by runChainFlow and the new filter test.
- LOW pkg/authserver/integration_test.go (3533389477): reword the new
  test's doc comment, which overstated a "second failure signal" from
  mockoidc that can't actually occur given the test's control flow.

15 of 15 new or added lines in 2 files covered. (100.0%)

9 existing lines in 2 files now uncovered.

72813 of 107185 relevant lines covered (67.93%)

64.81 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
66.87
4.57% pkg/workloads/manager.go
3
64.29
-4.29% pkg/state/runconfig.go
Jobs
ID Job ID Ran Files Coverage
1 28852900937.1 07 Jul 2026 08:41AM UTC 795
67.93
GitHub Action Run
Source Files on build 28852900937
  • Tree
  • List 795
  • Changed 10
  • Source Changed 2
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28852900937
  • 61655d18 on github
  • Prev Build on main (#28852141216)
  • Next Build on main (#28858636135)
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