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

stacklok / toolhive / 23532991680
65%

Build:
DEFAULT BRANCH: main
Ran 25 Mar 2026 09:05AM UTC
Jobs 1
Files 577
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

25 Mar 2026 09:01AM UTC coverage: 64.045% (+0.04%) from 64.001%
23532991680

push

github

web-flow
fix: return 503 instead of 500 when upstream registry is unavailable (#4352)

* fix: return 503 instead of 500 when upstream registry is unavailable

When the configured registry API URL is wrong or the upstream registry
returns a non-auth error (404, timeout, connection refused), the GET
endpoints now return HTTP 503 with a structured JSON response containing
code "registry_unavailable" and the original error message, instead of
a generic 500 "Failed to get registry".

This follows the same pattern as the existing "registry_auth_required"
503 response, allowing clients to distinguish between auth issues and
upstream availability issues.

Fixes #4351

Made-with: Cursor

* fix: rename RegistryUnavailableError to UnavailableError to avoid stutter

Address golangci-lint revive and gci formatting issues:
- Rename RegistryUnavailableError → UnavailableError (registry.RegistryUnavailableError stutters)
- Fix struct field alignment formatting (gci)

Made-with: Cursor

* refactor: rename registryAuthErrorResponse to registryErrorResponse

The struct is now used for both registry_auth_required and
registry_unavailable 503 responses, so the name should be generic.

Made-with: Cursor

24 of 49 new or added lines in 3 files covered. (48.98%)

193 existing lines in 4 files now uncovered.

51229 of 79989 relevant lines covered (64.05%)

148.44 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
28.18
16.02% pkg/registry/provider_api.go
24
22.17
-0.15% pkg/api/v1/registry.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
94.67
-1.33% pkg/vmcp/composer/dag_executor.go
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
3
81.65
-0.63% pkg/transport/proxy/transparent/transparent_proxy.go
186
22.17
-0.15% pkg/api/v1/registry.go
Jobs
ID Job ID Ran Files Coverage
1 23532991680.1 25 Mar 2026 09:05AM UTC 577
64.05
GitHub Action Run
Source Files on build 23532991680
  • Tree
  • List 577
  • Changed 13
  • Source Changed 2
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23532991680
  • ff4afdea on github
  • Prev Build on main (#23530643341)
  • Next Build on main (#23533148569)
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