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

stacklok / toolhive / 45694096583
75%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2026 08:29PM UTC
Jobs 1
Files 1072
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

25 Nov 2026 08:20PM UTC coverage: 74.274% (+0.03%) from 74.24%
45694096583

push

github

web-flow
Share optimizer embeddings across sessions and replicas (#7008)

* Share optimizer embeddings across replicas

The optimizer reuses a stored vector only when it is already committed in
the same process. Builds that start together on a cold store, as the first
sessions after a rollout do, each embed the full catalogue, and every
replica embeds it again after each restart. On a two-replica vMCP with
about 400 tools, the first session after a rollout took 52 seconds to set
up, mostly duplicate embedding batches queued behind each other.

Builds that need new vectors now take turns on a store: one that waited
looks again and reuses what the build before it committed. With Redis
session storage, vectors embedded under a verified model identity are also
written to that Redis under the session key prefix with a 7-day TTL, and a
replica reads them before embedding. A Redis error after startup is logged
and costs only reuse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Aron <aron@muonspace.com>

* Bound the wait for the optimizer embedding turn

A build that needs new vectors waited for the embedding turn with no
bound but its own context, which has no deadline on the Serve path. With
a hung embedding backend each holder spent the full request timeout
before handing over, so the last of N cold builds failed after about N
timeouts instead of one.

A build now waits at most 30 seconds for the turn and then embeds without
it, as every build did before the turn existed. It tries once per build.

Signed-off-by: Aron Gates <aron@muonspace.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep Redis out of the optimizer embedding turn

A build published its vectors to the shared cache while it still held the
embedding turn, and read the cache again after taking the turn. A slow
Redis, rather than a down one, then held up every other cold build on
the replica for the Redis timeouts.

The vectors are now published after the rows... (continued)

215 of 237 new or added lines in 9 files covered. (90.72%)

15 existing lines in 6 files now uncovered.

100999 of 135982 relevant lines covered (74.27%)

870.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
87.8
2.18% pkg/vmcp/optimizer/internal/toolstore/sqlite_store.go
5
96.88
-1.14% pkg/vmcp/optimizer/optimizer.go
2
94.12
pkg/vmcp/optimizer/internal/toolstore/embedding_cache.go
2
98.59
-1.41% pkg/vmcp/server/serve.go

Coverage Regressions

Lines Coverage ∆ File
6
72.34
-6.38% pkg/secrets/keyring/keyctl_linux.go
3
96.34
-3.66% pkg/auth/obo/cache/cache.go
3
64.29
-21.43% pkg/authserver/upstream/tokens.go
1
96.77
-3.23% pkg/foreach/foreach.go
1
88.02
-0.12% pkg/transport/proxy/transparent/transparent_proxy.go
1
87.8
2.18% pkg/vmcp/optimizer/internal/toolstore/sqlite_store.go
Jobs
ID Job ID Ran Files Coverage
1 45694096583.1 25 Nov 2026 08:29PM UTC 1072
74.27
GitHub Action Run
Source Files on build 45694096583
  • Tree
  • List 1072
  • Changed 19
  • Source Changed 8
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45694096583
  • e7570b0b on github
  • Prev Build on main (#45684522131)
  • Next Build on main (#45710086658)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc