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

DeRuina / timberjack / 35971776523
90%

Build:
DEFAULT BRANCH: main
Ran 24 Sep 2026 07:51AM UTC
Jobs 1
Files 2
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

24 Sep 2026 07:50AM UTC coverage: 89.842% (+0.4%) from 89.45%
35971776523

push

github

web-flow
fix(rotation): name collision (#124)

* fix(rotation): never overwrite an existing backup on name collision (#123)

Two rotations that formatted to the same timestamp with the same reason
produced identical backup filenames, and os.Rename silently replaced the
earlier backup. This affected every rotation trigger (size, interval,
scheduled and manual) and was easy to hit with a low-precision
BackupTimeFormat.

openNew now asks uniqueBackupName for the destination. When the natural
name is taken it appends "_1", "_2", ... to the reason segment until a
free name is found, so timeFromName keeps parsing the timestamp and
cleanup keeps working. A compressed variant (".gz"/".zst") also counts
as occupying the base name, otherwise the mill would later mistake the
fresh backup for an already-compressed leftover and delete it. After
maxBackupNameAttempts candidates the rotation fails with an error rather
than overwrite anything.

TestMaxBackups is adjusted accordingly: a pre-existing compressed backup
at the target name now yields a "_1" backup alongside it, and both still
count as one timestamp for MaxBackups.

Fixes #123

* test(rotation): cover compression of suffixed collision backups

24 of 24 new or added lines in 1 file covered. (100.0%)

796 of 886 relevant lines covered (89.84%)

51.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35971776523.1 24 Sep 2026 07:51AM UTC 2
89.84
GitHub Action Run
Source Files on build 35971776523
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • dc255b30 on github
  • Prev Build on main (#32701176030)
  • Next Build on main (#35972047072)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc