serving icon indicating copy to clipboard operation
serving copied to clipboard

Validation added for initialScale greater than maxScale (#14153)

Open yp969803 opened this issue 2 years ago • 11 comments

Fixes #14153

Proposed Changes

  • Added a validation for initialScale > maxScale
  • As initialScale > maxScale not making sense at all. As it is not depending on traffic.

Release Note

none

yp969803 avatar Nov 29 '23 19:11 yp969803

Hi @yp969803. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

knative-prow[bot] avatar Nov 29 '23 19:11 knative-prow[bot]

/ok-to-test

dprotaso avatar Dec 07 '23 20:12 dprotaso

@dprotaso i have added the further annotations can you review

yp969803 avatar Jan 02 '24 18:01 yp969803

Codecov Report

Attention: 29 lines in your changes are missing coverage. Please review.

Comparison is base (81149da) 86.05% compared to head (2579cc1) 85.81%. Report is 39 commits behind head on main.

:exclamation: Current head 2579cc1 differs from pull request most recent head 6ef38fa. Consider uploading reports for the commit 6ef38fa to get more accurate results

Files Patch % Lines
pkg/apis/autoscaling/annotation_validation.go 0.00% 29 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14682      +/-   ##
==========================================
- Coverage   86.05%   85.81%   -0.24%     
==========================================
  Files         197      197              
  Lines       14937    14974      +37     
==========================================
- Hits        12854    12850       -4     
- Misses       1774     1810      +36     
- Partials      309      314       +5     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jan 12 '24 19:01 codecov[bot]

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: yp969803 Once this PR has been reviewed and has the lgtm label, please ask for approval from dprotaso. For more information see the Kubernetes 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

knative-prow[bot] avatar Jan 16 '24 14:01 knative-prow[bot]

@dprotaso i have updated the pr you can review, adding test is left

yp969803 avatar Jan 16 '24 14:01 yp969803

@dprotaso updated the pr and added the unit test

yp969803 avatar Jan 16 '24 17:01 yp969803

@yp969803: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
unit-tests_serving_main 6ef38fadfe8db039f3ee9f9f6a6531014458475f link true /test unit-tests

Your PR dashboard.

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. I understand the commands that are listed here.

knative-prow[bot] avatar Jan 18 '24 11:01 knative-prow[bot]

@dprotaso any stuff left?

yp969803 avatar Jan 18 '24 17:01 yp969803

CI is failing - see the GitHub checks - I'll wait for them to go green before reviewing again

dprotaso avatar Jan 18 '24 18:01 dprotaso

Hey @yp969803 the unit tests that are failing is the code you've modified can you take a look?

dprotaso avatar Feb 16 '24 16:02 dprotaso

Going to close this out due to inactivity.

dprotaso avatar Mar 05 '24 18:03 dprotaso