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

Added broker and trigger tests to keda reconciler tests #3819

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

NeerajNagure
Copy link
Contributor

Fixes #3814

Proposed Changes

  • Added broker and trigger tests to keda reconciler tests so as to test them in keda environment.

  • 🎁 Added broker and trigger tests

Signed-off-by: Neeraj Nagure <nagureneeraj@gmail.com>
@knative-prow knative-prow bot added area/test size/S Denotes a PR that changes 10-29 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 5, 2024
Copy link

knative-prow bot commented Apr 5, 2024

Hi @NeerajNagure. Thanks for your PR.

I'm waiting for a knative-extensions 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 knative-prow bot requested review from Cali0707 and matzew April 5, 2024 09:05
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.72%. Comparing base (551691c) to head (504e7e9).
Report is 36 commits behind head on main.

Additional details and impacted files
@@              Coverage Diff              @@
##               main    #3819       +/-   ##
=============================================
- Coverage     73.90%   49.72%   -24.18%     
=============================================
  Files           100      246      +146     
  Lines          3407    14819    +11412     
  Branches        288        0      -288     
=============================================
+ Hits           2518     7369     +4851     
- Misses          716     6695     +5979     
- Partials        173      755      +582     
Flag Coverage Δ
java-unittests ?

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.

Signed-off-by: Neeraj Nagure <nagureneeraj@gmail.com>
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.

Thanks @NeerajNagure, left a few cleanup comments

test/keda-reconciler-tests.sh Outdated Show resolved Hide resolved
test/keda-reconciler-tests.sh Outdated Show resolved Hide resolved
NeerajNagure and others added 2 commits April 5, 2024 18:41
Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
@NeerajNagure
Copy link
Contributor Author

@pierDipi I think so the tests that are left now in my changes are broker tests.How can I add the trigger tests then?

@pierDipi
Copy link
Member

pierDipi commented Apr 5, 2024

@NeerajNagure broker tests are also trigger tests, so the PR looks good to me

/lgtm

/assign @Cali0707

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Apr 5, 2024
@Cali0707
Copy link
Member

Cali0707 commented Apr 5, 2024

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 5, 2024
Signed-off-by: Neeraj Nagure <nagureneeraj@gmail.com>
@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Apr 5, 2024
Copy link

knative-prow bot commented Apr 5, 2024

New changes are detected. LGTM label has been removed.

Copy link

knative-prow bot commented Apr 5, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: NeerajNagure
Once this PR has been reviewed and has the lgtm label, please ask for approval from cali0707. 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

@Cali0707
Copy link
Member

Cali0707 commented Apr 5, 2024

@NeerajNagure don't worry about the failing tests - those are unrelated to your changes. It looks like our CI is having issues this morning

@NeerajNagure
Copy link
Contributor Author

NeerajNagure commented Apr 5, 2024

@Cali0707 I have made the changes and removed -run=kafkasource flag test

Signed-off-by: Neeraj Nagure <nagureneeraj@gmail.com>
@NeerajNagure
Copy link
Contributor Author

/retest-required

@NeerajNagure
Copy link
Contributor Author

NeerajNagure commented Apr 9, 2024

Adding that command didn't work.I dont know how can we fix this.Can I get some help please @Cali0707 @pierDipi ?

@Cali0707
Copy link
Member

/retest-required

Signed-off-by: Neeraj Nagure <nagureneeraj@gmail.com>
@NeerajNagure
Copy link
Contributor Author

/retest-required

3 similar comments
@NeerajNagure
Copy link
Contributor Author

/retest-required

@NeerajNagure
Copy link
Contributor Author

/retest-required

@Cali0707
Copy link
Member

/retest-required

@NeerajNagure
Copy link
Contributor Author

@Cali0707 there is this error in keda tests broker_auth.go:193: no consumergroup template in config-kafka-features due to which its failing.I am not able to figure out how to fix it,can I please get some help?

@pierDipi
Copy link
Member

@Cali0707 can you help @NeerajNagure ?

@Cali0707
Copy link
Member

/retest

@pierDipi
Copy link
Member

Same error

broker_auth.go:193: no consumergroup template in config-kafka-features

@Cali0707
Copy link
Member

Same error

I'll look into it today 👍

@Cali0707
Copy link
Member

Hey @NeerajNagure I think I found the problem that you are seeing in your tests - the enable-keda-autoscaling.yaml file only includes the feature flag for keda, so we are deleting all the other feature flags when we apply it. To fix this, I would recommend copying the values from https://github.com/knative-extensions/eventing-kafka-broker/blob/main/control-plane/config/eventing-kafka-broker/200-controller/100-config-kafka-features.yaml into https://github.com/knative-extensions/eventing-kafka-broker/blob/main/test/keda/enable-keda-autoscaling.yaml

You'll notice that this will leave you with two keys that seemingly do the same thing:

  1. controller.autoscaler
  2. controller-autoscaler-keda

We should remove the controller.autoscaler key from the enable-keda-autoscaling.yaml file, and switch the value of controller-autoscaler-keda from disabled to enabled

Hopefully this makes sense, if you have any questions please feel free to ask!

Signed-off-by: Neeraj Nagure <nagureneeraj@gmail.com>
@NeerajNagure
Copy link
Contributor Author

@Cali0707 thanks for the help I have made the changes

@NeerajNagure
Copy link
Contributor Author

/retest-required

1 similar comment
@NeerajNagure
Copy link
Contributor Author

/retest-required

Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

Hey @NeerajNagure sorry for missing this earlier, I think we also need something like

kubectl apply -f ./test/e2e_new/config/features.yaml
before we actually run the tests

Signed-off-by: Neeraj Nagure <nagureneeraj@gmail.com>
@Cali0707
Copy link
Member

Cali0707 commented May 1, 2024

/retest-required

@Cali0707
Copy link
Member

Cali0707 commented May 1, 2024

@NeerajNagure looks like these tests caught a bug! Would you be interested in investigating it? If you're not sure, I'm happy to try and investigate and resolve the bug myself as well

@NeerajNagure
Copy link
Contributor Author

NeerajNagure commented May 2, 2024

@Cali0707 I couldnt understand the bug so you please go ahead in investigating the bug

@Cali0707
Copy link
Member

Cali0707 commented May 2, 2024

Hey @NeerajNagure I think my PR linked above should fix the problems here - we just need to merge that into eventing, and then update the dependencies here. If you want to, it would be great if you review the PR in eventing!

@Cali0707
Copy link
Member

/retest-required

@Cali0707
Copy link
Member

/test reconciler-tests-keda

Copy link

knative-prow bot commented May 14, 2024

@NeerajNagure: 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
reconciler-tests-keda_eventing-kafka-broker_main 504e7e9 link true /test reconciler-tests-keda

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

@NeerajNagure
Copy link
Contributor Author

@Cali0707 I think so we are getting this error tracker.go:139: Waiting for eventing-e2e0 to be deleted. I could not figure this out. Is this something related to deleting something in knative/eventing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

Add Broker/Trigger tests to KEDA test job
3 participants