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

Remove activationLagThreshold to fix 0->1 scaling #3479

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

Cali0707
Copy link
Member

@Cali0707 Cali0707 commented Nov 23, 2023

Fixes Kafka source tests when KEDA is enabled (hopefully).

From discussion here, we shouldn't be using activationLagThreshold unless we want to initially scale form 0 to n>1. Hence, our scaling 0 -> 1 was not working.

Proposed Changes

  • Remove activationLagThreshold parameter (letting it default to 0)

Release Note

KafkaSource KEDA scaling from 0 -> 1 now works even when only a single event is in the topic

Docs

Signed-off-by: Calum Murray <cmurray@redhat.com>
Copy link

knative-prow bot commented Nov 23, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 23, 2023
@Cali0707
Copy link
Member Author

/test reconciler-tests-keda

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f9f6197) 58.46% compared to head (4240d41) 61.52%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3479      +/-   ##
============================================
+ Coverage     58.46%   61.52%   +3.06%     
- Complexity        0      764     +764     
============================================
  Files            91      181      +90     
  Lines          9338    12413    +3075     
  Branches          0      266     +266     
============================================
+ Hits           5459     7637    +2178     
- Misses         3443     4165     +722     
- Partials        436      611     +175     
Flag Coverage Δ
java-unittests 70.82% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@knative-extensions knative-extensions deleted a comment from knative-prow bot Nov 23, 2023
@Cali0707 Cali0707 marked this pull request as ready for review November 23, 2023 12:20
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 23, 2023
@knative-prow knative-prow bot requested a review from aliok November 23, 2023 12:20
@Cali0707
Copy link
Member Author

/cc @pierDipi

@knative-prow knative-prow bot requested a review from pierDipi November 23, 2023 12:21
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Nov 23, 2023
Copy link

knative-prow bot commented Nov 23, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, pierDipi

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

@Cali0707
Copy link
Member Author

/retest-required

@Cali0707
Copy link
Member Author

/cherry-pick release-1.12

@knative-prow-robot
Copy link
Contributor

@Cali0707: once the present PR merges, I will cherry-pick it on top of release-1.12 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.12

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.

@Cali0707
Copy link
Member Author

/cherry-pick release-1.11

@knative-prow-robot
Copy link
Contributor

@Cali0707: once the present PR merges, I will cherry-pick it on top of release-1.11 in a new PR and assign it to you.

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/test-infra repository.

@Cali0707
Copy link
Member Author

/test reconciler-tests

@knative-prow knative-prow bot merged commit 6aee62f into knative-extensions:main Nov 23, 2023
37 checks passed
@knative-prow-robot
Copy link
Contributor

@Cali0707: new pull request created: #3481

In response to this:

/cherry-pick release-1.12

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-robot
Copy link
Contributor

@Cali0707: new pull request created: #3482

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/test-infra repository.

Cali0707 added a commit to Cali0707/eventing-kafka-broker that referenced this pull request Nov 24, 2023
Cali0707 added a commit to Cali0707/eventing-kafka-broker that referenced this pull request Nov 24, 2023
openshift-merge-bot bot pushed a commit to openshift-knative/eventing-kafka-broker that referenced this pull request Dec 5, 2023
openshift-merge-bot bot pushed a commit to openshift-knative/eventing-kafka-broker that referenced this pull request Jan 16, 2024
…#3479) (#901)

Signed-off-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
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/control-plane lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants