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

stacklok / toolhive / 23334526557
64%

Build:
DEFAULT BRANCH: main
Ran 20 Mar 2026 08:19AM UTC
Jobs 1
Files 569
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

20 Mar 2026 08:14AM UTC coverage: 64.775% (+0.7%) from 64.111%
23334526557

push

github

web-flow
refactor(vmcp): pull optimizer and composite tool decoration into session factory (#4231)

Move optimizer and composite tool construction from server-level post-session
decoration into the MultiSessionFactory via a new DecoratingFactory wrapper.
Sessions are now fully formed at creation time — the server unconditionally
calls the factory and always gets a decorated MultiSession.

- Add session.Decorator type and NewDecoratingFactory to apply decorators at
  session construction time
- Add adaptToolsForFactory helper for optimizer tool indexing without
  session-manager-specific terminate callbacks
- Move composite tool converter functions (FilterWorkflowDefsForSession,
  ConvertWorkflowDefsToTools, ValidateNoToolConflicts) out of server/ into
  the compositetools package where they belong
- Remove DecorateSession and GetMultiSession from SessionManager interface
  and implementation — no longer needed
- Delete adapter/optimizer_adapter.go (re-export of constants already in
  optimizerdec); delete its trivial test
- Apply early-return guard clause in compositetools.CallTool to reduce nesting

Closes: #3872

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

357 of 470 new or added lines in 6 files covered. (75.96%)

6 existing lines in 3 files now uncovered.

50046 of 77261 relevant lines covered (64.78%)

72.99 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
84.0
pkg/vmcp/session/decorating_factory.go
8
86.8
-1.77% pkg/vmcp/server/sessionmanager/session_manager.go
10
78.85
pkg/vmcp/internal/compositetools/decorator.go
91
74.65
pkg/vmcp/server/sessionmanager/factory.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
94.67
-1.33% pkg/vmcp/composer/dag_executor.go
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
2
51.71
-0.19% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 23334526557.1 20 Mar 2026 08:19AM UTC 569
64.78
GitHub Action Run
Source Files on build 23334526557
  • Tree
  • List 569
  • Changed 27
  • Source Changed 4
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23334526557
  • a5a1cd5d on github
  • Prev Build on main (#23318573663)
  • Next Build on main (#23335544920)
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