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

stacklok / toolhive / 17976260211
59%

Build:
DEFAULT BRANCH: main
Ran 24 Sep 2025 12:17PM UTC
Jobs 1
Files 271
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

24 Sep 2025 12:13PM UTC coverage: 44.715% (+0.02%) from 44.695%
17976260211

push

github

web-flow
Replace global logger with context-aware logging in operator (#2007)

Resolves #1830

This change replaces all instances of global logger usage in the
ToolHive operator with context-aware logging to preserve trace
context for better observability.

Changes:
- Updated validateRunConfig() to accept context and use log.FromContext()
- Updated helper functions in mcpserver_controller.go to use context-aware logging:
  - ensureRequiredEnvVars()
  - serviceForMCPServer()
  - deploymentNeedsUpdate()
  - generateKubernetesOIDCArgs()
  - generateConfigMapOIDCArgs()
- Removed unused global logger imports
- Updated function signatures to accept context.Context parameters
- Fixed all calling sites to pass context
- Updated test files to accommodate new function signatures
- Fixed linting issues (line length violations)

All tests pass and no regressions introduced.

19 of 35 new or added lines in 2 files covered. (54.29%)

4 existing lines in 2 files now uncovered.

15711 of 35136 relevant lines covered (44.71%)

15.63 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
16
66.2
-0.21% cmd/thv-operator/controllers/mcpserver_controller.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
92.86
-1.43% pkg/secrets/keyring/composite.go
2
44.56
-0.26% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 17976260211.1 24 Sep 2025 12:17PM UTC 271
44.71
GitHub Action Run
Source Files on build 17976260211
  • Tree
  • List 271
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17976260211
  • 4af4b8d7 on github
  • Prev Build on main (#17972951344)
  • Next Build on main (#17979842078)
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