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

stacklok / toolhive / 22853807089
64%

Build:
DEFAULT BRANCH: main
Ran 09 Mar 2026 12:46PM UTC
Jobs 1
Files 539
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

09 Mar 2026 12:38PM UTC coverage: 63.914% (-0.003%) from 63.917%
22853807089

push

github

web-flow
Move shared git package from operator to pkg/git (#4045)

* Move shared git package from operator to pkg/git

The operator's git package (CloneConfig, Client interface, LimitedFs,
DefaultGitClient) is needed by both the operator and the CLI for
git-based skill installation. Move it to pkg/git/ so both can share it.

Changes during move:
- Replace controller-runtime/pkg/log with log/slog
- Add WithAuth ClientOption for authenticated clones
- Remove runtime.GC() call from Cleanup (unnecessary; Go GC handles it)
- Update tests to use t.Context() instead of controller-runtime logger
- Rewrite tests with testify assertions and t.TempDir()
- Drop trivial field-accessibility tests and slow network-dependent tests

No functional changes to the operator — the package was not yet imported
by any operator code.

Relates to #4015

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Address review feedback and harden pkg/git

- Use errors.New for sentinel errors in fs.go
- Add ErrNilRepository sentinel replacing duplicate fmt.Errorf strings
- Add path traversal validation in GetFileContent
- Add CloneConfig.validate() rejecting conflicting Branch/Tag/Commit
- Log util.RemoveAll failures in Cleanup with slog.Warn
- Add tag-based clone integration test
- Add path traversal and validation unit tests
- Improve integration test comments

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

35 of 46 new or added lines in 2 files covered. (76.09%)

9 existing lines in 4 files now uncovered.

47317 of 74032 relevant lines covered (63.91%)

69.59 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
11
79.56
pkg/git/client.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
79.79
-0.52% pkg/transport/proxy/httpsse/http_proxy.go
2
57.89
-3.51% pkg/transport/session/sse_session.go
2
82.83
-0.26% pkg/vmcp/composer/workflow_engine.go
3
45.17
-0.67% pkg/transport/stdio.go
Jobs
ID Job ID Ran Files Coverage
1 22853807089.1 09 Mar 2026 12:46PM UTC 539
63.91
GitHub Action Run
Source Files on build 22853807089
  • Tree
  • List 539
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22853807089
  • ace1b2d4 on github
  • Prev Build on main (#22853184138)
  • Next Build on main (#22858016945)
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