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

openvax / datacache / 27785449947 / 3
79%
master: 79%

Build:
Build:
LAST BUILD BRANCH: fix-flaky-download-test
DEFAULT BRANCH: master
Ran 18 Jun 2026 07:54PM UTC
Files 9
Run time 0s
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 07:53PM UTC coverage: 78.995% (+5.5%) from 73.451%
27785449947.3

Pull #56

github

iskandr
Decompress atomically (sibling temp + move) so corrupt archives leave no partial

Self-review of the prior hardening commit: streaming the zip member / gunzip
straight into full_path regressed atomicity. A corrupt or truncated archive
(e.g. a gzip CRC failure, detected only at end-of-stream) would leave a partial
file at full_path — and fetch_file treats "path exists" as a cache hit, so the
next call would silently serve the truncated data.

Add _decompress_to_file(): stream the decompressed source into a sibling temp,
then move it into place (matching the atomic `move` the non-decompress path
already uses); drop the partial on failure. Restores the atomicity the original
zip (extract+move) and gz (read-all-then-write) paths had, while keeping the
streaming (bounded-memory) behaviour.

Adds test_corrupt_gz_leaves_no_partial_cache locking it in.
Pull Request #56: Make test_download.py hermetic; remove dead wget path; harden zip/gz decompress (closes #42)

346 of 438 relevant lines covered (79.0%)

0.79 hits per line

Source Files on job 27785449947.3
  • Tree
  • List 9
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27785449947
  • 1133d9c5 on github
  • Prev Job for on fix-flaky-download-test (#27778483053.2)
  • Next Job for on fix-flaky-download-test (#27786313738.2)
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