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

stacklok / toolhive / 24497409662
66%

Build:
DEFAULT BRANCH: main
Ran 16 Apr 2026 07:24AM UTC
Jobs 1
Files 631
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

16 Apr 2026 07:18AM UTC coverage: 65.803% (+0.05%) from 65.755%
24497409662

push

github

web-flow
Expand singleflight boundary in ValidatingCache.Get to cover full hit+check and miss+load path (#4798)

Move the singleflight.Do boundary to wrap the entire Get operation rather than
only the miss+load path. This coalesces concurrent liveness checks for the same
key into a single storage.Load round-trip, reducing storage pressure under
concurrent access.

With only one goroutine running per key at a time:
- ContainsOrAdd is replaced with plain Add — the concurrent-writer race between
  multiple Get goroutines no longer exists
- The ContainsOrAdd + Get race-handling block is removed entirely
- The onEvict field on the struct is removed (it was only needed to manually
  call the callback in the discarded-load path)

As a side effect of the new design, an expired cache hit now evicts the entry
and falls through to load within the same singleflight operation, returning the
fresh value instead of (zero, false).

Closes #4729

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

35 of 38 new or added lines in 1 file covered. (92.11%)

7 existing lines in 3 files now uncovered.

57269 of 87031 relevant lines covered (65.8%)

61.98 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
93.83
7.53% pkg/cache/validating_cache.go

Coverage Regressions

Lines Coverage ∆ File
3
22.99
2.87% pkg/client/manager.go
2
82.29
-0.21% pkg/vmcp/composer/workflow_engine.go
2
51.71
-0.19% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 24497409662.1 16 Apr 2026 07:24AM UTC 631
65.8
GitHub Action Run
Source Files on build 24497409662
  • Tree
  • List 631
  • Changed 9
  • Source Changed 1
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24497409662
  • 12f25e5b on github
  • Prev Build on main (#24478256195)
  • Next Build on main (#24504069707)
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