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

stacklok / toolhive / 20781514468
50%

Build:
DEFAULT BRANCH: main
Ran 07 Jan 2026 12:31PM UTC
Jobs 1
Files 419
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

07 Jan 2026 12:29PM UTC coverage: 50.514% (+0.02%) from 50.499%
20781514468

push

github

web-flow
Add K8s manager infrastructure for vMCP dynamic backend discovery (#3192)

* Add K8s manager infrastructure for vMCP dynamic backend discovery

Implements controller-runtime manager wrapper for VirtualMCP servers
running in Kubernetes with dynamic backend discovery mode. This provides
the foundation for live backend updates without pod restarts.

Closes: #3000

* fixes from review

* fix ci

* Fix flaky auth discovery E2E test by adding pod readiness check

The "discovered auth behavior with real MCP requests" test was failing
intermittently on k8s 1.34.3 with "connection reset by peer" errors.

Root cause:
The nested Context's BeforeAll only checked that the Service had a NodePort
assigned, but did not verify the VirtualMCPServer pod was still running and
ready. Between the outer BeforeAll completing and the nested test executing,
the pod could have crashed or restarted, especially on k8s 1.34.3.

Fix:
Add explicit pod readiness checks in the nested BeforeAll to ensure:
1. VirtualMCPServer status is Ready
2. vMCP pods are running and ready
3. Only then proceed to get NodePort and run tests

This prevents the test from attempting HTTP connections to pods that may
have crashed or are in CrashLoopBackOff state.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* Fixes from review

---------

Co-authored-by: taskbot <taskbot@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>

98 of 186 new or added lines in 4 files covered. (52.69%)

4 existing lines in 2 files now uncovered.

28866 of 57145 relevant lines covered (50.51%)

59.04 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
75.79
0.69% pkg/vmcp/server/server.go
18
0.0
pkg/vmcp/server/mocks/mock_watcher.go
26
71.43
pkg/vmcp/k8s/manager.go
38
0.0
0.0% cmd/vmcp/app/commands.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
94.67
-1.33% pkg/vmcp/composer/dag_executor.go
2
52.74
-0.2% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 20781514468.1 07 Jan 2026 12:31PM UTC 419
50.51
GitHub Action Run
Source Files on build 20781514468
  • Tree
  • List 419
  • Changed 7
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20781514468
  • d1a13af5 on github
  • Prev Build on main (#20781461179)
  • Next Build on main (#20783566607)
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