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

stacklok / toolhive / 26763374418
66%

Build:
DEFAULT BRANCH: main
Ran 01 Jun 2026 03:12PM UTC
Jobs 1
Files 741
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

01 Jun 2026 03:05PM UTC coverage: 65.895% (+0.005%) from 65.89%
26763374418

push

github

web-flow
Isolate skills client discovery in default-client test (#5417)

TestNewDefaultClient stubbed the TOOLHIVE_API_URL env reader but let
the server-discovery step run against real local state. When a thv or
Desktop server was running, discovery found it and returned its base
URL, so the "falls back to default URL" and "applies options" subtests
saw the discovered URL instead of the default and failed. CI passed
only because no server is running there.

Inject the discovery step into newDefaultClientWithEnv, mirroring the
existing env.Reader injection, and have the subtests stub it. Each
resolution step (env var, discovery, default fallback) is now tested
in isolation, and a new subtest covers the discovered-server path.

Co-authored-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

2 of 3 new or added lines in 1 file covered. (66.67%)

14 existing lines in 4 files now uncovered.

65758 of 99792 relevant lines covered (65.9%)

64.22 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
79.69
0.52% pkg/skills/client/client.go

Coverage Regressions

Lines Coverage ∆ File
6
79.69
0.52% pkg/skills/client/client.go
3
40.54
-8.11% pkg/server/discovery/discover.go
3
57.89
-5.26% pkg/server/discovery/discovery.go
2
73.63
-0.64% pkg/runner/config.go
Jobs
ID Job ID Ran Files Coverage
1 26763374418.1 01 Jun 2026 03:12PM UTC 741
65.9
GitHub Action Run
Source Files on build 26763374418
  • Tree
  • List 741
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26763374418
  • 2d591599 on github
  • Prev Build on main (#26763112698)
  • Next Build on main (#26765698014)
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