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

stacklok / toolhive / 17767617340
51%

Build:
DEFAULT BRANCH: main
Ran 16 Sep 2025 01:39PM UTC
Jobs 1
Files 259
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

16 Sep 2025 01:35PM UTC coverage: 43.931% (+0.3%) from 43.591%
17767617340

push

github

web-flow
Registry filter (#1905)

* - 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 maintainability in label handling across the storage... (continued)

251 of 278 new or added lines in 4 files covered. (90.29%)

2 existing lines in 1 file now uncovered.

14628 of 33298 relevant lines covered (43.93%)

16.36 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
98.35
cmd/thv-operator/pkg/filtering/filter_service.go
25
74.49
0.41% cmd/thv-operator/pkg/sync/manager.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
43.21
-0.26% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 17767617340.1 16 Sep 2025 01:39PM UTC 259
43.93
GitHub Action Run
Source Files on build 17767617340
  • Tree
  • List 259
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17767617340
  • 395b6ba1 on github
  • Prev Build on main (#17765437379)
  • Next Build on main (#17786988051)
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