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

stacklok / toolhive / 23959989489
65%

Build:
DEFAULT BRANCH: main
Ran 03 Apr 2026 07:58PM UTC
Jobs 1
Files 604
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

03 Apr 2026 07:52PM UTC coverage: 65.167% (+0.01%) from 65.153%
23959989489

push

github

web-flow
Fix flaky VirtualMCPServer scaling e2e test (#4524)

The Horizontal Scaling test intermittently timed out waiting for the
VirtualMCPServer to become Ready because the health monitor permanently
reported the backend as unhealthy with "server returned 4xx for
initialize POST".

Root cause: two bugs working together.

1. Wrong localhost fallback in K8s backend discovery. When the MCPServer
   Status.URL hadn't been set yet by the operator (race during startup),
   mcpServerToBackend fell back to http://127.0.0.1:8080/mcp. Inside a
   K8s pod, that hits the vMCP's own metrics server on port 8080, which
   returns 4xx to MCP POST requests.

2. Stale backend in health monitor. UpdateBackends only handled
   adding/removing backends by ID. When the reconciler later updated the
   registry with the correct service URL, the health check goroutine
   kept using the captured stale localhost pointer.

Fix: remove the localhost fallback for both MCPServer and
MCPRemoteProxy — if Status.URL is empty the backend is skipped and the
reconciler adds it once the URL is set. Also teach UpdateBackends to
restart goroutines when a backend's URL or transport type changes.

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

33 of 33 new or added lines in 2 files covered. (100.0%)

21 existing lines in 6 files now uncovered.

54590 of 83770 relevant lines covered (65.17%)

63.38 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
76.15
-5.5% pkg/secrets/keyring/keyctl_linux.go
5
82.81
0.0% pkg/vmcp/composer/workflow_engine.go
3
71.85
-1.11% pkg/ignore/processor.go
3
79.38
-0.77% pkg/transport/proxy/httpsse/http_proxy.go
2
94.77
-1.31% pkg/vmcp/composer/dag_executor.go
2
95.68
-1.44% pkg/vmcp/composer/template_expander.go
Jobs
ID Job ID Ran Files Coverage
1 23959989489.1 03 Apr 2026 07:58PM UTC 604
65.17
GitHub Action Run
Source Files on build 23959989489
  • Tree
  • List 604
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23959989489
  • bd4a04f6 on github
  • Prev Build on main (#23958443676)
  • Next Build on main (#23961481522)
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