Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for zstd compression #350

Merged
merged 1 commit into from
Jan 14, 2021

Conversation

nishakm
Copy link

@nishakm nishakm commented Nov 21, 2020

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

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
Copy link
Member

cyphar commented Dec 19, 2020

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
Copy link
Member

cyphar commented Jan 14, 2021

@tych0 LGTM from you as well?

@tych0
Copy link
Member

tych0 commented Jan 14, 2021

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