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

umputun / ralphex / 22151409710
82%

Build:
DEFAULT BRANCH: master
Ran 18 Feb 2026 06:00PM UTC
Jobs 1
Files 39
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

18 Feb 2026 05:58PM UTC coverage: 81.795% (-0.09%) from 81.881%
22151409710

push

github

web-flow
fix: append progress files on restart instead of truncating (#130)

* fix: append progress files on restart instead of truncating

Switch from os.Create (truncate) to os.OpenFile with O_APPEND so
progress history is preserved when ralphex is restarted. On restart,
a separator line is written instead of a full header. The separator
matches the web parser sectionRegex and renders as a section boundary
in the dashboard.

Related to #129

* test: add edge case tests and godoc for append-on-restart

Add empty-file edge case test, web parser test for restart separator,
and update NewLogger godoc to document append behavior.

* fix: acquire file lock before stat to prevent TOCTOU race

Move lockFile() call before f.Stat() in NewLogger so the restart
detection (size > 0 check) is protected by the exclusive lock.
Without this ordering, a concurrent process could stat size==0,
block on the lock, then incorrectly write a full header after
another process already wrote content.

Also add proper cleanup (unlock + unregister) on the stat error path.

22 of 29 new or added lines in 1 file covered. (75.86%)

3 existing lines in 2 files now uncovered.

5360 of 6553 relevant lines covered (81.79%)

186.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
91.83
-1.01% pkg/progress/progress.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.24
-0.26% pkg/web/session_manager.go
2
79.89
-1.09% pkg/web/watcher.go
Jobs
ID Job ID Ran Files Coverage
1 22151409710.1 18 Feb 2026 06:00PM UTC 39
81.79
GitHub Action Run
Source Files on build 22151409710
  • Tree
  • List 39
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 11af9532 on github
  • Prev Build on master (#22119711481)
  • Next Build on master (#22155364385)
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