-
Notifications
You must be signed in to change notification settings - Fork 71
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
e2e-test: make e2e-test codes can be reused as a lib #1642
Conversation
run e2e-test with the changed codes, test passed on providers:
provider |
9221487
to
cf2e237
Compare
8fffc6a
to
d4a45e0
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.
I left a couple of minor comments and questions, but overall I think this is good and should help us be more flexible with 'third-party' cloud providers in future. I think we need to ensure that it is reviewed/tested on AWS/Azure before merging.
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.
nit: I think we could move this file instead of deleting and re-adding test/provisioner/ibmcloud/provision_self_mgr.go ?
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.
do this in commit 00b5b34184f57070ec95d9bf0805c26d0680a209
but in the files of this pr still show as deleting and re-adding
.
We can check the history with command:
git log --follow test/provisioner/ibmcloud/provision_self_mgr.go
commit 4e8623cd2d3fc9110a5955b123f85a4e51f4857f
Author: Da Li Liu <liudali@cn.ibm.com>
Date: Wed Jan 3 11:13:59 2024 +0800
e2e-test: make test provisioner codes can be reused by other package
- make the test provisioner codes be public
Fixes: #1641
Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
commit 00b5b34184f57070ec95d9bf0805c26d0680a209
Author: Da Li Liu <liudali@cn.ibm.com>
Date: Wed Jan 3 11:04:45 2024 +0800
e2e-test: split provisioner source codes to different folder
- create provider folders for different provisioner
Fixes: #1641
Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
commit 6a0e39305b2ea65ba62cb22d65a66cd48d90c2f1
Author: Wainer dos Santos Moschetta <wainersm@redhat.com>
Date: Wed Mar 1 17:05:51 2023 -0300
...
fd27771
to
7ba872f
Compare
I'm seeing the overlay fail now:
I'll have a play with it manually, but thought it was mentioning as it's an area that has had some refactoring |
Ok, there is something else going on here that I don't fully understand. It looks like we don't get a caa pod as the ds has desired number of 0?:
Maybe the latest operator isn't compatible with the 0.8 peer pods config? |
I'm getting the same result on 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.
The changes looks good to me except the git history mentioned in #1642 (comment), and thanks @stevenhorsman trying this change. I'll tick my approval, please merge it after get these 2 comments addressed, thank you! @liudalibj @stevenhorsman
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
- create provider folders for different provisioner Fixes: confidential-containers#1641 Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
- make the test provisioner codes be public Fixes: confidential-containers#1641 Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
- use 'git mv' try to keep commit history for refactor test files Fixes: confidential-containers#1641 Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
d71cc85
to
724ecb8
Compare
- make the test codes be public - remove some dup codes fixes confidential-containers#1641 Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
@stevenhorsman thanks for try this big pr in your local. Here is passed internal job for this PR with ibmcloud provider, https://sys-zaas-k8s-jenkins.swg-devops.com/job/cloud-api-adaptor-e2e-tests-opensource/1121/console you can do a reference. |
Thanks DaLi - for those who can't see the test runs behind the IBM firewall I can confirm that I can see that the e2e tests all passed:
so I won't worry too much about the failures I was seeing and right it off as a problem with my dev environment. I'll try the libvirt locally whilst waiting for the Ci libvirt tests to finish running, but if they are green then that shouldn't block either. |
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.
The code looks good to me and I can see that the CI e2e tests are working, so I think once we've had an Azure/AWS reviewer this is good to merge. Thanks DaLi!
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.
Checked out the branch and ran the e2e test for Azure successfully 👍
e2e provisioning for AWS itself doesn't work. In the first scenario when using CIDR "20.0.0.0/16" it failed to create the private network because it uses the default CIDR and not the input CIDR as the basis
None of these errors are due to this PR though. But unfortunately I can't test without figuring out what's wrong with the AWS e2e provisioning. This is going to take time. So considering this situation, please don't hold the PR. cc @wainersm for awareness |
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
Thanks for the update @bpradipt so that I will merge this pr now. |
fixes #1641