Improve error handling at conversion of Subscribable subtypes#3476
Conversation
|
/retest |
|
The following jobs failed:
Failed non-flaky tests preventing automatic retry of pull-knative-eventing-integration-tests: and 1 more. |
977940c to
6c49c7d
Compare
6c49c7d to
36fa11c
Compare
| @@ -32,11 +32,16 @@ func (source *SubscribableType) ConvertTo(ctx context.Context, obj apis.Converti | |||
| switch sink := obj.(type) { | |||
| case *duckv1beta1.Subscribable: | |||
There was a problem hiding this comment.
I am gonna finally add v1alpha1<>v1 conversions after this PR. Please bear with me.
|
Could you please add a grip of tests for this too? We have found this type of code quite tricky to get right without a lot of tests. |
|
The following is the coverage report on the affected files.
|
|
@n3wscott I would be happy to change any part of the code if anybody has any suggestion. |
|
/lgtm |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aliok, vaikas The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Part of #3474