-
Notifications
You must be signed in to change notification settings - Fork 769
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
buildah: increase rootless test coverage with rootless + unshare
#3812
buildah: increase rootless test coverage with rootless + unshare
#3812
Conversation
I think there's some confusion here. What I meant to do with my patch is eliminate the need to run the whole entire thing unshared. With my patch, you can remove a lot of the Running the entire test suite under |
@edsantiago Yes. Actually this is intentional. My motive is to perform isolated testing for With this we can make sure that |
I have no real idea what that means, but given what I see, you do not need my patch for anything: my patch was intended to make more tests pass. You have not removed any skips, you have only added more skips. That is the opposite of my intention. Please either remove skips, or remove my patch. |
333a8c0
to
706004e
Compare
@edsantiago I think this we can still do this. Scratch my previous comment and let me try the original patch which you posted again since it only works for |
02c2a5d
to
dfcce46
Compare
@edsantiago Thanks 😄 . I looked at it again and re-used your patch as it is and this enables us to remove skip from almost all of the |
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.
Thank you @flouthoc, that is exactly what I intended.
My patch was hasty and did not include comments; could you please add some for benefit of future maintainers?
Oh, one more. Since there's no longer the need for multiple confusing |
dfcce46
to
b8b5ae6
Compare
@edsantiago Thanks added requested comments.
I agree I think we can merge all existing function into one. I don't know why did we add |
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, flouthoc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Oh, and super-big thanks for doing this, it really helped everyone out a lot, especially me 😁 |
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.
Language suggestions. Also, I have a medium-strong preference for eighty-column formatting especially in comments. I don't think we have a style guide, so I will not make my preference a blocker.
I see what you mean re: skip_if_rootless
but we seem to have a very very bad situation that needs to be fixed: the existing skip_if_rootless
bears no relation whatsoever to the is_rootless()
function, and that is going to cause a lot of confusion one day (including today). That would be a very good topic for a followup PR.
Mount and umount can must be unshared for rootless environment. Co-authored-by: Ed Santiago <santiago@redhat.com> Signed-off-by: Aditya R <arajan@redhat.com>
Signed-off-by: Aditya R <arajan@redhat.com>
b8b5ae6
to
0b8c6ca
Compare
Restarted flakes. |
/lgtm |
Tests for
rootless
added here #3804 skipped some of the cases.Almost all of the skipped test cases can be covered under an environment of
rootless + unshare
.Following PR attempts to solve that by modifying test infrastructure and adding a
cirrus
task dedicated torootless+unshare
testing.