-
Notifications
You must be signed in to change notification settings - Fork 120
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
use the composite prober with the channel #3252
use the composite prober with the channel #3252
Conversation
Hi @Rahul-Kumar-prog. Thanks for your PR. I'm waiting for a knative-sandbox member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
Codecov Report
@@ Coverage Diff @@
## main #3252 +/- ##
============================================
- Coverage 61.54% 58.34% -3.20%
============================================
Files 181 91 -90
Lines 12322 9279 -3043
Branches 265 0 -265
============================================
- Hits 7583 5414 -2169
+ Misses 4142 3431 -711
+ Partials 597 434 -163
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good start @Rahul-Kumar-prog! Can you look into why your unit tests are failing on this PR:
# knative.dev/eventing-kafka-broker/control-plane/pkg/reconciler/channel_test [knative.dev/eventing-kafka-broker/control-plane/pkg/reconciler/channel.test]
Error: control-plane/pkg/reconciler/channel/channel_test.go:2134:23: cannot use proberMock (variable of type prober.Prober) as prober.NewProber value in struct literal: prober.Prober does not implement prober.NewProber (wrong type for method Probe)
have Probe("context".Context, prober.Addressable, prober.Status) prober.Status
want Probe("context".Context, prober.NewAddressable, prober.Status) prober.Status
It looks to me like we need to update the unit tests as well, similar to what I did in https://github.com/knative-sandbox/eventing-kafka-broker/pull/3175/files in the broker_test.go
file.
@Cali0707 How can I identify this failing cause ? |
@Rahul-Kumar-prog look at the changes I made to the |
@Cali0707 Do I have to make changes in all the files that you have changed? Or similarly? Because you make changes in 15 file for the same kind of issue? |
@Rahul-Kumar-prog you just have to follow the changes I made to |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rahul-Kumar-prog thanks for your work so far!
If you look at the issue, it also mentions implementing this for channel v2. Do you think you could make the same changes you have made here for channel v2?
Ohh i am so sorry i forget about that one sorry. defiantly i can do. Thank you for letting me know. |
/retest-required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the channelv2 changes @Rahul-Kumar-prog !
/retest-required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rahul-Kumar-prog sorry I missed this earlier, but you need to add the address into the Addresses
field for all of the duckv1.AddressStatus
fields you are creating yourself.
@Rahul-Kumar-prog can you rebase this PR to have the newest version of the changes on |
@Cali0707 can you please retest ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rahul-Kumar-prog I found a few more places in your code which are causing some of the failing tests, if you make the changes I suggested more (hopefully all) of the tests will pass. The question I had for @pierDipi won't block any current tests from passing, but may affect whether this works when we add tls tests for the channel
Co-authored-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Calum Murray <cmurray@redhat.com>
/retest-required |
1 similar comment
/retest-required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rahul-Kumar-prog @pierDipi per earlier conversation, these changes will set the port correctly for the case when we want to probe with TLS
Co-authored-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Calum Murray <cmurray@redhat.com>
Btw @Rahul-Kumar-prog, you normally don't need to merge the main branch into your PR unless you:
Otherwise, Prow will handle that for you once the PR is approved |
@Cali0707 thank you for telling I was not aware of that. |
/retest-required |
1 similar comment
/retest-required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/hold in case @pierDipi wants any changes
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, Rahul-Kumar-prog 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 |
/retest-required |
/test channel-integration-tests-ssl |
/unhold |
* using the composite prober for the channel * edit channel_test.go file * change channel_test.go * done changes in V2 channel * edit in controllerv2.go * edit addresses * 2nd edit addresses * Update prober pod port Co-authored-by: Calum Murray <cmurray@redhat.com> * Update prober pod port Co-authored-by: Calum Murray <cmurray@redhat.com> * Update prober pod port for TLS Co-authored-by: Calum Murray <cmurray@redhat.com> * Update prober pod port for TLS Co-authored-by: Calum Murray <cmurray@redhat.com> --------- Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> Co-authored-by: Calum Murray <cmurray@redhat.com>
#3406 (#3497) * use the composite prober with the channel (#3252) * using the composite prober for the channel * edit channel_test.go file * change channel_test.go * done changes in V2 channel * edit in controllerv2.go * edit addresses * 2nd edit addresses * Update prober pod port Co-authored-by: Calum Murray <cmurray@redhat.com> * Update prober pod port Co-authored-by: Calum Murray <cmurray@redhat.com> * Update prober pod port for TLS Co-authored-by: Calum Murray <cmurray@redhat.com> * Update prober pod port for TLS Co-authored-by: Calum Murray <cmurray@redhat.com> --------- Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> Co-authored-by: Calum Murray <cmurray@redhat.com> * E2E tests for channel: TLS key pair rotation (#3406) * Save work progress * Expose the TLS port * Adding the logger to see what is happening * Java - Adding the debugging information * Adding the path to the contract * Comment out the certificate rotation test portion * Resolve the source certificate not found issue * Fix the issue in the test * Update control-plane/pkg/prober/prober.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update control-plane/pkg/reconciler/channel/channel.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update control-plane/pkg/reconciler/channel/channel.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update control-plane/pkg/reconciler/channel/resources/service.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update data-plane/receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/impl/IngressProducerReconcilableStore.java Co-authored-by: Calum Murray <cmurray@redhat.com> * Fix the inconsistent varable name * Fix the failed build issue * Remove the logger * Run formatting * Update data-plane/receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/impl/ReceiverVerticle.java Co-authored-by: Calum Murray <cmurray@redhat.com> * Remove the logger * Code gen * Update control-plane/pkg/reconciler/channel/channel.go Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Remove the uncessary code * Fix the failing reconciler tests due to the missing newly added filed in the test * Format fix * Instead of using channel service name, we directly use channel name for Path * Instead of using channel service name, we directly use channel name for Path --------- Co-authored-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Update the function name --------- Co-authored-by: Rahul kumar <68837569+Rahul-Kumar-prog@users.noreply.github.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> Co-authored-by: Calum Murray <cmurray@redhat.com>
knative-extensions#3406 (knative-extensions#3497) * use the composite prober with the channel (knative-extensions#3252) * using the composite prober for the channel * edit channel_test.go file * change channel_test.go * done changes in V2 channel * edit in controllerv2.go * edit addresses * 2nd edit addresses * Update prober pod port Co-authored-by: Calum Murray <cmurray@redhat.com> * Update prober pod port Co-authored-by: Calum Murray <cmurray@redhat.com> * Update prober pod port for TLS Co-authored-by: Calum Murray <cmurray@redhat.com> * Update prober pod port for TLS Co-authored-by: Calum Murray <cmurray@redhat.com> --------- Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> Co-authored-by: Calum Murray <cmurray@redhat.com> * E2E tests for channel: TLS key pair rotation (knative-extensions#3406) * Save work progress * Expose the TLS port * Adding the logger to see what is happening * Java - Adding the debugging information * Adding the path to the contract * Comment out the certificate rotation test portion * Resolve the source certificate not found issue * Fix the issue in the test * Update control-plane/pkg/prober/prober.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update control-plane/pkg/reconciler/channel/channel.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update control-plane/pkg/reconciler/channel/channel.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update control-plane/pkg/reconciler/channel/resources/service.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update data-plane/receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/impl/IngressProducerReconcilableStore.java Co-authored-by: Calum Murray <cmurray@redhat.com> * Fix the inconsistent varable name * Fix the failed build issue * Remove the logger * Run formatting * Update data-plane/receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/impl/ReceiverVerticle.java Co-authored-by: Calum Murray <cmurray@redhat.com> * Remove the logger * Code gen * Update control-plane/pkg/reconciler/channel/channel.go Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Remove the uncessary code * Fix the failing reconciler tests due to the missing newly added filed in the test * Format fix * Instead of using channel service name, we directly use channel name for Path * Instead of using channel service name, we directly use channel name for Path --------- Co-authored-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Update the function name --------- Co-authored-by: Rahul kumar <68837569+Rahul-Kumar-prog@users.noreply.github.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> Co-authored-by: Calum Murray <cmurray@redhat.com>
Fixes #3188
Proposed Changes
Release Note
Docs