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

stacklok / toolhive / 25017194633 / 1
66%
main: 66%

Build:
DEFAULT BRANCH: main
Ran 27 Apr 2026 08:21PM UTC
Files 671
Run time 29s
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

27 Apr 2026 08:14PM UTC coverage: 66.208% (-0.007%) from 66.215%
25017194633.1

push

github

web-flow
Drop legacy registry format support (#5067)

* Drop legacy registry format support

Now that the v0.1 work standardizes on the upstream MCP format, the
parser and validators no longer need to accept the legacy ToolHive
format alongside it. The auto-detect helpers, deprecation warnings,
and duplicated format-discriminator code make the parsing path
harder to reason about and earn nothing.

- pkg/registry/upstream_parser.go: drop isUpstreamFormat,
  parseRegistryAutoDetect, and the legacy fallback branch; rename
  the upstream-only parser to parseRegistryData. Detect legacy
  input up front and return errLegacyFormat with a migration hint
  pointing at `thv registry convert` (added in #5071) — without
  this, Go's JSON decoder silently produces an empty
  UpstreamRegistry, leaving callers with no servers and no error.
- pkg/registry/provider_{local,remote}.go: collapse the auto-detect
  branches into a single upstream parse and remove the
  legacy-format warning.
- pkg/config/registry.go: drop the duplicated isUpstreamRegistryFormat
  / registryHasServers helpers; both validators now parse only into
  UpstreamRegistry. Surface the same migration hint when a legacy
  file or URL is supplied to set-registry-file/set-registry-url.
- Convert legacy fixtures across pkg/registry, pkg/config, and
  pkg/api/v1 unit tests to the upstream format.
- docs/registry/schema.md: drop the legacy-schema section, point at
  the upstream schemas in toolhive-core, and document the migration
  command.

Depends on #5071 (the converter) so the migration hint resolves to
a real command.

* Address review follow-ups for legacy-format removal

- Convert examples/registry-with-remote-servers.json to upstream
  format. The legacy version was rejected at runtime and could not be
  auto-migrated by `thv registry convert` because it used lowercase
  `tier: "community"`, which fails the upstream schema's enum.
- Refresh docs/registry/schema.md test descriptions; the legacy-schema
  te... (continued)

59377 of 89683 relevant lines covered (66.21%)

62.37 hits per line

Source Files on job 25017194633.1
  • Tree
  • List 671
  • Changed 9
  • Source Changed 5
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25017194633
  • 2916aa1f on github
  • Prev Job for on main (#25010200036.1)
  • Next Job for on main (#25018931198.1)
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