Skip to content
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

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

chrischdi
Copy link
Member

What this PR does / why we need it:

Fixes a race condition in the test function ScaleAndWaitMachineDeploymentTopology, when:

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

@k8s-ci-robot k8s-ci-robot added area/testing Issues or PRs related to testing cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 6, 2023
@chrischdi chrischdi changed the title test: wait for the topology to get rolled out to the machinedeployment before continuing 🐛 test: wait for the topology to get rolled out to the machinedeployment before continuing Dec 6, 2023
@chrischdi
Copy link
Member Author

/retest

@sbueringer
Copy link
Member

Thx, nice catch!!

/lgtm
/approve

/test pull-cluster-api-e2e-full-main

cc @kubernetes-sigs/cluster-api-release-team

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 6, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 0f1cd2bb7a22c759e709195ea9dba112cf26dd4a

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 6, 2023
@chrischdi
Copy link
Member Author

chrischdi commented Dec 6, 2023

Potentially a good cherry-pick. Maybe we hit this for some flakes. But we should see that when a flake only happens on <= v1.6 :-) Would help to get a test stable for CAPV when at least cherry-picked into v1.6.

@fabriziopandini
Copy link
Member

good catch
/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[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:
  • OWNERS [fabriziopandini,sbueringer]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sbueringer
Copy link
Member

Fine to cherry-pick

@chrischdi chrischdi changed the title 🐛 test: wait for the topology to get rolled out to the machinedeployment before continuing 🐛 test: wait for the topology to get rolled out before continuing with scaling checks Dec 6, 2023
@sbueringer
Copy link
Member

/override pull-cluster-api-e2e-full-main

Test is green. No idea what tide is doing

@k8s-ci-robot
Copy link
Contributor

@sbueringer: Overrode contexts on behalf of sbueringer: pull-cluster-api-e2e-full-main

In response to this:

/override pull-cluster-api-e2e-full-main

Test is green. No idea what tide is doing

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.

@furkatgofurov7
Copy link
Member

/lgtm

Thanks @chrischdi!

@sbueringer
Copy link
Member

/retest

@chrischdi
Copy link
Member Author

Very weird. Pushed again without changes.

@chrischdi
Copy link
Member Author

/retitle 🐛 test: wait for topology to get rolled out before continuing with scaling checks

@k8s-ci-robot k8s-ci-robot changed the title 🐛 test: wait for the topology to get rolled out before continuing with scaling checks 🐛 test: wait for topology to get rolled out before continuing with scaling checks Dec 7, 2023
@k8s-ci-robot k8s-ci-robot merged commit 309e346 into kubernetes-sigs:main Dec 7, 2023
22 of 23 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.7 milestone Dec 7, 2023
@sbueringer
Copy link
Member

/cherry-pick release-1.6

@sbueringer
Copy link
Member

cherry-pick release-1.5

@k8s-infra-cherrypick-robot

@sbueringer: new pull request created: #9827

In response to this:

/cherry-pick release-1.6

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.

@sbueringer
Copy link
Member

/cherry-pick release-1.5

@k8s-infra-cherrypick-robot

@sbueringer: new pull request created: #9828

In response to this:

/cherry-pick release-1.5

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/testing Issues or PRs related to testing cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants