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

stacklok / toolhive / 23869204772
65%

Build:
DEFAULT BRANCH: main
Ran 01 Apr 2026 08:31PM UTC
Jobs 1
Files 600
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

01 Apr 2026 08:25PM UTC coverage: 65.431% (-0.05%) from 65.484%
23869204772

push

github

web-flow
Wire MCPServer to MCPTelemetryConfig with inline deprecation (#4482)

* Wire MCPServer to MCPTelemetryConfig with deprecation of inline telemetry

Add TelemetryConfigRef field to MCPServerSpec that references a shared
MCPTelemetryConfig resource, deprecating the inline Telemetry field.
CEL validation rejects specs that set both fields simultaneously.

The MCPServer controller resolves the reference during reconciliation,
tracks config hash changes for drift detection, sets status conditions,
generates OTEL environment variables (including sensitive header secret
injection), and watches MCPTelemetryConfig for cascade reconciliation.

The MCPTelemetryConfig controller now tracks referencing servers in
status.referencingServers, blocks deletion while workloads reference
the config, and watches MCPServer changes to keep the reference list
current.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Regenerate Helm CRD template via operator-manifests task

Run `task operator-generate` and `task operator-manifests` to update
the Helm-wrapped CRD template with the telemetryConfigRef field,
CEL validation rule, and telemetryConfigHash status field.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Address review: fix NotFound vs transient error handling

- getTelemetryConfigForMCPServer now returns (nil, nil) for NotFound
  so callers can distinguish "config missing" from "API unavailable"
- handleTelemetryConfig uses ConditionReasonTelemetryConfigRefError
  for transient API errors, reserving NotFound for genuinely missing
  resources
- Add ConditionReasonTelemetryConfigRefError constant
- deploymentForMCPServer logs at visible level when transient fetch
  fails after prior validation, with clear message about degradation
- Update tests for new (nil, nil) NotFound semantics

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Add integration tests for TelemetryConfigRef wire-up

Add envtest inte... (continued)

141 of 290 new or added lines in 8 files covered. (48.62%)

9 existing lines in 5 files now uncovered.

53897 of 82372 relevant lines covered (65.43%)

63.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
82
20.39
cmd/thv-operator/controllers/mcpserver_telemetryconfig.go
30
55.49
-0.85% cmd/thv-operator/controllers/mcpserver_controller.go
28
69.23
-4.33% cmd/thv-operator/controllers/mcptelemetryconfig_controller.go
7
67.98
-1.19% cmd/thv-operator/controllers/mcpserver_runconfig.go
2
88.24
-11.76% cmd/thv-operator/pkg/runconfig/telemetry.go

Coverage Regressions

Lines Coverage ∆ File
3
71.85
-1.11% pkg/ignore/processor.go
2
94.77
-1.31% pkg/vmcp/composer/dag_executor.go
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
1
55.49
-0.85% cmd/thv-operator/controllers/mcpserver_controller.go
1
69.23
-4.33% cmd/thv-operator/controllers/mcptelemetryconfig_controller.go
Jobs
ID Job ID Ran Files Coverage
1 23869204772.1 01 Apr 2026 08:31PM UTC 600
65.43
GitHub Action Run
Source Files on build 23869204772
  • Tree
  • List 600
  • Changed 13
  • Source Changed 7
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23869204772
  • d3fb8a8b on github
  • Prev Build on main (#23864539872)
  • Next Build on main (#23870867049)
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