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

openvax / datacache / 27785449947
79%
master: 79%

Build:
Build:
LAST BUILD BRANCH: fix-flaky-download-test
DEFAULT BRANCH: master
Ran 18 Jun 2026 07:53PM 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 07:53PM UTC coverage: 79.043% (+5.6%) from 73.451%
27785449947

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)

23 of 0 new or added lines in 0 files covered. (NaN%)

1 existing line in 1 file now uncovered.

347 of 439 relevant lines covered (79.04%)

2.37 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
82.05
19.74% datacache/download.py
Jobs
ID Job ID Ran Files Coverage
1 27785449947.1 18 Jun 2026 07:53PM UTC 9
79.04
GitHub Action Run
2 27785449947.2 18 Jun 2026 07:54PM UTC 9
79.04
GitHub Action Run
3 27785449947.3 18 Jun 2026 07:54PM UTC 9
79.0
GitHub Action Run
Source Files on build 27785449947
  • Tree
  • List 9
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27785449947
  • Pull Request #56
  • PR Base - master (#27778483053)
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