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

DeRuina / timberjack / 24707358190
87%

Build:
DEFAULT BRANCH: main
Ran 21 Apr 2026 06:22AM 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

21 Apr 2026 06:20AM UTC coverage: 88.916% (+1.8%) from 87.077%
24707358190

push

github

web-flow
fix: atomic compress write and content-based backup assertions to eliminate race failures (#97)

Three tests failed under `go test -race -count=1 -p 1 ./...` (job 72259765007):

1. TestZstdCompression_SizeRotate_DefaultNaming / _AppendAfterExt
   Root cause: compressLogFile wrote directly to the final .zst/.gz path, so the
   file could be observed by the test (waitForFileWithSuffix) while still being
   written, yielding empty content.
   Fix: write to a temp file (dst+".tmp"), then atomically rename to dst, so the
   compressed file only becomes visible once fully written.

2. TestRotateAtMinutes (and defensively TestRotateAt)
   Root cause: the scheduled rotation goroutine reads nowFn() (= fakeTime()) at
   an indeterminate time relative to when the test advances fakeCurrentTime. Under
   the race detector the goroutine can read the already-advanced fake time and fire
   its real-time timer with ~0 duration, causing rotation to happen at a different
   fake timestamp than the one backupFileWithReason() predicts.
   Fix: replace exact-filename assertions with findBackupFileWithContent(), a new
   helper that scans the directory for a backup file matching the expected reason
   suffix AND content, independent of the timestamp in the filename."

Agent-Logs-Url: https://github.com/DeRuina/timberjack/sessions/b764c9a6-eb88-43dc-9dc0-c46f0bc2bba0

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: DeRuina <81315494+DeRuina@users.noreply.github.com>

7 of 16 new or added lines in 1 file covered. (43.75%)

1 existing line in 1 file now uncovered.

738 of 830 relevant lines covered (88.92%)

41.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
88.73
1.87% timberjack.go

Coverage Regressions

Lines Coverage ∆ File
1
88.73
1.87% timberjack.go
Jobs
ID Job ID Ran Files Coverage
1 24707358190.1 21 Apr 2026 06:22AM UTC 2
88.92
GitHub Action Run
Source Files on build 24707358190
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0d444edc on github
  • Prev Build on main (#23892535567)
  • Next Build on main (#24707494660)
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