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

fix(umoci)!: umoci's copy buffer set to 1 MiB #531

Merged
merged 2 commits into from Nov 6, 2023

Conversation

rchincha
Copy link
Contributor

project-stacker/umoci@89a7ea1

Use updated umoci (project-stacker's fork) to use a 1 MiB copy buffer. This change brings stacker inline with compression parameters used in containers/image libraries and makes them compatible.

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@rchamarthy rchamarthy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this generically applicable to stacker world or is it a specific mixed case we are trying to solve?

@rchincha
Copy link
Contributor Author

Is this generically applicable to stacker world or is it a specific mixed case we are trying to solve?

Targeting ecosystem compatibility.

opencontainers/image-spec#1145
^ generic solution will need this to be fixed.

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #531 (cb9a1ec) into main (67d1ffb) will not change coverage.
Report is 1 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #531   +/-   ##
=======================================
  Coverage   13.14%   13.14%           
=======================================
  Files          40       40           
  Lines        5943     5943           
=======================================
  Hits          781      781           
  Misses       5034     5034           
  Partials      128      128           

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

test/gzip.bats Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
test/gzip.bats Outdated Show resolved Hide resolved
test/gzip.bats Outdated Show resolved Hide resolved
install-build-deps.sh Outdated Show resolved Hide resolved
install-build-deps.sh Show resolved Hide resolved
install-build-deps.sh Show resolved Hide resolved
test/gzip.bats Outdated Show resolved Hide resolved
test/gzip.bats Outdated Show resolved Hide resolved
test/helpers.bash Outdated Show resolved Hide resolved
project-stacker/umoci@89a7ea1

Use updated umoci (project-stacker's fork) to use a 1 MiB copy buffer.
This change brings stacker inline with compression parameters used in
containers/image libraries and makes them compatible.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
@rchincha
Copy link
Contributor Author

rchincha commented Nov 5, 2023

$BATS_TEST_TMPDIR is a temporary directory unique for each test. Could be used to create files required only for specific tests.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
Copy link
Contributor

@raharper raharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@rchincha rchincha merged commit 589a648 into project-stacker:main Nov 6, 2023
9 checks passed
rchincha added a commit to rchincha/stacker that referenced this pull request Nov 8, 2023
* fix(umoci)!: umoci's copy buffer set to 1 MiB

project-stacker/umoci@89a7ea1

Use updated umoci (project-stacker's fork) to use a 1 MiB copy buffer.
This change brings stacker inline with compression parameters used in
containers/image libraries and makes them compatible.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>

* test(gzip): add unit tests for gzip

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>

---------

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
(cherry picked from commit 589a648)
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
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.

None yet

3 participants