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

stacklok / toolhive / 45793428050
75%

Build:
DEFAULT BRANCH: main
Ran 26 Nov 2026 09:45AM UTC
Jobs 1
Files 1076
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

26 Nov 2026 09:35AM UTC coverage: 74.399% (+0.03%) from 74.369%
45793428050

push

github

web-flow
Clean up isolation resources when workload setup fails (#7049)

* fix(docker): clean up isolation resources when workload setup fails

DeployWorkload creates the internal network and the dns/egress/ingress
containers before the MCP container exists. If any later step failed, they
were left behind and `thv rm` could not find them because it derives their
names from the MCP container. Remove them on the error path.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>

* fix(docker): only clean up isolation resources before the MCP container exists

Once the MCP container is created, thv rm already finds the dns/egress/
ingress containers and the network through it. Removing them on a later
ingress failure would leave the MCP container without its network.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>

* Keep isolation resources on restart failure

A restart reaches DeployWorkload with the stopped MCP container still
in place, so the internal network and sidecars belong to the existing
workload. Skip the failed-setup cleanup in that case and only roll back
for new workloads. Treat a failed existence lookup as existing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>

* Test isolation cleanup against a fake daemon

Address review feedback: run cleanupFailedIsolation against a fake Docker
daemon, attempt every sidecar and always delete the network, bound the
cleanup with a timeout detached from the caller's cancellation, and tighten
the deploy tests (expected errors per case, invalid port binding, ingress
failure injection, merged no-cleanup table).

Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>

* Merge isolation cleanup tests into one table

Rename by behavior (cleanup only before the MCP container exists) and
fold the restart/remove cases in... (continued)

38 of 42 new or added lines in 1 file covered. (90.48%)

10 existing lines in 3 files now uncovered.

101588 of 136545 relevant lines covered (74.4%)

868.98 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
62.69
3.32% pkg/container/docker/client.go

Coverage Regressions

Lines Coverage ∆ File
7
94.67
0.06% pkg/telemetry/middleware.go
2
73.19
-0.27% pkg/transport/proxy/streamable/streamable_proxy.go
1
96.77
-3.23% pkg/foreach/foreach.go
Jobs
ID Job ID Ran Files Coverage
1 45793428050.1 26 Nov 2026 09:44AM UTC 1076
74.4
GitHub Action Run
Source Files on build 45793428050
  • Tree
  • List 1076
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45793428050
  • ac27d5e4 on github
  • Prev Build on main (#45789352311)
  • Next Build on main (#45813108991)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc