-
Notifications
You must be signed in to change notification settings - Fork 269
🌱 Ensure E2E cleanup #2005
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
🌱 Ensure E2E cleanup #2005
Conversation
Hi @mquhuy. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
✅ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
b58a276
to
2fa50b8
Compare
/test ? |
@mquhuy: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
f028cc0
to
0de2853
Compare
I like this! I'm slightly nervous of what this is going to find when it's working 😬 Looks like it's failing because e2eCtx hasn't been initialized trying to dump the initial set of resources:
|
initialLoadBalancers, err = shared.DumpOpenStackLoadBalancers(e2eCtx, loadbalancers.ListOpts{}) | ||
Expect(err).NotTo(HaveOccurred()) | ||
initialVolumes, err = shared.DumpOpenStackVolumes(e2eCtx, volumes.ListOpts{}) | ||
Expect(err).NotTo(HaveOccurred()) | ||
shared.AllNodesBeforeSuite(e2eCtx, data) |
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.
I think you need to move this call to AllNodesBeforeSuite
up to the top.
I tested my suggested fix in #2007, and it nearly passes! In fact, it looks like we probably just need a custom matcher. It looks like the reported difference in networks isn't relevant. I can see at a glance that the subnets are in the opposite order. There may be other differences. I wonder if we just want to compare the list of UUIDs? |
I wrote a custom matcher over in #2007. You can see an example test failure in https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api-provider-openstack/2007/pull-cluster-api-provider-openstack-e2e-test/1777791653365420032 I think it looks... ok. This would probably fly, tbh, although ideally we'd have some way to dump all the match failures after a run rather than stopping on the first one. Feel free to take that code if you want. I am not planning to merge #2007, it was just for playing with your PR. |
Hi @mdbooth . Thank you a lot! I'll have a look and come back asap xD |
I added the 'test everything and report after' too. You can see the results here: https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api-provider-openstack/2007/pull-cluster-api-provider-openstack-e2e-test/1777826551497232384 With this change the reported failure is simply:
And the actual leaked resources are in the logs. Honestly this wasn't my intention, but I think I like it? |
Incidentally, the advantage of using a custom matcher on whole objects rather than just matching on UUIDs is that you get the whole object in the failure message, e.g.:
|
0de2853
to
4d3cc33
Compare
Hi @mdbooth . Thank you for all the work! I've stolen all of the implementation and updated the PR here. |
950154d
to
926bbaa
Compare
adbbd79
to
fbb826a
Compare
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lentzi90 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 |
fbb826a
to
7e28d96
Compare
Signed-off-by: Huy Mai <[email protected]>
7e28d96
to
48c952f
Compare
/lgtm |
/unhold |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1801
Special notes for your reviewer:
TODOs: