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

ukeeper / ukeeper-readability / 28681458444
78%
master: 78%

Build:
Build:
LAST BUILD BRANCH: fix/docker-gha-cache
DEFAULT BRANCH: master
Ran 03 Jul 2026 08:12PM UTC
Jobs 1
Files 9
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

03 Jul 2026 08:12PM UTC coverage: 77.934% (-0.01%) from 77.947%
28681458444

Pull #85

github

paskal
Stream image sizing, share client, honor context, cap concurrency

getImageSize buffered every image fully into memory via io.ReadAll, built
a fresh http.Client per image, ignored the request context, and spawned
one unbounded goroutine per <img> on the page.

It now streams to io.Discard behind a 10MB io.LimitReader (reading the body
rather than trusting Content-Length, so a lying header can't inflate an
image's rank), treats non-2xx responses as size 0 so an error page can't be
ranked as the lead image, shares a single lazily-built client, and
propagates the caller's context. extractPics caps concurrency at 8 probes
per page and bounds the whole probe phase with an overall budget (per-image
timeout kept below it) so a page full of slow image URLs can't hold the
handler past the write timeout; semaphore acquisition is context-aware.
Lead-image selection breaks size ties by URL so it's deterministic rather
than scheduling-dependent.
Pull Request #85: Stream image sizing, share client, honor context, cap concurrency

39 of 42 new or added lines in 2 files covered. (92.86%)

1 existing line in 1 file now uncovered.

777 of 997 relevant lines covered (77.93%)

9.51 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
93.15
-3.52% extractor/pics.go

Coverage Regressions

Lines Coverage ∆ File
1
93.15
-3.52% extractor/pics.go
Jobs
ID Job ID Ran Files Coverage
1 28681458444.1 03 Jul 2026 08:12PM UTC 9
77.93
GitHub Action Run
Source Files on build 28681458444
  • Tree
  • List 9
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #85
  • PR Base - master (#28463114096)
  • Delete
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