-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 test: wait for topology to get rolled out before continuing with scaling checks #9819
🐛 test: wait for topology to get rolled out before continuing with scaling checks #9819
Conversation
/retest |
Thx, nice catch!! /lgtm /test pull-cluster-api-e2e-full-main cc @kubernetes-sigs/cluster-api-release-team |
LGTM label has been added. Git tree hash: 0f1cd2bb7a22c759e709195ea9dba112cf26dd4a
|
Potentially a good cherry-pick. Maybe we hit this for some flakes. |
good catch |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini, sbueringer 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 |
Fine to cherry-pick |
/override pull-cluster-api-e2e-full-main Test is green. No idea what tide is doing |
@sbueringer: Overrode contexts on behalf of sbueringer: pull-cluster-api-e2e-full-main 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. |
/lgtm Thanks @chrischdi! |
/retest |
…t before continuing
3711210
to
cc97900
Compare
Very weird. Pushed again without changes. |
/retitle 🐛 test: wait for topology to get rolled out before continuing with scaling checks |
/cherry-pick release-1.6 |
cherry-pick release-1.5 |
@sbueringer: new pull request created: #9827 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. |
/cherry-pick release-1.5 |
@sbueringer: new pull request created: #9828 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. |
What this PR does / why we need it:
Fixes a race condition in the test function
ScaleAndWaitMachineDeploymentTopology
, when:cluster-api/test/framework/machinedeployment_helpers.go
Line 536 in 3711210
cluster-api/test/framework/machinedeployment_helpers.go
Line 542 in 3711210
It could be the case that the topology controller did not yet update the MachineDeployment with the new number of replicas. But we use
.spec.replicas
from the machinedeployment.This fixes the race condition by using the replicas from the provided input instead.
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 #
/area testing