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

stacklok / toolhive / 39427607957
73%

Build:
DEFAULT BRANCH: main
Ran 20 Oct 2026 01:16PM UTC
Jobs 1
Files 964
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

20 Oct 2026 01:06PM UTC coverage: 71.414% (+0.05%) from 71.367%
39427607957

push

github

web-flow
Expose DCR client cap and register rate limit in CRD (#6867)

* Expose DCR client cap and register rate in CRD

Operator-managed deployments, the main multi-replica Redis audience,
could not set the DCR client cap or the /oauth/register rate limit
added in #6863, so a Redis deployment already over the default cap had
no way to raise it before upgrading.

Implements changes for issue #6864:
- Add storage.maxDCRClients (minimum 0) and registrationRateLimit to
  the embedded auth server config. The rate limit reuses the CRD's
  RateLimitBucket (maxTokens, refillPeriod) rather than a float field.
- Convert both in BuildAuthServerRunConfig. A memory storage config is
  now emitted when it sets a cap; a non-positive refillPeriod is
  rejected as an invalid config.
- Regenerate CRDs, API docs and the swagger/SDK descriptions, and drop
  the "not yet settable through the operator" notes from the docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Validate registration refill period at admission

A zero or negative refillPeriod was only caught at reconcile time. A
CEL rule on registrationRateLimit now rejects it when the resource is
created, and the Go check stays as a backstop for objects admitted
before the rule existed. The rule sits on the field rather than the
shared RateLimitBucket type, so MCPServer rate limits are unchanged.

Envtest cases cover the new admission rules for both fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Name CRD fields in registration rate errors

Addresses stacklok/toolhive#6867 review comments:
- LOW cmd/thv-operator/pkg/controllerutil/authserver.go (4319701380): describe the refillPeriod check as defense in depth
- LOW cmd/thv-operator/pkg/controllerutil/authserver.go (4319701407): check maxTokens and wrap RunConfig validation errors with the CRD field name
- LOW cmd/thv-operator/test-integration/mcp-external-auth/dcr_cap_validation_test.go (4319701411): cover VirtualMCPServer admission and vMC... (continued)

37 of 48 new or added lines in 2 files covered. (77.08%)

590 existing lines in 15 files now uncovered.

88028 of 123265 relevant lines covered (71.41%)

127.12 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
43.83
-0.13% cmd/thv-operator/api/v1beta1/zz_generated.deepcopy.go
2
90.93
0.13% cmd/thv-operator/pkg/controllerutil/authserver.go

Coverage Regressions

Lines Coverage ∆ File
278
83.0
-0.25% pkg/authserver/storage/redis.go
79
79.68
0.15% pkg/authserver/server_impl.go
77
93.38
0.13% pkg/authserver/storage/memory.go
47
92.26
0.33% pkg/authserver/config.go
32
85.83
0.14% pkg/authserver/runner/embeddedauthserver.go
19
92.34
-0.0% pkg/authserver/server/handlers/handler.go
19
72.79
6.29% pkg/authserver/storage/redis_migrate.go
8
90.0
0.24% pkg/authserver/server/handlers/dcr.go
8
64.63
0.0% pkg/authserver/server/handlers/token.go
8
93.44
-1.0% pkg/authserver/storage/cimd_decorator.go
6
19.87
-3.97% pkg/client/manager.go
4
59.21
-0.42% pkg/workloads/manager.go
2
97.96
0.0% pkg/authserver/storage/types.go
2
80.0
-5.71% pkg/vmcp/backendregistry/registry.go
1
94.49
-0.79% pkg/vmcp/composer/dag_executor.go
Jobs
ID Job ID Ran Files Coverage
1 39427607957.1 20 Oct 2026 01:16PM UTC 964
71.41
GitHub Action Run
Source Files on build 39427607957
  • Tree
  • List 964
  • Changed 24
  • Source Changed 17
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39427607957
  • 57827a1d on github
  • Prev Build on main (#39420908284)
  • Next Build on main (#39439729051)
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