Skip to content

Conversation

@sbueringer
Copy link
Member

@sbueringer sbueringer commented Aug 11, 2025

Signed-off-by: Stefan Büringer [email protected]

What this PR does / why we need it:
We recently started running the autoscaler test with ScaleToAndFromZero: true. Since then there were a few flakes like this: https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/periodic-cluster-api-e2e-mink8s-main/1954475054460833792

I think the problem is:

  • In l.282: "Checking the MachineDeployment finished scaling up" the MD has 1 replica, but the corresponding Node is not up yet
  • Because of that the Deployment in l.315: "Creating workload that forces the system to scale up" is created with 2 replicas instead of 3 replicas (AddScaleUpDeploymentAndWait uses count(Nodes) + 1 as replicas)
  • The test then fails later because we don't have enough Pods

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 #

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 11, 2025
@k8s-ci-robot k8s-ci-robot added do-not-merge/needs-area PR is missing an area label size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 11, 2025
@sbueringer sbueringer force-pushed the pr-fix-autoscaler-test-flake branch from 9cffa65 to 836311c Compare August 11, 2025 14:15
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 11, 2025
@sbueringer sbueringer added the area/e2e-testing Issues or PRs related to e2e testing label Aug 11, 2025
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/needs-area PR is missing an area label label Aug 11, 2025
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-main

Signed-off-by: Stefan Büringer [email protected]
@sbueringer sbueringer force-pushed the pr-fix-autoscaler-test-flake branch from 836311c to 5ffee12 Compare August 11, 2025 14:18
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-main

@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-main

Unrelated flake

@sbueringer
Copy link
Member Author

/assign @JoelSpeed @elmiko @mboersma @sivchari

@sbueringer
Copy link
Member Author

/assign @chrischdi

Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

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

LGTM label has been added.

Git tree hash: 499fb2d03310c160a9b91d523e2debb8d3fb5582

@elmiko
Copy link
Contributor

elmiko commented Aug 11, 2025

i'm not overly familiar with the framework changes, but this makes sense to me.

/lgtm

@sbueringer
Copy link
Member Author

/approve

Given lgtm's above

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 12, 2025
@k8s-ci-robot k8s-ci-robot merged commit 7eb3669 into kubernetes-sigs:main Aug 12, 2025
19 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.12 milestone Aug 12, 2025
@sbueringer sbueringer deleted the pr-fix-autoscaler-test-flake branch August 12, 2025 05:24
@sbueringer
Copy link
Member Author

/cherry-pick release-1.11

@k8s-infra-cherrypick-robot

@sbueringer: new pull request created: #12627

In response to this:

/cherry-pick release-1.11

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.

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/e2e-testing Issues or PRs related to e2e 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants