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

stacklok / toolhive / 21435382847
60%

Build:
DEFAULT BRANCH: main
Ran 28 Jan 2026 11:01AM UTC
Jobs 1
Files 479
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

28 Jan 2026 10:54AM UTC coverage: 60.429% (+0.06%) from 60.365%
21435382847

push

github

web-flow
Add registry validation and structured errors (#3479)

* Add registry validation and structured errors

This change introduces comprehensive validation for registry configurations
and structured error types for better error handling and classification.

Changes:
- Add 5-second timeout support to HTTP client builder
- Add registry validation in provider_remote.go (isValidRegistryJSON, registryHasServers)
- Add comprehensive validation tests in provider_test.go
- Introduce structured error types (RegistryError, ErrRegistryTimeout, etc.)
- Add error classification logic (classifyNetworkError)
- Update registry.go to return RegistryError types with proper context
- Update tests to reflect new error handling

This lays the foundation for improved error handling in the registry API
and CLI, enabling proper HTTP status codes (502, 504) based on error type.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* remove incorrect e2e scenario

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>

100 of 127 new or added lines in 4 files covered. (78.74%)

16 existing lines in 3 files now uncovered.

38738 of 64105 relevant lines covered (60.43%)

77.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
46.32
5.64% pkg/registry/provider_remote.go
21
66.43
0.48% pkg/config/registry.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
82.83
-0.26% pkg/vmcp/composer/workflow_engine.go
3
66.43
0.48% pkg/config/registry.go
11
46.32
5.64% pkg/registry/provider_remote.go
Jobs
ID Job ID Ran Files Coverage
1 21435382847.1 28 Jan 2026 11:01AM UTC 479
60.43
GitHub Action Run
Source Files on build 21435382847
  • Tree
  • List 479
  • Changed 7
  • Source Changed 3
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21435382847
  • 6c2a0c5b on github
  • Prev Build on main (#21435373072)
  • Next Build on main (#21436272532)
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