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

stacklok / toolhive / 26818362175
66%

Build:
DEFAULT BRANCH: main
Ran 02 Jun 2026 12:07PM UTC
Jobs 1
Files 747
Run time 2min
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

02 Jun 2026 12:01PM UTC coverage: 65.803% (-0.1%) from 65.924%
26818362175

push

github

web-flow
Add thv upgrade check and list --check-upgrades (#5409)

* Add upgrade detection for registry workloads

CLI and API users have no way to discover when a newer version of a
registry-sourced MCP server is available; only Studio implements drift
detection, in its frontend. Introduce a backend package that all clients
can consume.

Add pkg/workloads/upgrade with a Checker that compares a running
workload's image tag against its registry entry (semver-aware, with a
string fallback) and reports environment-variable and configuration
(transport / permission-profile / network-isolation) drift. Comparison
degrades safely to "unknown" for :latest, digest refs, repository
changes, and non-registry-sourced workloads, so only a strictly-newer
tag on the same repository yields "upgrade-available".

This is the read-only detection core (RFC THV-0068, phase A); the apply
path, API endpoints, and CLI follow in later changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Address review feedback on upgrade detection

- Lowercase an uppercase "V" tag prefix so semver comparison works;
  "V1.2.0" vs "V1.3.0" no longer falls through to undecidable and
  hides a real upgrade.
- Drop the raw provider error from CheckResult.Reason (it is serialized
  into the API response and can leak internal addressing); log it at
  DEBUG and return a fixed string. Same for the CheckAll path.
- Add a defensive default to the comparison switch so an unexpected
  value yields StatusUnknown rather than the least-safe StatusUpToDate.
- Stop reporting network-isolation drift: the registry has no
  network-isolation field, so it fired for every isolated workload
  regardless of the candidate version. Remove the ConfigDrift field
  and the now-unused BoolChange type.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Add upgrade-check REST endpoints for workloads

CLI, Studio, and automation need a single backend source of truth for
upgrade availab... (continued)

28 of 226 new or added lines in 3 files covered. (12.39%)

8 existing lines in 2 files now uncovered.

66018 of 100327 relevant lines covered (65.8%)

64.21 hits per line

Uncovered Changes

Lines Coverage ∆ File
134
14.65
cmd/thv/app/upgrade.go
63
9.64
-0.74% cmd/thv/app/list.go
1
0.0
0.0% cmd/thv/app/commands.go

Coverage Regressions

Lines Coverage ∆ File
6
72.35
-1.93% pkg/runner/config.go
2
9.64
-0.74% cmd/thv/app/list.go
Jobs
ID Job ID Ran Files Coverage
1 26818362175.1 02 Jun 2026 12:07PM UTC 747
65.8
GitHub Action Run
Source Files on build 26818362175
  • Tree
  • List 747
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26818362175
  • a49b4fac on github
  • Prev Build on main (#26816718324)
  • Next Build on main (#26822005647)
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