Skip to content

Conversation

@4t8dd
Copy link
Contributor

@4t8dd 4t8dd commented Dec 25, 2025

Implement StatusReporter interface and LoggingReporter to enable vMCP runtime to report operational status (phase, discovered backends, health conditions).

This commit provides:

  • Reporter interface with ReportStatus() and Start() methods
  • Status model: Phase, Conditions, DiscoveredBackends
  • LoggingReporter: Logs status updates for debugging (no persistence)
  • Integration into vMCP server lifecycle with shutdown function pattern

The interface is designed to support future implementations that persist status to different backends. This PR includes only the logging implementation for CLI mode.

Integration:

  • vMCP server calls reporter.Start() which returns shutdown function
  • CLI mode uses LoggingReporter with logging disabled by default
  • Status reporting is optional (nil reporter = disabled)

Related: #3147

Implement StatusReporter interface and LoggingReporter to enable vMCP runtime
to report operational status (phase, discovered backends, health conditions).

This commit provides:
- Reporter interface with ReportStatus() and Start() methods
- Status model: Phase, Conditions, DiscoveredBackends
- LoggingReporter: Logs status updates for debugging (no persistence)
- Integration into vMCP server lifecycle with shutdown function pattern

The interface is designed to support future implementations that persist status
to different backends. This PR includes only the logging implementation for CLI
mode.

Integration:
- vMCP server calls reporter.Start() which returns shutdown function
- CLI mode uses LoggingReporter with logging disabled by default
- Status reporting is optional (nil reporter = disabled)

Related: stacklok#3147
Signed-off-by: 4t8dd <wanger.xyz@gmail.com>
@github-actions github-actions bot added the size/L Large PR: 600-999 lines changed label Dec 25, 2025
@codecov
Copy link

codecov bot commented Dec 25, 2025

Codecov Report

❌ Patch coverage is 64.70588% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.15%. Comparing base (3b420d2) to head (743a193).

Files with missing lines Patch % Lines
pkg/vmcp/server/server.go 9.09% 8 Missing and 2 partials ⚠️
cmd/vmcp/app/commands.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3159   +/-   ##
=======================================
  Coverage   57.15%   57.15%           
=======================================
  Files         341      342    +1     
  Lines       34055    34089   +34     
=======================================
+ Hits        19463    19485   +22     
- Misses      12984    12994   +10     
- Partials     1608     1610    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@4t8dd
Copy link
Contributor Author

4t8dd commented Jan 7, 2026

@JAORMX can you take some time to review this PR so that I can keep working this serials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Large PR: 600-999 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant