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

stacklok / toolhive / 22664162162
64%

Build:
DEFAULT BRANCH: main
Ran 04 Mar 2026 10:03AM UTC
Jobs 1
Files 530
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 09:54AM UTC coverage: 63.792% (+0.04%) from 63.752%
22664162162

push

github

web-flow
Fix flaky TestServer_HealthMonitoring_Enabled and related tests (#3990)

Replace time.Sleep-based synchronization with require.Eventually polling
in three health monitoring server tests. The tests were flaky because:

- DegradedThreshold (5ms) and Timeout (10ms) were too tight for CI/race
  detector, causing mock calls to exceed thresholds
- time.Sleep waits are inherently racy and non-deterministic

Changes:
- Use require.Eventually to poll for expected health status instead of
  sleeping a fixed duration
- Increase Timeout from 10ms to 5s and DegradedThreshold from 5ms to 2s
  (mock calls never take that long, but prevents false degraded status)
- Replace trailing time.Sleep shutdown waits with select on errCh
- Add proper server startup error handling in HandleBackendHealth test

Verified with -race -count=20 on all three tests (60/60 pass, 0 races).

Fixes #3985

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

46509 of 72907 relevant lines covered (63.79%)

73.52 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
6
75.47
-5.66% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 22664162162.1 04 Mar 2026 10:03AM UTC 530
63.79
GitHub Action Run
Source Files on build 22664162162
  • Tree
  • List 530
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22664162162
  • a38033f8 on github
  • Prev Build on main (#22664151903)
  • Next Build on main (#22664522544)
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