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

Eventing TLS: Add E2E TLS test for Parallel #7395

Merged
merged 4 commits into from
Dec 14, 2023

Conversation

pierDipi
Copy link
Member

Add rekt TLS test for Parallel

/area test-and-release

@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. area/test-and-release Test infrastructure, tests or release approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 25, 2023
@pierDipi pierDipi force-pushed the add-parallel-tls-test branch from 8370ac6 to 5fbf431 Compare October 25, 2023 12:13
@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

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

Comparison is base (1f38c2e) 76.12% compared to head (560fe96) 76.16%.

Files Patch % Lines
pkg/reconciler/parallel/resources/subscription.go 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7395      +/-   ##
==========================================
+ Coverage   76.12%   76.16%   +0.04%     
==========================================
  Files         260      260              
  Lines       14467    14456      -11     
==========================================
- Hits        11013    11011       -2     
+ Misses       2888     2879       -9     
  Partials      566      566              

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

@pierDipi pierDipi changed the title [WIP] Eventing TLS: Add E2E TLS test for Parallel Eventing TLS: Add E2E TLS test for Parallel Oct 26, 2023
@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 Oct 26, 2023
@pierDipi
Copy link
Member Author

/cc @Leo6Leo @creydr

@knative-prow knative-prow bot requested review from creydr and Leo6Leo October 26, 2023 18:06
@pierDipi
Copy link
Member Author

/cherry-pick release-1.12

@knative-prow-robot
Copy link
Contributor

@pierDipi: 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.

@pierDipi
Copy link
Member Author

/cherry-pick release-1.11

@knative-prow-robot
Copy link
Contributor

@pierDipi: 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.

@@ -102,26 +108,31 @@ func WithSubscriberAt(index int, ref *duckv1.KReference, uri string) manifest.Cf
}
subscriber := branch["subscriber"].(map[string]interface{})

Copy link
Member

Choose a reason for hiding this comment

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

Maybe check if d is nil here as well just like other functions like WithFilterAt do?

Copy link
Member Author

@pierDipi pierDipi Nov 2, 2023

Choose a reason for hiding this comment

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

d nil for subscriber, while possible, it doesn't make sense and this is test code, so it's ok to panic in that case

Ref: p.Spec.Branches[branchNumber].Filter.Ref,
URI: p.Spec.Branches[branchNumber].Filter.URI,
}
r.Spec.Subscriber = p.Spec.Branches[branchNumber].Filter.DeepCopy()
Copy link
Member

Choose a reason for hiding this comment

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

Why we are making this change here?

Copy link
Member Author

@pierDipi pierDipi Nov 2, 2023

Choose a reason for hiding this comment

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

Destination has other fields beyond URI and Ref (which is why it wasn't working without this change) and we need to set them all, just better to assign the full copied struct instead of individual fields

test/rekt/features/parallel/features.go Outdated Show resolved Hide resolved
@pierDipi pierDipi requested a review from Leo6Leo November 3, 2023 08:40
@pierDipi
Copy link
Member Author

pierDipi commented Dec 5, 2023

@creydr @Leo6Leo can I get a review here ?

@creydr
Copy link
Member

creydr commented Dec 13, 2023

/retest

Copy link
Member

@creydr creydr left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 13, 2023
@creydr
Copy link
Member

creydr commented Dec 13, 2023

@pierDipi sorry for my late review. I just oversaw it. Can you rebase?

# knative.dev/eventing/test/rekt/resources/parallel
test/rekt/resources/parallel/parallel.go:276:6: ValidateAddress redeclared in this block
	test/rekt/resources/parallel/parallel.go:67:6: other declaration of ValidateAddress

@mgencur mgencur mentioned this pull request Dec 13, 2023
5 tasks
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi pierDipi force-pushed the add-parallel-tls-test branch from 5780b75 to fcb71cf Compare December 14, 2023 08:10
@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Dec 14, 2023
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi pierDipi requested a review from creydr December 14, 2023 08:38
Copy link
Member

@creydr creydr left a comment

Choose a reason for hiding this comment

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

Thanks for fixing @pierDipi
/lgtm

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

knative-prow bot commented Dec 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, 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

@knative-prow knative-prow bot merged commit c24dab5 into knative:main Dec 14, 2023
32 of 34 checks passed
@knative-prow-robot
Copy link
Contributor

@pierDipi: new pull request created: #7508

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

@pierDipi: new pull request created: #7509

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.

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/test-and-release Test infrastructure, tests or release lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants