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

stacklok / toolhive / 45385265890
75%

Build:
DEFAULT BRANCH: main
Ran 24 Nov 2026 11:41AM UTC
Jobs 1
Files 1058
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 11:33AM UTC coverage: 73.967% (-0.002%) from 73.969%
45385265890

push

github

web-flow
Sweep terminated sessions from the node-local cache (#7259)

A session terminated on another replica is deleted from shared storage, but
its MultiSession stays in the caching replica's node-local ValidatingCache:
checkSession only runs on a cache hit, which never comes once the client is
done with the session, so the backend connections and per-session state leak
until LRU eviction.

Add a background sweep to the session Manager that periodically validates
cached sessions against storage and evicts the gone/terminated ones, closing
their backend connections via the existing onEvict path. The sweep reads via
LoadMetadata so it does not refresh live sessions' Redis TTL. Add
ValidatingCache.Sweep (the predicate runs outside the cache lock so it may do
I/O) and FactoryConfig.SweepInterval (0 uses the 1m default; negative
disables).

Fixes #6932

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

46 of 51 new or added lines in 2 files covered. (90.2%)

62 existing lines in 6 files now uncovered.

99231 of 134156 relevant lines covered (73.97%)

873.89 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
81.53
0.14% pkg/vmcp/server/sessionmanager/session_manager.go

Coverage Regressions

Lines Coverage ∆ File
48
59.63
-4.58% pkg/workloads/manager.go
7
96.55
-0.77% pkg/authserver/server/tokenexchange/id_jag_handler.go
3
0.0
-100.0% pkg/workloads/sysproc_unix.go
2
73.19
-0.27% pkg/transport/proxy/streamable/streamable_proxy.go
1
94.24
0.0% pkg/authserver/storage/memory.go
1
81.58
-0.12% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 45385265890.1 24 Nov 2026 11:41AM UTC 1058
73.97
GitHub Action Run
Source Files on build 45385265890
  • Tree
  • List 1058
  • Changed 17
  • Source Changed 6
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45385265890
  • c1880755 on github
  • Prev Build on main (#45267984000)
  • Next Build on main (#45390205118)
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