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

[release-1.11] Cherry-pick E2E tests for broker: TLS key pair rotation #3287 #3387

Merged

Conversation

Leo6Leo
Copy link
Contributor

@Leo6Leo Leo6Leo commented Oct 10, 2023

* progress save

* add the new cert rotation test

* Update the rekt test

* Format the files

* workspace save

* maven

* Clean up

* Clean up

* Format

* Fix the rekt test CA cert issue on Source

Co-authored-by: Pierangelo Di Pilato <[email protected]>

* Format fix

* Re-order the prerequisite

* Enable the strict transportation mode in TLS rekt tests

* Fix the reviewDog comment

* Update test/e2e_new/broker_eventing_tls_test.go

Co-authored-by: Pierangelo Di Pilato <[email protected]>

* Fix the format of the shell script

* Fix the format of the shell script

* Update the Strict feature flag

* Add the code to inject the feature flag to the context in the broker controller

* Run go import

* Fix the controller tests

* Set the default value to all other feature flags when we are updating the transport-encryption feature flag

---------

Co-authored-by: Pierangelo Di Pilato <[email protected]>
Co-authored-by: Pierangelo Di Pilato <[email protected]>
@knative-prow knative-prow bot added area/data-plane size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/test labels Oct 10, 2023
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Oct 10, 2023

/cc @Cali0707 @creydr

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (67fc0ea) 58.49% compared to head (9322c67) 80.14%.
Report is 1 commits behind head on release-1.11.

Additional details and impacted files
@@                 Coverage Diff                 @@
##             release-1.11    #3387       +/-   ##
===================================================
+ Coverage           58.49%   80.14%   +21.64%     
- Complexity              0      768      +768     
===================================================
  Files                  91       78       -13     
  Lines                9163     2780     -6383     
  Branches                0      247      +247     
===================================================
- Hits                 5360     2228     -3132     
+ Misses               3382      397     -2985     
+ Partials              421      155      -266     
Flag Coverage Δ
java-unittests 80.14% <100.00%> (?)

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-prow knative-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 10, 2023
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 10, 2023
@knative-prow knative-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 10, 2023
@knative-prow knative-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 11, 2023
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Oct 11, 2023

/retest-required

1 similar comment
@Cali0707
Copy link
Member

/retest-required

@Cali0707
Copy link
Member

@Leo6Leo can you look into why the kafka-source-dispatcher pod is not coming live?

@knative-prow knative-prow bot removed the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 30, 2023
@knative-prow knative-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 23, 2023
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Nov 23, 2023

/retest-required

1 similar comment
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Nov 24, 2023

/retest-required

@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Nov 24, 2023

/cc @pierDipi

@knative-prow knative-prow bot requested a review from pierDipi November 24, 2023 15:49
data-plane/pom.xml Outdated Show resolved Hide resolved
@knative-prow knative-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 28, 2023
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Nov 28, 2023

/retest-required

1 similar comment
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Nov 29, 2023

/retest-required

@Leo6Leo Leo6Leo changed the title [WIP][release-1.11] Cherry-pick E2E tests for broker: TLS key pair rotation #3287 [release-1.11] Cherry-pick E2E tests for broker: TLS key pair rotation #3287 Nov 29, 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 Nov 29, 2023
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 29, 2023
Copy link

knative-prow bot commented Nov 29, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Leo6Leo, 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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 29, 2023
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Nov 29, 2023

/retest-required

2 similar comments
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Nov 29, 2023

/retest-required

@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Nov 29, 2023

/retest-required

@knative-prow knative-prow bot requested a review from pierDipi November 29, 2023 22:51
@knative-prow knative-prow bot merged commit f6481d7 into knative-extensions:release-1.11 Nov 29, 2023
33 of 36 checks passed
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Nov 30, 2023

/cherry-pick release-1.12

@knative-prow-robot
Copy link
Contributor

@Leo6Leo: #3387 failed to apply on top of branch "release-1.12":

Applying: E2E tests for broker: TLS key pair rotation (#3287)
Using index info to reconstruct a base tree...
M	control-plane/pkg/reconciler/broker/controller.go
M	control-plane/pkg/reconciler/broker/controller_test.go
M	data-plane/core/src/main/java/dev/knative/eventing/kafka/broker/core/metrics/Metrics.java
M	test/reconciler-tests.sh
M	test/rekt/features/broker_auth.go
Falling back to patching base and 3-way merge...
Auto-merging test/reconciler-tests.sh
Auto-merging control-plane/pkg/reconciler/broker/controller.go
No changes -- Patch already applied.
Applying: Run Dependency update
Using index info to reconstruct a base tree...
M	go.mod
M	go.sum
M	vendor/knative.dev/eventing/hack/update-cert-manager.sh
M	vendor/knative.dev/reconciler-test/pkg/environment/magic.go
M	vendor/knative.dev/reconciler-test/pkg/environment/namespace.go
M	vendor/knative.dev/reconciler-test/pkg/eventshub/eventshub.go
M	vendor/knative.dev/reconciler-test/pkg/eventshub/forwarder/forwarder.go
M	vendor/knative.dev/reconciler-test/pkg/eventshub/resources.go
M	vendor/knative.dev/reconciler-test/pkg/manifest/manifest.go
M	vendor/knative.dev/reconciler-test/pkg/manifest/options.go
M	vendor/modules.txt
Falling back to patching base and 3-way merge...
Auto-merging vendor/modules.txt
CONFLICT (content): Merge conflict in vendor/modules.txt
Auto-merging vendor/knative.dev/reconciler-test/pkg/eventshub/resources.go
Auto-merging vendor/knative.dev/reconciler-test/pkg/eventshub/forwarder/forwarder.go
CONFLICT (content): Merge conflict in vendor/knative.dev/reconciler-test/pkg/eventshub/forwarder/forwarder.go
Auto-merging vendor/knative.dev/reconciler-test/pkg/environment/magic.go
Auto-merging go.sum
CONFLICT (content): Merge conflict in go.sum
Auto-merging go.mod
CONFLICT (content): Merge conflict in go.mod
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0002 Run Dependency update
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

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.

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 area/data-plane area/test lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants