-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix unit test using strings.Contains #3941
fix unit test using strings.Contains #3941
Conversation
Hi @gabibeyer. Thanks for your PR. I'm waiting for a containers or openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
51de327
to
d608b52
Compare
/approve Changes LGTM |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gabibeyer, mheon 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 |
/lgtm |
d608b52
to
2264f9d
Compare
LGTM, thanks @gabibeyer |
My pleasure! I found a few of the same type of bug in other tests, would you like me to add them to this PR, or open a new one? |
I'd vote for a separate PR personally, but it's a six of one, half dozen of another type of decision. If you need to touch up this one for whatever reason, then feel free to add them here. |
Thank you @TomSweeneyRedHat @baude I think this test may not be working as originally intended, or the mounts are not being cleaned up correctly. Is it possible the conmon process doing the cleanup may need more time between the |
I'm actually dealing with a very similar case in #3931 - my solution was https://github.com/containers/libpod/blob/951ecb3e816ed12dee7e3c148393777fce10e6a0/test/e2e/run_volume_test.go#L230-L238 Basically, I force a manual run of |
I suggest you do a
|
Thank you @mheon, I'll try that out. Would that defeat the purpose of having a 'test mount cleanup', if it needs to be forced? |
@gabibeyer Somewhat... but at the same time, I don't think we can necessarily avoid it. There's no easy way to verify that Alternatively - we could replace |
2264f9d
to
fcfcb51
Compare
Wouldn't podman wait be better it should wait to get an exit code and then you know that the container has stopped. |
Doesn't guarantee the cleanup process ran, though - Conmon only spawns that after the container is stopped. |
@mheon is it expected for a running container to automatically mount its rootfs to a location for the host to be read? Or does it require the |
Also, thank you for the detailed response, that makes sense! |
Oh, maybe this test failure is because rootless uses vfs instead of overlay? |
You know, I don't think we even expect this test to work on rootless. @giuseppe We don't expect anything in @gabibeyer Sorry for the delay, but I think you can skip this if rootless |
yes correct, there is nothing mounted in the host mount namespace. You can find the fuse-overlayfs mount once you do |
0075fee
to
4d8ae20
Compare
These test failures are actually my fault - rebase to master and it should be fixed |
@gabibeyer Please rebase and repush and we can get this merged. We want to start testing a release on Tomorrow. |
The Expect function does not return a result of True or False depending on the value of the first instance, but instead requires a comparison using ".To(", so change to use ".To(ContainSubstring(" Signed-off-by: gabi beyer <[email protected]>
4d8ae20
to
69c5823
Compare
/hold cancel |
The Expect function does not return a result of True or False
depending on the value of the first instance, but instead requires
a comparison using ".To(", so change to use ".To(ContainSubsring("
Signed-off-by: gabi beyer [email protected]