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

Hallyn 2024 03 18 test rmdir #604

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

rchincha
Copy link
Contributor

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.

Add some tests to make sure when a directory is removed, its
contents are not visible later on.

Signed-off-by: Serge Hallyn <[email protected]>
@rchincha rchincha force-pushed the hallyn-2024-03-18-test-rmdir branch 2 times, most recently from a2503e7 to c963f93 Compare March 21, 2024 18:08
@hallyn
Copy link
Contributor

hallyn commented Mar 21, 2024

Thanks for fixing my testcase - I'm sorry, I hadn't noticed that I had uploaded an older copy of my tree. I had actually just switched to using docker://busybox:latest, but what you have here is great.

So as we discussed in the debug session - I think overlay is working just fine (we should verify this by also doing the test with --layer-type=overlay in the testcase). I think the tar file is breaking because overlay is not creating /.wh_ccc when it has /ccc with contents and overlay.opaque=y. When we only rm -rf /bbb, then it does create /.wh_bbb.

@rchincha rchincha force-pushed the hallyn-2024-03-18-test-rmdir branch 9 times, most recently from d7ae7f2 to 3973b6b Compare March 28, 2024 22:10
Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.49%. Comparing base (b585bfb) to head (f54ee9a).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #604      +/-   ##
==========================================
+ Coverage   57.38%   57.49%   +0.10%     
==========================================
  Files          64       65       +1     
  Lines        7566     7709     +143     
==========================================
+ Hits         4342     4432      +90     
- Misses       2481     2521      +40     
- Partials      743      756      +13     

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

project-stacker/umoci#6

overlayfs may set 'user.overlay.opaque=y' for deleted directories.
The above PR fixes this handling in our fork of umoci.

Signed-off-by: Ramkumar Chinchani <[email protected]>
@rchincha rchincha force-pushed the hallyn-2024-03-18-test-rmdir branch from 3973b6b to f54ee9a Compare March 29, 2024 15:50
@rchincha rchincha marked this pull request as ready for review March 29, 2024 16:09
@rchincha rchincha requested review from smoser and hallyn as code owners March 29, 2024 16:09
@rchincha rchincha requested a review from mikemccracken March 29, 2024 16:09
@hallyn hallyn merged commit 77e452a into project-stacker:main Mar 29, 2024
11 checks passed
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