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

test: add additional tests for whiteout fixes #646

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rchincha
Copy link
Contributor

acd8a68 address some breakages related to whiteouts.

This PR adds some more verification steps.

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.

acd8a68 address some breakages related
to whiteouts.

This PR adds some more verification steps.

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

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.71%. Comparing base (7b4a6e2) to head (2a7dd3d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #646      +/-   ##
==========================================
- Coverage   63.72%   63.71%   -0.02%     
==========================================
  Files          57       57              
  Lines        5015     5018       +3     
==========================================
+ Hits         3196     3197       +1     
+ Misses       1176     1175       -1     
- Partials      643      646       +3     

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

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

stacker build

# "bb" should not have a whiteout entry for /a1
md=$(cat oci/index.json | jq .manifests[0].digest | sed s/sha256://g | tr -d \")
ld=$(cat oci/blobs/sha256/"$md" | jq .layers[-1].digest | sed s/sha256://g | tr -d \")
"bsdtar -tvf oci/blobs/sha256/$ld | grep '.wh.a1'"
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi,

these look good. Though for this particular hunk, would it be better to not remove this bsdtar|grep, but rather turn it into a bsdtar | grep -v '.wh.a1' ?

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.

2 participants