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

decentraland / catalyst-storage
95%
main: 95%

Build:
Build:
LAST BUILD BRANCH: fix/s3-retrieve-error-logging
DEFAULT BRANCH: main
Repo Added 16 Oct 2024 02:13PM UTC
Token YKxnSIBHvOobSOgKkBGzn1xT99zKayiAH regen
Build 73 Last
Files 9
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

LAST BUILD ON BRANCH 4.6.1
branch: 4.6.1
CHANGE BRANCH
x
Reset
Sync Branches
  • 4.6.1
  • 4.6.0
  • badge
  • chore/add-workflow-dispatch
  • chore/format-on-save
  • claude/admiring-goldstine
  • coverage
  • feat/add-content-size-to-file-info
  • feat/range-requests
  • feat/stream-s3-uploads
  • fix/compression-partial-cleanup
  • fix/decompression-inflight-race
  • fix/decouple-decompress-cap-default
  • fix/files-handling
  • fix/folder-storage-decompression-bomb
  • fix/folder-storage-path-containment
  • fix/idempotent-start
  • fix/s3-retrieve-error-logging
  • main
  • refs/tags/4.3.1
  • refs/tags/4.4.0
  • refs/tags/4.5.0
  • refs/tags/4.5.1

10 Jun 2026 02:53PM UTC coverage: 95.059% (-0.9%) from 95.968%
27285266114

push

github

web-flow
fix: remove the partial .gzip when compression fails (#106)

* fix: remove the partial .gzip when compression fails

gzipCompressFile destroyed the streams in a finally but never removed the
output on error, so a read/write/gzip failure mid-compression left a
truncated .gzip on disk. Because retrieve/fileInfo check the .gzip first,
that partial file shadows the good uncompressed file and is served as
corrupt content on later reads.

Wrap the compression in a try/catch that unlinks the output on any failure
(and await the bad-ratio unlink instead of fire-and-forget). Adds tests for
the success, bad-ratio, and failure paths.

* test+fix: log compression cleanup failures and clarify failure test

- Surface unlink failures during compression cleanup at warn level (via an
  optional logger threaded from the folder storage) instead of swallowing
  them entirely; ENOENT is still ignored.
- Rename/comment the failure test to make explicit that the missing source
  triggers a read-open error exercising the shared catch/cleanup path.

106 of 122 branches covered (86.89%)

Branch coverage included in aggregate %.

17 of 19 new or added lines in 2 files covered. (89.47%)

375 of 384 relevant lines covered (97.66%)

37.95 hits per line

Relevant lines Covered
Build:
Build:
384 RELEVANT LINES 375 COVERED LINES
37.95 HITS PER LINE
Source Files on 4.6.1
  • Tree
  • List 9
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27285266114 4.6.1 fix: remove the partial .gzip when compression fails (#106) * fix: remove the partial .gzip when compression fails gzipCompressFile destroyed the streams in a finally but never removed the output on error, so a read/write/gzip failure mid-compre... push 10 Jun 2026 02:58PM UTC web-flow github
95.06
See All Builds (73)

Badge your Repo: catalyst-storage

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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