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

Ensure we can access layer by diffID on a mutated image #1875

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

natalieparellano
Copy link

Previously, calling LayerByDiffID() immediately after adding a layer would error with the layer not found.

By ensuring that we call "compute" on the image before trying to access the diffID map, we ensure that the layer is found.

Previously, calling LayerByDiffID() immediately after adding a layer
would error with the layer not found.

By ensuring that we call "compute" on the image
before trying to access the diffID map,
we ensure that the layer is found.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
Copy link

github-actions bot commented May 6, 2024

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

@codecov-commenter
Copy link

Codecov Report

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

Project coverage is 71.65%. Comparing base (8dadbe7) to head (220652e).
Report is 6 commits behind head on main.

Files Patch % Lines
pkg/v1/mutate/image.go 0.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1875      +/-   ##
==========================================
- Coverage   71.67%   71.65%   -0.03%     
==========================================
  Files         123      123              
  Lines        9935     9938       +3     
==========================================
  Hits         7121     7121              
- Misses       2115     2117       +2     
- Partials      699      700       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@natalieparellano
Copy link
Author

@codecov-commenter I disagree! Maintainers, any opposition to merging this one?

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

2 participants