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

When copying extended run image layers, use the original layer count #1306

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

natalieparellano
Copy link
Member

@natalieparellano natalieparellano commented Mar 1, 2024

(in addition to the original top layer digest) to determine what is an extension layer and what is an original layer.

Relying on the original top layer digest (only) introduced errors if the original run image had a duplicated top layer.

Fixes #1300

Summary

Uses the original layer count (in addition to the original top layer digest) to determine what is an extension layer and what is an original layer.

Release notes

Fixes issue where the extender fails to copy extension layers when the original run image has a duplicated top layer


Related

Resolves #1300


Context

I looked into unit testing this, but decided it wasn't worth it

…yers

in addition to the original top layer digest
to determine what is an extension layer and what is an original layer.
Relying on the original top layer digest (only) introduced errors
if the original run image had a duplicated top layer.

Fixes #1300

Signed-off-by: Natalie Arellano <narellano@vmware.com>
@natalieparellano natalieparellano requested a review from a team as a code owner March 1, 2024 18:22
Copy link

codecov bot commented Mar 1, 2024

Codecov Report

Attention: Patch coverage is 30.76923% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 64.59%. Comparing base (41d885b) to head (e3fa523).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1306      +/-   ##
==========================================
- Coverage   64.62%   64.59%   -0.02%     
==========================================
  Files         101      101              
  Lines        6994     6997       +3     
==========================================
  Hits         4519     4519              
- Misses       2064     2067       +3     
  Partials      411      411              
Flag Coverage Δ
os_linux 64.07% <30.77%> (-0.02%) ⬇️
os_windows 56.65% <0.00%> (-0.02%) ⬇️
unit 64.07% <30.77%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@natalieparellano natalieparellano merged commit f3f292c into main Mar 1, 2024
9 of 10 checks passed
@natalieparellano natalieparellano deleted the fix/dup-run-image-layer branch March 1, 2024 18:41
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.

When using extensions, if the last layer in the run image is duplicated, then the process fail with an error
2 participants