Skip to content

Flaky test: TestServer_HealthMonitoring_Enabled #3985

Closed

Description

@JAORMX

TestServer_HealthMonitoring_Enabled in pkg/vmcp/server/health_monitoring_test.go is flaky due to tight timing thresholds.

The test uses:

  • check_interval=50ms
  • unhealthy_threshold=1
  • timeout=10ms
  • degraded_threshold=5ms

Under load or with the race detector enabled, the health check can exceed the 5ms degraded threshold, causing the test to see "degraded" instead of the expected "healthy" status.

health_monitoring_test.go:152:
    Error:      Not equal:
                expected: "healthy"
                actual  : "degraded"

The fix should increase the timing thresholds to be more tolerant of CI/local machine variance.

Activity

  1. added
    bug
    on Mar 4, 2026
  2. added
    go
    vmcp
    on Mar 4, 2026
  3. added a commit that references this issue on Mar 4, 2026
    af90801
  4. added a commit that references this issue on Mar 4, 2026
    a38033f
  5. added a commit that references this issue on Mar 4, 2026
    0706064
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggovmcp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions