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

openvax / datacache / 27777985749
74%
master: 79%

Build:
Build:
LAST BUILD BRANCH: fix-flaky-download-test
DEFAULT BRANCH: master
Ran 18 Jun 2026 05:38PM UTC
Jobs 3
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

18 Jun 2026 05:37PM UTC coverage: 74.157% (-0.5%) from 74.702%
27777985749

Pull #53

github

iskandr
Fix #49: stream downloads to disk + optional progress_callback

Previously _download read the entire HTTP/FTP response into memory
(response.content / response.read()) before writing it to the temp file,
so downloading a large reference file (e.g. a ~200 MB HPA archive) spiked
RAM by the full file size and gave callers no way to show progress.

Replace _download with _stream_to_file, which streams the response to an
open file handle one chunk at a time (requests stream=True + iter_content
for http, chunked response.read for ftp/file), capping memory at one
chunk. Add an optional progress_callback(bytes_downloaded, total_bytes)
hook and chunk_size, threaded through _download_to_temp_file,
_download_and_decompress_if_necessary and fetch_file, so consumers can
drive a tqdm bar without datacache depending on tqdm.

Adds network-free regression tests using local file:// URLs.

Claude-Session: https://claude.ai/code/session_011bzfZPTzWnhAMVD7msyMg1
Pull Request #53: Fix #49: stream downloads to disk + optional progress_callback

20 of 31 new or added lines in 1 file covered. (64.52%)

330 of 445 relevant lines covered (74.16%)

2.22 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
63.28
0.54% datacache/download.py
Jobs
ID Job ID Ran Files Coverage
1 27777985749.1 18 Jun 2026 05:38PM UTC 9
74.16
GitHub Action Run
2 27777985749.2 18 Jun 2026 05:38PM UTC 9
74.16
GitHub Action Run
3 27777985749.3 18 Jun 2026 05:38PM UTC 9
74.1
GitHub Action Run
Source Files on build 27777985749
  • Tree
  • List 9
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27777985749
  • Pull Request #53
  • PR Base - master (#24095389047)
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