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

stacklok / toolhive / 21709772267
61%

Build:
DEFAULT BRANCH: main
Ran 05 Feb 2026 11:37AM UTC
Jobs 1
Files 493
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

05 Feb 2026 11:30AM UTC coverage: 60.816% (-0.02%) from 60.837%
21709772267

push

github

web-flow
Consolidate file locking and fix error handling in config_editor.go (#3617)

Extract a shared withFileLock() helper used by all ConfigUpdater
implementations (JSON, YAML, TOML)

Key changes:
- Rename tomlWithFileLock to withFileLock for shared use
- Refactor JSON and YAML updaters to use the shared helper
- JSON error handling: return errors instead of only logging
- Use Warnf (not Errorf) for write failures across all formats
- Added package documentation on error handling

Error propagation behavior (documented in config_editor.go):
- CLI commands (thv client register): errors are fatal, exit code 1
- Background ops (RemoveServerFromClients): errors logged as warnings
- Migrations: errors logged as warnings, migration continues

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

69 of 131 new or added lines in 1 file covered. (52.67%)

40945 of 67326 relevant lines covered (60.82%)

78.46 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
62
67.97
-3.91% pkg/client/config_editor.go
Jobs
ID Job ID Ran Files Coverage
1 21709772267.1 05 Feb 2026 11:37AM UTC 493
60.82
GitHub Action Run
Source Files on build 21709772267
  • Tree
  • List 493
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21709772267
  • dec218cd on github
  • Prev Build on main (#21707748264)
  • Next Build on main (#21711638055)
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