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

stacklok / toolhive / 45432026957
75%

Build:
DEFAULT BRANCH: main
Ran 24 Nov 2026 04:11PM UTC
Jobs 1
Files 1059
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

24 Nov 2026 04:00PM UTC coverage: 74.045% (+0.02%) from 74.026%
45432026957

push

github

web-flow
Reduce vMCP memory held by idle sessions and bursts (#7265)

* Stop resync liveness check refreshing session TTL

The list_changed/health resync opened with a GetMultiSession liveness
check. That goes through the node-local cache: a hit runs checkSession,
whose storage.Load refreshes the session TTL (GETEX on Redis, the
last-access time in memory), and a miss restores the session and opens
backend connections. The resync fires for every registered session on
each backend health change and on each backend list_changed, so
sessions abandoned without a DELETE were kept alive for as long as
backends flapped. The expiry sweep from #7259 then never reclaimed
them, which contributed to OOM kills from abandoned sessions.

Check liveness with LookupOwner instead. It reads metadata only, never
restores, and reports absent or terminated sessions as
ErrSessionNotFound, which still prunes the health-resync registration.
A storage failure now skips the run without pruning, since it says
nothing about whether the session is alive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Deduplicate concurrent capability cache misses

A vMCP embedder was OOMKilled on a 512Mi pod. Part of the cause was
bursts of concurrent requests from one caller: every request that
missed the capability cache ran its own full backend sweep, so up to
24 sweeps ran at once, each allocating tens of MiB. Expired entries
were also only checked lazily on read and never removed, so a key that
was never requested again kept a full tool catalogue copy in the LRU.

Concurrent misses for the same key now share one sweep through
singleflight. Each caller waits on its own context, so a cancelled
request returns promptly. If the shared sweep ends because the
leader's context was cancelled, waiters with a live context sweep on
their own context. That covers a sweep that still succeeds with a
partial view, since the default aggregator skips backends it could not
reach; such a view is neither cac... (continued)

147 of 153 new or added lines in 5 files covered. (96.08%)

9 existing lines in 4 files now uncovered.

99511 of 134393 relevant lines covered (74.04%)

871.94 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
95.16
-0.92% pkg/vmcp/aggregator/caching_aggregator.go

Coverage Regressions

Lines Coverage ∆ File
6
72.34
-6.38% pkg/secrets/keyring/keyctl_linux.go
1
96.77
-3.23% pkg/foreach/foreach.go
1
88.02
-0.12% pkg/transport/proxy/transparent/transparent_proxy.go
1
81.58
-0.12% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 45432026957.1 24 Nov 2026 04:11PM UTC 1059
74.04
GitHub Action Run
Source Files on build 45432026957
  • Tree
  • List 1059
  • Changed 13
  • Source Changed 8
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45432026957
  • c6c1b40d on github
  • Prev Build on main (#45390205118)
  • Next Build on main (#45440197934)
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