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

Eyevinn / hls-m3u8 / 30294630790
92%

Build:
DEFAULT BRANCH: main
Ran 27 Jul 2026 06:38PM UTC
Jobs 1
Files 5
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

27 Jul 2026 06:37PM UTC coverage: 92.466% (+0.2%) from 92.301%
30294630790

push

github

tobbee
fix: remove expired partial segments when a full segment is appended

removeExpiredPartials was only called from AppendPartialSegment, so the
retention rule was only applied when a new partial segment arrived. A
producer that stops adding partial segments, for example at the end of a
stream or when switching away from low latency, kept them forever, and
IsSegmentReady kept reporting them as available long after they had left
the playlist. Encode filtered them out of the output, so this was stale
in-memory state rather than a bad playlist.

Call it from AppendSegment as well, since a new full segment also moves
the end of the playlist forward. Remove is not affected, as it moves the
head and leaves the end of the playlist where it was, and Slide appends.

Also state the retention rule once, as a named constant referring to the
three target durations of the specification, and filter in place instead
of rebuilding the slice on every call. The previous comment claimed to
keep all partial segments when there are fewer than 3 full segments, but
the value tested is a sequence number, not a count. It only guards
against underflow, which the new code says explicitly.

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

37 existing lines in 1 file now uncovered.

2246 of 2429 relevant lines covered (92.47%)

1.08 hits per line

Coverage Regressions

Lines Coverage ∆ File
37
95.43
0.34% m3u8/writer.go
Jobs
ID Job ID Ran Files Coverage
1 30294630790.1 27 Jul 2026 06:38PM UTC 5
92.47
GitHub Action Run
Source Files on build 30294630790
  • Tree
  • List 5
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 69deaa2a on github
  • Prev Build on main (#30283409342)
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