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

stacklok / toolhive / 32353073432
70%

Build:
DEFAULT BRANCH: main
Ran 20 Aug 2026 09:24AM UTC
Jobs 1
Files 885
Run time 2min
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

20 Aug 2026 09:16AM UTC coverage: 69.22% (-0.1%) from 69.319%
32353073432

push

github

web-flow
Add plugin lock-file upgrade (#6317)

* Add plugin lock-file upgrade

Re-resolve plugins: lock entries and install newer content via
thv ai-plugin upgrade and POST /plugins/upgrade.

Signed-off-by: Samuele Verzi <samu@stacklok.com>

* Check local OCI store before registry on upgrade

Plain-name lock entries now resolve the same way Install does, so a
local rebuild is visible to upgrade. Also complete upgrade args from
lock entries and cover fail-on-changes in the plugin CLI e2e.

Signed-off-by: Samuele Verzi <samu@stacklok.com>

* Keep local plugin artifacts local on upgrade apply

A bare local-store tag must not be rewritten as a Docker Hub
digest reference; apply the resolved layer bytes instead.

Signed-off-by: Samuele Verzi <samu@stacklok.com>

* Persist the local-store tag on upgrade apply

The DB should keep the local tag while the lock file keeps
the previous restorable pin instead of a Docker Hub rewrite.

Signed-off-by: Samuele Verzi <samu@stacklok.com>

* Plan and apply each upgrade under the plugin lock

A stale plan must not resurrect an uninstall or overwrite a
newer install of the same plugin.

Signed-off-by: Samuele Verzi <samu@stacklok.com>

* Restore local plugin upgrades from the OCI store

Sync loads plain-source empty-reference pins by digest, and local
upgrades no longer keep a stale remote resolved reference.

Signed-off-by: Samuele Verzi <samu@stacklok.com>

---------

Signed-off-by: Samuele Verzi <samu@stacklok.com>

245 of 481 new or added lines in 9 files covered. (50.94%)

57 existing lines in 5 files now uncovered.

73856 of 106698 relevant lines covered (69.22%)

88.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
89
64.54
pkg/plugins/pluginsvc/upgrade.go
80
16.67
cmd/thv/app/ai_plugin_upgrade.go
29
66.94
-1.27% pkg/plugins/pluginsvc/sync.go
22
2.13
-1.87% cmd/thv/app/ai_plugin_helpers.go
13
74.77
-4.65% pkg/plugins/client/client.go
2
96.62
-0.56% pkg/api/v1/plugins.go
1
89.41
-0.31% pkg/plugins/pluginsvc/install.go

Coverage Regressions

Lines Coverage ∆ File
48
59.31
-4.58% pkg/workloads/manager.go
3
96.18
-0.57% pkg/authz/authorizers/cedar/core.go
3
0.0
-100.0% pkg/workloads/sysproc_unix.go
2
68.8
-0.85% pkg/ignore/processor.go
1
96.77
-3.23% pkg/foreach/foreach.go
Jobs
ID Job ID Ran Files Coverage
1 32353073432.1 20 Aug 2026 09:24AM UTC 885
69.22
GitHub Action Run
Source Files on build 32353073432
  • Tree
  • List 885
  • Changed 17
  • Source Changed 8
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32353073432
  • a8b3b791 on github
  • Prev Build on main (#32350857717)
  • Next Build on main (#32367940622)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc