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

stacklok / toolhive / 22688788227
64%

Build:
DEFAULT BRANCH: main
Ran 04 Mar 2026 09:02PM UTC
Jobs 1
Files 532
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

04 Mar 2026 08:52PM UTC coverage: 63.818% (+0.001%) from 63.817%
22688788227

push

github

web-flow
Fix MCP server tests and remove macos-latest from unit test matrix (#4002)

* Fix MCP server tests to not require container runtime

The MCP server unit tests called New() directly, which internally calls
workloads.NewManager() to detect a container runtime. This caused tests
to fail on macOS GitHub Actions runners where Docker is not pre-installed
(unlike ubuntu-latest runners which have Docker by default).

Extract newServerWithHandler from New() to allow injecting a pre-built
handler. Tests now use mock dependencies via a newTestServer helper,
making them portable across all environments without relying on ambient
infrastructure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Use real runtime on non-darwin in MCP server tests

On macOS (darwin) a container runtime may not be present, so tests use
mock dependencies. On Linux (and other platforms) the real New()
constructor is used, exercising the full stack with an actual runtime.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Use real runtime on non-darwin in MCP server tests

On macOS (darwin) a container runtime may not be present, so tests use
mock dependencies. On Linux (and other platforms) the real New()
constructor is used, exercising the full stack with an actual runtime.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Use real runtime on non-darwin in MCP server tests

On macOS (darwin) a container runtime may not be present, so tests use
mock dependencies. On Linux (and other platforms) the real New()
constructor is used, exercising the full stack with an actual runtime.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Use real runtime on non-darwin in MCP server tests

On macOS (darwin) a container runtime may not be present, so tests use
mock dependencies. On Linux (and other platforms) the real New()
constructor is used, exercising the full stack with an actual runtime.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

... (continued)

6 of 8 new or added lines in 1 file covered. (75.0%)

10 existing lines in 3 files now uncovered.

46725 of 73216 relevant lines covered (63.82%)

76.04 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
97.41
0.03% pkg/mcp/server/server.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
54.0
-2.0% pkg/networking/port.go
4
84.01
-1.08% pkg/audit/auditor.go
4
53.59
-0.39% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 22688788227.1 04 Mar 2026 09:02PM UTC 532
63.82
GitHub Action Run
Source Files on build 22688788227
  • Tree
  • List 532
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22688788227
  • 442d13c0 on github
  • Prev Build on main (#22686117914)
  • Next Build on main (#22702608708)
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