Skip to content

Change default for frequent-loops-enabled flag #8019

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kawych
Copy link
Contributor

@kawych kawych commented Apr 10, 2025

What type of PR is this?

What this PR does / why we need it:

Frequent loops is a small optimization to avoid unnecessary scale-up delays. Changing default value to true with the ultimate goal to deprecate the flag and remove unused code.

NONE

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 10, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kawych
Once this PR has been reviewed and has the lgtm label, please assign bigdarkclown for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 area/cluster-autoscaler size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 10, 2025
@jackfrancis
Copy link
Contributor

Thanks @kawych for introducing and continuing to move this feature forward!

Before we turn this on by default we will want to significantly reinforce unit test coverage.

I notice that the PR history for this feature does not include the addition of any unit tests to validate and protect the new and changed behaviors to Cluster Autoscaler:

(In addition, a prior version of #7418 was merged and then reverted.)

Can you submit a separate PR with UT coverage of the changes above? Once we improve our tests we can make a plan for considering enabling by default.

cc @gjtempleton @x13n @towca @aleksandra-malinowska

@jackfrancis
Copy link
Contributor

/hold

for further discussion and better UT coverage of frequent-loops-enabled code paths

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 24, 2025
@x13n
Copy link
Member

x13n commented Apr 25, 2025

UT are probaby a good idea here. Also, the release note shouldn't be NONE, this is changing default value for a flag most users are likely not specifying today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cluster-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. 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.

4 participants