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

stacklok / toolhive / 24655237604
66%

Build:
DEFAULT BRANCH: main
Ran 20 Apr 2026 08:05AM UTC
Jobs 1
Files 641
Run time 2min
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

20 Apr 2026 07:59AM UTC coverage: 66.337% (+0.09%) from 66.25%
24655237604

push

github

web-flow
Add EmbeddingServiceManager for TEI container lifecycle (#4912)

Implements pkg/vmcp/cli/embedding_manager.go — the component that
manages the lifecycle of a HuggingFace Text Embeddings Inference (TEI)
container for the Tier 2 semantic optimizer in thv vmcp serve.

Key behaviours:
- Deterministic container naming: thv-embedding-<sha256(model)[:8]>
- Idempotent Start: reuses an already-running container (reads port
  from toolhive-port label) or deploys a new one with LabelAuxiliary
- Model cache persisted at ~/.toolhive/embedding-models → /data bind mount
- Health polling with exponential backoff (2 s → 30 s, factor 2),
  draining response bodies to allow connection reuse
- Stop is a no-op when this instance did not start the container
- ContainerFactory narrow interface enables full unit testing without
  a live container daemon

Closes #4884

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

163 of 202 new or added lines in 2 files covered. (80.69%)

3 existing lines in 1 file now uncovered.

57979 of 87401 relevant lines covered (66.34%)

60.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
39
78.69
pkg/vmcp/cli/embedding_manager.go

Coverage Regressions

Lines Coverage ∆ File
3
79.38
-0.77% pkg/transport/proxy/httpsse/http_proxy.go
Jobs
ID Job ID Ran Files Coverage
1 24655237604.1 20 Apr 2026 08:05AM UTC 641
66.34
GitHub Action Run
Source Files on build 24655237604
  • Tree
  • List 641
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24655237604
  • eb7ddef5 on github
  • Prev Build on main (#24650159137)
  • Next Build on main (#24658066489)
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