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

stacklok / toolhive / 21707748264
61%

Build:
DEFAULT BRANCH: main
Ran 05 Feb 2026 10:29AM 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 10:21AM UTC coverage: 60.837% (-0.02%) from 60.852%
21707748264

push

github

web-flow
Extract atomic file write utility to shared fileutils package (#3613)

The atomicWriteFile function was previously defined in pkg/workloads/statuses/file_status.go
and used only for status file writes. This refactoring extracts it to a new pkg/fileutils package
as AtomicWriteFile, making it reusable across the codebase.

Changes:
- Create new pkg/fileutils package with AtomicWriteFile function
- Move atomic write tests to pkg/fileutils/atomic_test.go
- Update pkg/client/config_editor.go to use fileutils.AtomicWriteFile for JSON/YAML config writes
- Update pkg/workloads/statuses/file_status.go to use fileutils.AtomicWriteFile for status writes
- Remove duplicate atomicWriteFile implementation and tests from file_status.go

This improves code reusability and ensures consistent atomic write behavior across all file operations
(config files, status files) preventing partial writes during concurrent access or system failures.

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

28 of 41 new or added lines in 3 files covered. (68.29%)

12 existing lines in 4 files now uncovered.

40998 of 67390 relevant lines covered (60.84%)

79.36 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
13
61.76
pkg/fileutils/atomic.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
79.58
-0.53% 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
6
75.47
-5.66% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 21707748264.1 05 Feb 2026 10:29AM UTC 493
60.84
GitHub Action Run
Source Files on build 21707748264
  • Tree
  • List 493
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21707748264
  • 36f3ea85 on github
  • Prev Build on main (#21706784602)
  • Next Build on main (#21709772267)
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