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

stacklok / toolhive / 24442318933
66%

Build:
DEFAULT BRANCH: main
Ran 15 Apr 2026 07:41AM UTC
Jobs 1
Files 630
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

15 Apr 2026 07:36AM UTC coverage: 65.688% (-0.008%) from 65.696%
24442318933

push

github

web-flow
Add horizontal scaling tests for vmcp (#4724)

* Revert "Revert "Add LRU capacity to ValidatingCache, remove sentinel pattern, add storage Update" (#4730)"

This reverts commit acc1f6630.

* changes from review

* Add horizontal scaling tests for vmcp

Add integration and e2e tests for Redis-backed vMCP session sharing

Integration tests (pkg/vmcp/server/sessionmanager, miniredis):
- AC1: cross-pod session reconstruction via RestoreSession on cache miss
- AC2: hijack prevention — wrong/nil callers rejected after restore,
       correct caller routes successfully
- AC4: all backends unreachable on restore → empty routing table returned
- AC5: NotifyBackendExpired removes backend from Redis metadata;
       subsequent restore on a fresh pod skips the expired backend
- AC6: LocalSessionDataStorage (no Redis) → no cross-pod sharing

E2E tests (test/e2e/thv-operator/virtualmcp, Kind + real Redis):
- replicas=2 + Redis → SessionStorageWarning=False and Ready=True
- cross-pod session reconstruction: session initialized on pod A is
  usable on pod B via transport.WithSession(sessionID)

Note: AC3 (LRU eviction, RC-10) is intentionally excluded — TTL-based
Redis eviction is sufficient.

Closes #4222

* changes from review

* fixes from review

---------

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

41 of 61 new or added lines in 7 files covered. (67.21%)

1036 existing lines in 15 files now uncovered.

57280 of 87200 relevant lines covered (65.69%)

62.33 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
77.49
-1.04% pkg/vmcp/server/server.go
7
3.08
-0.03% cmd/vmcp/app/commands.go

Coverage Regressions

Lines Coverage ∆ File
351
41.97
-0.25% cmd/thv-operator/api/v1alpha1/zz_generated.deepcopy.go
302
61.6
1.84% cmd/thv-operator/controllers/mcpserver_controller.go
223
60.72
-0.06% cmd/thv-operator/controllers/mcpremoteproxy_controller.go
39
73.95
5.99% cmd/thv-operator/controllers/mcpserver_runconfig.go
28
82.66
-4.72% cmd/thv-operator/controllers/mcpremoteproxy_deployment.go
22
69.87
-0.22% cmd/thv-operator/controllers/mcpremoteproxy_runconfig.go
22
39.5
-6.76% pkg/vmcp/k8s/backend_reconciler.go
14
74.44
-5.19% pkg/client/config.go
11
68.83
-14.29% pkg/client/discovery.go
8
23.56
-4.6% pkg/client/manager.go
6
68.85
-2.58% pkg/vmcp/k8s/manager.go
5
0.0
0.0% cmd/thv/app/export.go
2
94.87
1.03% cmd/thv-operator/pkg/controllerutil/oidc.go
2
93.94
-6.06% pkg/foreach/foreach.go
1
92.86
-1.26% cmd/thv-operator/api/v1alpha1/mcpremoteproxy_types.go
Jobs
ID Job ID Ran Files Coverage
1 24442318933.1 15 Apr 2026 07:41AM UTC 630
65.69
GitHub Action Run
Source Files on build 24442318933
  • Tree
  • List 630
  • Changed 27
  • Source Changed 18
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24442318933
  • 9176e93f on github
  • Prev Build on main (#24423712742)
  • Next Build on main (#24442333364)
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