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

stacklok / toolhive / 18968926888
51%

Build:
DEFAULT BRANCH: main
Ran 31 Oct 2025 09:56AM UTC
Jobs 1
Files 327
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

31 Oct 2025 09:51AM UTC coverage: 47.368% (-0.06%) from 47.423%
18968926888

push

github

web-flow
Handle partial flushes in tool config middleware (#2404)

Tool config middleware implicitly assumed that `Flush()` was only
called once a full SSE event was received by the proxy. While testing
remote servers we encountered a scenario in which a very long
`tools/list` (~80kb) caused golang reverse proxy implementation to run
`Flush()` more than once on partial SSE payloads.

Golang standard library code that triggered the bug is here
https://github.com/golang/go/blob/go1.25.0/src/net/http/httputil/reverseproxy.go#L708-L711

This change checks whether the SSE event is fully buffered, and keeps
buffering otherwise. It also ships an `testkit` enhancement that lets
the test developer wrap the test MCP server in a reverse
proxy. Ideally, we would use the same reverse proxy used by ToolHive
itself, but it's tightly coupled with container orchestrator and
requires refactoring.

Fixes #2403

69 of 157 new or added lines in 4 files covered. (43.95%)

6 existing lines in 3 files now uncovered.

20625 of 43542 relevant lines covered (47.37%)

22.21 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
60.95
-5.03% test/testkit/testkit.go
27
60.47
-4.85% test/testkit/sse_server.go
53
55.59
-10.02% test/testkit/streamable_server.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
55.59
-10.02% test/testkit/streamable_server.go
2
86.36
-0.23% pkg/mcp/tool_filter.go
3
96.5
-2.1% cmd/thv-operator/pkg/sources/git.go
Jobs
ID Job ID Ran Files Coverage
1 18968926888.1 31 Oct 2025 09:56AM UTC 327
47.37
GitHub Action Run
Source Files on build 18968926888
  • Tree
  • List 327
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18968926888
  • 3d98a090 on github
  • Prev Build on main (#18966673960)
  • Next Build on main (#18968952957)
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

© 2025 Coveralls, Inc