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

stacklok / toolhive / 17976260211 / 1
59%
main: 59%

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

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.

15711 of 35136 relevant lines covered (44.71%)

15.63 hits per line

Source Files on job 17976260211.1
  • Tree
  • List 271
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17976260211
  • 4af4b8d7 on github
  • Prev Job for on main (#17972951344.1)
  • Next Job for on main (#17979842078.1)
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