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

ukeeper / ukeeper-readability / 28722551124
78%

Build:
DEFAULT BRANCH: master
Ran 04 Jul 2026 11:06PM 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

04 Jul 2026 11:05PM UTC coverage: 78.261% (-0.04%) from 78.3%
28722551124

push

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. The probe request no longer forces
Connection: close, so the shared client can reuse connections. 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.

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

792 of 1012 relevant lines covered (78.26%)

9.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
93.06
-3.61% extractor/pics.go
Jobs
ID Job ID Ran Files Coverage
1 28722551124.1 04 Jul 2026 11:06PM UTC 9
78.26
GitHub Action Run
Source Files on build 28722551124
  • Tree
  • List 9
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • de6d22b4 on github
  • Prev Build on master (#28722516503)
  • Next Build on master (#28759998790)
  • 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