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

raffis / renovate-metrics / 39976305262
60%

Build:
DEFAULT BRANCH: main
Ran 23 Oct 2026 03:13PM 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

23 Oct 2026 03:12PM UTC coverage: 60.071% (+2.7%) from 57.348%
39976305262

push

github

web-flow
fix(parser): don't crash on Renovate log lines larger than the buffer (#182)

* fix(parser): don't crash on Renovate log lines larger than the buffer

Renovate can emit a single JSON log line larger than any fixed token size --
a repository that matches hundreds of files dumps a multi-megabyte debug line
(~10 MiB observed in practice).

Parse() reads the stream with bufio.Scanner and scanner.Buffer(b, BufferSize)
(10 MiB default). A line past that cap makes Scan() stop and scanner.Err()
return bufio.ErrTooLong ("token too long"). That error propagates through
push's RunE and rootCmd.Execute() to main(), which panic()s. When
renovate-metrics is piped from a live `renovate` process, the panic also
closes the pipe and takes Renovate down with a broken pipe (write EPIPE),
exiting non-zero.

Replace bufio.Scanner with bufio.Reader.ReadBytes('\n'), which has no token
cap: it grows as needed and always drains to EOF, so an oversized line is
parsed (or skipped, per the existing message filter) instead of being fatal,
and the stream is fully consumed either way. The message pre-filter and all
other behavior are preserved. Add regression tests covering an oversized line
followed by a normal line, and a final line without a trailing newline.

* test(parser): use got/want convention in failure messages

* remove verbose AI comments

---------

Co-authored-by: sp3nx0r <sp3nx0r@users.noreply.github.com>

16 of 21 new or added lines in 1 file covered. (76.19%)

1 existing line in 1 file now uncovered.

170 of 283 relevant lines covered (60.07%)

0.65 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
79.49
5.2% pkg/parser/parser.go

Coverage Regressions

Lines Coverage ∆ File
1
79.49
5.2% pkg/parser/parser.go
Jobs
ID Job ID Ran Files Coverage
1 39976305262.1 23 Oct 2026 03:13PM UTC 5
60.07
GitHub Action Run
Source Files on build 39976305262
  • Tree
  • List 5
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5bb75544 on github
  • Prev Build on main (#39582225980)
  • Next Build on main (#43784843876)
  • Delete
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