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

stacklok / toolhive / 18320533410
51%

Build:
DEFAULT BRANCH: main
Ran 07 Oct 2025 05:19PM UTC
Jobs 1
Files 281
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

07 Oct 2025 05:13PM UTC coverage: 46.05% (+0.1%) from 45.919%
18320533410

push

github

web-flow
MCPRegistry e2e tests (#2017)

* Add MCPRegistry controller e2e test framework

- Create Ginkgo-based test suite for operator testing
- Add comprehensive test helpers for MCPRegistry operations
- Include test fixtures with sample YAML manifests
- Set up Kubernetes test environment with envtest support
- Add namespace isolation and cleanup utilities

🤖 Generated with [Claude Code](https://claude.ai/code)

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>

* Add comprehensive Ginkgo test framework for MCPRegistry e2e testing

- Create test suite with proper Kubernetes environment setup
- Add specialized helper utilities for MCPRegistry operations
- Implement ConfigMap test helpers for registry data validation
- Add status validation helpers for phase and condition checking
- Create timing utilities with proper timeout configurations
- Add test data factories for generating test resources
- Include builder patterns for fluent resource construction
- Support both ToolHive and upstream MCP registry formats
- Add comprehensive test fixtures and scenarios

🤖 Generated with [Claude Code](https://claude.ai/code)

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>

* Fix MCPRegistry e2e test timeouts and finalizer handling

- Fix finalizer removal using Patch instead of Update to avoid resource conflicts
- Update registry data structure to match expected schema (add required fields: tier, status, tools, image)
- Add proper registry deletion waiting in cleanup to prevent namespace deletion issues
- Fix lint errors by removing dot imports from non-test files
- Add comprehensive MCPRegistry lifecycle test coverage
- Improve error handling and logging in test helpers

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>

🤖 Generated with [Claude Code](https://claude.ai/code)

* reviewed finalization logic to avoid u... (continued)

78 of 210 new or added lines in 4 files covered. (37.14%)

12 existing lines in 4 files now uncovered.

17052 of 37029 relevant lines covered (46.05%)

16.24 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
25
74.43
6.67% cmd/thv-operator/pkg/sync/manager.go
27
77.31
-2.2% cmd/thv-operator/pkg/mcpregistrystatus/collector.go
80
0.0
0.0% cmd/thv-operator/controllers/mcpregistry_controller.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
74.43
6.67% cmd/thv-operator/pkg/sync/manager.go
2
83.24
-0.56% pkg/transport/proxy/httpsse/http_proxy.go
3
91.38
-5.17% cmd/thv-operator/pkg/sync/detectors.go
6
64.89
-6.38% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 18320533410.1 07 Oct 2025 05:19PM UTC 281
46.05
GitHub Action Run
Source Files on build 18320533410
  • Tree
  • List 281
  • Changed 8
  • Source Changed 6
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18320533410
  • 130be285 on github
  • Prev Build on main (#18317216753)
  • Next Build on main (#18320705375)
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

© 2025 Coveralls, Inc