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

stacklok / toolhive / 17674767881
58%

Build:
DEFAULT BRANCH: main
Ran 12 Sep 2025 12:45PM UTC
Jobs 1
Files 241
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

12 Sep 2025 12:41PM UTC coverage: 41.441% (+0.3%) from 41.096%
17674767881

push

github

web-flow
[Kubernetes MCPRegistry] ConfigMap source and store manager (#1829)

* - SourceHandler interface
- ConfigMap source handler
- Basic unit tests

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>

* - SourceHandler and FormatConverter types

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>

* using Registry schema

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>

* Refactor ConfigMap handling to use a constant key for registry data

- Updated tests and implementation to replace hardcoded "registry.json" key with ConfigMapSourceDataKey constant.
- Introduced ConfigMapStorageManager for managing registry data in ConfigMaps, including methods for storing, retrieving, and deleting data.
- Added comprehensive unit tests for the new storage manager functionality.

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>

* Refactor storage manager tests to use constant for ConfigMap key

- Updated test cases to replace hardcoded "registry.json" key with ConfigMapStorageDataKey constant.
- Ensured consistency in data handling across storage manager methods.

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>

* Refactor registry handling and improve test coverage

- Updated ConfigMapSourceHandler to validate and parse registry data directly, removing legacy methods.
- Enhanced test cases to utilize a new TestRegistryBuilder for generating test data, improving readability and maintainability.
- Introduced new methods for handling registry data in a more structured way, including validation and conversion between formats.
- Updated SyncResult to encapsulate parsed registry data instead of raw data, streamlining the sync process.

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>

* Refactor storage manager to use constant for component label

- Updated the storage manager implementation and tests to replace the hardcoded "registry-storage" component label with the new RegistryStorageComponent constant.
- Improved consistency and maintain... (continued)

356 of 636 new or added lines in 7 files covered. (55.97%)

10 existing lines in 4 files now uncovered.

13174 of 31790 relevant lines covered (41.44%)

16.67 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% cmd/thv-operator/main.go
6
92.5
cmd/thv-operator/pkg/sources/configmap.go
8
88.57
cmd/thv-operator/pkg/sources/types.go
13
90.23
cmd/thv-operator/pkg/sources/storage_manager.go
90
49.72
cmd/thv-operator/pkg/sources/testutils.go
162
0.0
0.0% cmd/thv-operator/controllers/mcpregistry_controller.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% cmd/thv-operator/controllers/mcpregistry_controller.go
1
94.29
1.43% pkg/secrets/keyring/composite.go
2
81.54
-0.62% pkg/transport/proxy/httpsse/http_proxy.go
6
64.89
15.96% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 17674767881.1 12 Sep 2025 12:45PM UTC 241
41.44
GitHub Action Run
Source Files on build 17674767881
  • Tree
  • List 241
  • Changed 6
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17674767881
  • cf6e74d4 on github
  • Prev Build on main (#17673133449)
  • Next Build on main (#17685350312)
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