Skip to content

Added support for zstd compression - #350

Merged
tych0 merged 1 commit into
opencontainers:masterfrom
nishakm:316-zstd-compression
Jan 14, 2021
Merged

tych0 merged 1 commit into
opencontainers:masterfrom
nishakm:316-zstd-compression

Conversation

@nishakm

@nishakm nishakm commented Nov 21, 2020

Copy link
Copy Markdown

Using github.com/klauspost/compress go module has brought in a
list of other compression implementations. Therefore the vendor
folder has gotten larger. Some files were also modified due to
the bump up in compress's version.

Apart from these, this commit adds an implementation for zstd
compression and a corresponding test.

Fixes #316

Signed-off-by: Nisha K nishak@vmware.com

Using github.com/klauspost/compress go module has brought in a
list of other compression implementations. Therefore the vendor
folder has gotten larger. Some files were also modified due to
the bump up in compress's version.

Apart from these, this commit adds an implementation for zstd
compression and a corresponding test.

Fixes opencontainers#316

Signed-off-by: Nisha K <nishak@vmware.com>
@nishakm

This comment has been minimized.

@tych0

This comment has been minimized.

@cyphar

This comment has been minimized.

@cyphar

This comment has been minimized.

@cyphar

This comment has been minimized.

@cyphar

This comment has been minimized.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #350 (d405714) into master (b09d036) will decrease coverage by 0.21%.
The diff coverage is 38.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #350      +/-   ##
==========================================
- Coverage   74.42%   74.20%   -0.22%     
==========================================
  Files          58       58              
  Lines        3065     3078      +13     
==========================================
+ Hits         2281     2284       +3     
- Misses        459      464       +5     
- Partials      325      330       +5     
Impacted Files Coverage Δ
mutate/compress.go 57.14% <38.46%> (-16.20%) ⬇️
oci/layer/unpack.go 59.72% <0.00%> (-1.39%) ⬇️

@cyphar

cyphar commented Dec 19, 2020 •

Copy link
Copy Markdown
Member

Alright, now the CI has finally been wrangled I can review this (sorry about that). The main thing missing is that umoci cannot decompress zstd at the moment, and ideally I'd like it if we added support for that too (as well as a CLI UX for it). But I can work on that separately.

So, LGTM and I'll work on those things separately. Thanks for the PR!

@cyphar

cyphar commented Jan 14, 2021

Copy link
Copy Markdown
Member

@tych0 LGTM from you as well?

@tych0

tych0 commented Jan 14, 2021

Copy link
Copy Markdown
Member

Yep, sorry. LGTM as well.

@tych0
tych0 merged commit 312f2f6 into opencontainers:master Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for zstd compression

4 participants

⌂ 换网址