-
Notifications
You must be signed in to change notification settings - Fork 296
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
Improve e2e testing #2995
Comments
/area supervisor |
I would like to start with
|
Also would like to pick up a similar one :-)
|
It seems this one is more about testing efforts. Just raised a PR to test.
|
Yeah good case is that most if it just works once added :) A few require a bit more work |
Taking this one
|
I created a PR for
Regarding the other subpoint:
There is already unit-test coverage here: We define the VSphereMachine here, the called function has a hardcoded value for
Later we check the spec of the VirtualMachine to match the minHardwareVersion (again
Plus an immutability check at the end: cluster-api-provider-vsphere/pkg/services/vmoperator/vmopmachine_test.go Lines 304 to 313 in b935f0a
|
@chrischdi @fabriziopandini if I see correctly we don't have the cluster autoscaler test on the list, let's add it as P2? |
@sbueringer
|
@zhanggbj was just chatting with Christian and Fabrizio about it, we just realized that we didn't have supervisor e2e test in CAPV v1.8. So it would be a lot of effort to add v1.8 => main tests. We would propose instead to wait until after the v1.11 release in ~ 6 weeks, and then we can just have v1.9 => main, v1.10 => main and v1.11 => main (so we get n-3 coverage just a bit later but with a lot less effort). Probably we can just include it in the "Prepare main branch for development of the new release" task which is part of #3084. Usually we drop the oldest test there, but in that case we will simply keep it around. |
@sbueringer Makes sense to me. This will provide n-3 tests with much less effort. Thanks! |
@zhanggbj Sorry I was just working on prepare main branch and realized that "Add clusterctl upgrade tests n-3" will be covered by that, so I took over that task from you. |
@sbueringer Just go ahead, no worries :) |
@chrischdi Assigned |
Moved remaining sub-tasks to separate issues: /close Great work everyone! |
@sbueringer: Closing this issue. 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-sigs/prow repository. |
Improve e2e tests
We compared CAPV govmomi & supervisor e2e tests with core CAPI e2e tests.
As a result we want to make the following improvements.
Adding e2e tests:
ValidateResourceVersionStable
func (🌱 Ensure resourceVersions are stable cluster-api#10530) to ownerRef & finalizer tests (supervisor+govmomi) (@fabriziopandini) 🌱 Bump to CAPI main (v1.8.0 pre alpha) #3033cluster-api-provider-vsphere/pkg/services/vmoperator/vmopmachine_test.go
Line 152 in b935f0a
After CAPV v1.11: Adding e2e tests:
Other improvements:
Reconsider if we need it later:
govmomi has the following additional jobs (intentionally):
The text was updated successfully, but these errors were encountered: