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

stacklok / toolhive / 20777218544
50%

Build:
DEFAULT BRANCH: main
Ran 07 Jan 2026 09:48AM UTC
Jobs 1
Files 417
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 Jan 2026 09:44AM UTC coverage: 50.505% (+0.01%) from 50.491%
20777218544

push

github

web-flow
Allow edit operation to reuse proxy port of the old proxy (#3200)

Prior to this PR, the edit API endpoint would not allow the proxy port
to be reused. This was because the run config validation happened before
stopping the old instance of the workload, and thus the port appeared to
be still in use.

This PR adds some tweaks to the validation logic to allow port reuse for
the edit case. It also tweaks the edit endpoint to reuse the previous
port of the workload if a proxy port is not specified - this feels like
a more natural behaviour than picking a new random port. This
implementation also allows a new port to be selected if the caller
desires.

There is a potential race condition in this implementation: if a new
workload is created between the termination of the previous proxy
process and the creation of the new one, it could potentially "steal"
the port and cause the edit to fail after validation has completed. I
think this is an acceptable risk for now - fixing it will require us to
build some kind of locking mechanism for ports.

29 of 29 new or added lines in 4 files covered. (100.0%)

4 existing lines in 1 file now uncovered.

28728 of 56881 relevant lines covered (50.51%)

59.06 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
4
52.74
-0.2% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 20777218544.1 07 Jan 2026 09:48AM UTC 417
50.51
GitHub Action Run
Source Files on build 20777218544
  • Tree
  • List 417
  • Changed 5
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20777218544
  • 755df513 on github
  • Prev Build on main (#20776400562)
  • Next Build on main (#20777228421)
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