-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: main
Are you sure you want to change the base?
Conversation
acd8a68 address some breakages related to whiteouts. This PR adds some more verification steps. Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
182a7b8
to
8662a58
Compare
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'" |
There was a problem hiding this comment.
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' ?
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.