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

winstonjs / winston / 29180866087
71%

Build:
DEFAULT BRANCH: master
Ran 12 Jul 2026 05:15AM UTC
Jobs 1
Files 17
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

12 Jul 2026 05:13AM UTC coverage: 70.812% (+0.07%) from 70.744%
29180866087

push

github

web-flow
Fix race condition causing hang in lazy file transport rotation (#2627)

* Initial plan

* Fix race condition in lazy file transport rotation path

When using `lazy: true` with `maxsize`, a race condition could cause
`logToTransport` to hang forever:

1. After a file fills up, `_endStream` closes and destroys `_dest`
2. The next `log()` call detects `_needsNewFile()` is true and attaches
   a `_dest.once('close', ...)` listener to trigger file rotation
3. If `_dest` was already destroyed before the listener is attached,
   the 'close' event is never received and the write callback is
   never invoked — causing the promise to hang until the Jest timeout

Fix: check `_dest.destroyed` before registering the 'close' listener.
If the stream is already destroyed, invoke `open()` immediately rather
than waiting for an event that will never arrive.

* Restore explicit return in openNextFile callback for style consistency

---------

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

444 of 681 branches covered (65.2%)

Branch coverage included in aggregate %.

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

786 of 1056 relevant lines covered (74.43%)

1110.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29180866087.1 12 Jul 2026 05:15AM UTC 17
70.81
GitHub Action Run
Source Files on build 29180866087
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 64f1ef63 on github
  • Prev Build on master (#29180270236)
  • Next Build on master (#29463039012)
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