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

stacklok / toolhive / 23020814602
64%

Build:
DEFAULT BRANCH: main
Ran 12 Mar 2026 07:51PM UTC
Jobs 1
Files 553
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

12 Mar 2026 07:48PM UTC coverage: 64.358% (+0.03%) from 64.331%
23020814602

push

github

web-flow
Remove discovery cache to fix flaky vMCP tests (#4110)

The discovery manager's per-user capability cache was causing flaky E2E test failures in virtualmcp_discovered_mode_test.go. When a new backend wasn't ready during the first AggregateCapabilities call, the partial result (e.g., 4 tools from 2 backends instead of 6 from 3) was cached and served for all subsequent requests for up to 5 minutes (TTL).
Since new MCP sessions are infrequent and aggregation latency is negligible compared to LLM round-trips, the cache is premature optimization. This PR removes it entirely, computing discovery results fresh on each request.
Reverts the QueriedBackendCount field added to AggregationMetadata in the initial fix approach, since it's no longer needed without caching.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

6 of 6 new or added lines in 1 file covered. (100.0%)

35 existing lines in 4 files now uncovered.

48472 of 75316 relevant lines covered (64.36%)

73.21 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
82.83
-0.26% pkg/vmcp/composer/workflow_engine.go
8
23.56
-4.6% pkg/client/manager.go
11
68.42
-14.47% pkg/client/discovery.go
14
74.44
-5.19% pkg/client/config.go
Jobs
ID Job ID Ran Files Coverage
1 23020814602.1 12 Mar 2026 07:51PM UTC 553
64.36
GitHub Action Run
Source Files on build 23020814602
  • Tree
  • List 553
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23020814602
  • c8a322ec on github
  • Prev Build on main (#23008849893)
  • Next Build on main (#23027222286)
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