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

stacklok / toolhive / 21703606220
61%

Build:
DEFAULT BRANCH: main
Ran 05 Feb 2026 08:11AM UTC
Jobs 1
Files 492
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

05 Feb 2026 08:03AM UTC coverage: 60.806% (+0.1%) from 60.668%
21703606220

push

github

web-flow
Add circuit breaker pattern to vMCP health monitoring (#3528)

* Add circuit breaker pattern to vMCP health monitoring

Implement circuit breaker state machine for backend health monitoring
in Virtual MCP Server. The circuit breaker prevents cascading failures
by tracking backend failures and transitioning through three states:
Closed (normal operation), Open (failing), and HalfOpen (recovery testing).

Key changes:
  - Add CircuitBreaker with thread-safe state machine
  - Integrate circuit breaker with status tracker
  - Integrate circuit breaker with health monitor
  - Add comprehensive test coverage

The circuit breaker is disabled by default for backwards compatibility.
Configuration wiring from YAML/CRD to health monitor is intentionally
left for a follow-up PR to keep this change focused on the core
implementation.

Related-to: #3036

* changes from review

* changes from review

* changes from review

---------

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

253 of 285 new or added lines in 3 files covered. (88.77%)

12 existing lines in 4 files now uncovered.

40775 of 67058 relevant lines covered (60.81%)

79.14 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
91.74
pkg/vmcp/health/circuit_breaker.go
11
90.93
-0.24% pkg/vmcp/health/monitor.go
11
92.49
-2.72% pkg/vmcp/health/status.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
54.0
-2.0% pkg/networking/port.go
2
79.58
-0.53% pkg/transport/proxy/httpsse/http_proxy.go
2
57.89
-3.51% pkg/transport/session/sse_session.go
6
75.47
-5.66% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 21703606220.1 05 Feb 2026 08:11AM UTC 492
60.81
GitHub Action Run
Source Files on build 21703606220
  • Tree
  • List 492
  • Changed 10
  • Source Changed 2
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21703606220
  • 8e25a445 on github
  • Prev Build on main (#21699165841)
  • Next Build on main (#21704774481)
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