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

microlinkhq / html-get / 45143107122
97%

Build:
DEFAULT BRANCH: master
Ran 23 Nov 2026 09:01AM UTC
Jobs 1
Files 16
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 Nov 2026 08:59AM UTC coverage: 96.895% (+0.3%) from 96.58%
45143107122

push

github

web-flow
fix(fetch): kill pandoc and mutool when the fetch times out or is canceled (#318)

* fix(fetch): kill pandoc and mutool when the fetch times out or is canceled

pandoc and mutool ran with no timeout and were not killed when the fetch
was canceled, so a conversion kept running after its caller had gone. On
the microlink API a 4.5MB spreadsheet kept pandoc running after its 30s
request ended, and it grew to 5.6GB until the pod was OOM-killed. Locally
the same file takes pandoc 34s and 10.9GB.

Both runners now get { signal, timeout }: timeout is what is left of the
fetch timeout (floored, since spawn rejects a fraction, and unset when
the timeout is not a number) and signal aborts on cancel. The default
runners kill the process with SIGKILL on either. A canceled conversion no
longer falls back to encoding the raw file. With the fix the same file is
killed at the 8s default timeout (peak 2.8GB) and no pandoc is left.

A custom mutool runner now receives (args, options) instead of
(...args).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(fetch): kill a pandoc that is already running when its signal aborts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: probe the spawned pandoc pid when its signal aborts

The AbortError carries no pid, so the old check probed undefined and
always passed. Block pandoc on a FIFO the test holds open, read its pid
with pgrep, and assert it is alive before the abort and gone after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: lock the conversion timeout floor and the large-pdf options

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

684 of 750 branches covered (91.2%)

Branch coverage included in aggregate %.

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

2062 of 2084 relevant lines covered (98.94%)

181.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45143107122.1 23 Nov 2026 09:01AM UTC 16
96.89
GitHub Action Run
Source Files on build 45143107122
  • Tree
  • List 16
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45143107122
  • 4464eeec on github
  • Prev Build on master (#44892074410)
  • Next Build on master (#45825805158)
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