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

stacklok / toolhive / 23959989489 / 1
64%
main: 64%

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

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>

54590 of 83770 relevant lines covered (65.17%)

63.38 hits per line

Source Files on job 23959989489.1
  • Tree
  • List 604
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 23959989489
  • bd4a04f6 on github
  • Prev Job for on main (#23958443676.1)
  • Next Job for on main (#23961481522.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