Skip to content

Backport EventType auto-create tests for Broker and Channel#510

Merged
openshift-merge-bot[bot] merged 13 commits into
openshift-knative:release-v1.11from
mgencur:backport_eventtype_tests_v1.11
Jan 29, 2024
Merged

Backport EventType auto-create tests for Broker and Channel#510
openshift-merge-bot[bot] merged 13 commits into
openshift-knative:release-v1.11from
mgencur:backport_eventtype_tests_v1.11

Conversation

@mgencur
Copy link
Copy Markdown

@mgencur mgencur commented Jan 25, 2024

Backport following changes from upstream.

Introduce midstream scripts for executing experimental reconciler tests. They're currently not executed in CI but will be re-used for downstream testing. In the future, they can be enabled in midstream if required.

@openshift-ci openshift-ci Bot requested review from matzew and pierDipi January 25, 2024 09:49
@mgencur
Copy link
Copy Markdown
Author

mgencur commented Jan 25, 2024

I would like to port the midstream scripts to release-v1.12 and main as well. But will do it manually.
The branch release-v1.12 already has some of the commits that are included in this PR so the PR there will be shorter.

@mgencur
Copy link
Copy Markdown
Author

mgencur commented Jan 25, 2024

I will need to polish the backports. The tests are stricter now and the APIServerSource test is failing.

@mgencur mgencur changed the title Backport EventType auto-create tests Backport EventType auto-create tests for Broker and Channel Jan 25, 2024
@mgencur
Copy link
Copy Markdown
Author

mgencur commented Jan 25, 2024

Created #511 for release-v1.12 branch.

@mgencur
Copy link
Copy Markdown
Author

mgencur commented Jan 26, 2024

/test 411-test-e2e-aws-ocp-411

Cali0707 and others added 13 commits January 29, 2024 07:30
Signed-off-by: Calum Murray <cmurray@redhat.com>
* Fix the merge conflict and fix the logical error in the test

Signed-off-by: Leo Li <leoli@redhat.com>

* Add the auto eventType creation support

Signed-off-by: Leo Li <leoli@redhat.com>

* reformat and remove the comments

Signed-off-by: Leo Li <leoli@redhat.com>

* Remove the assertReference function

Signed-off-by: Leo Li <leoli@redhat.com>

* fix reviewDog issue

Signed-off-by: Leo Li <leoli@redhat.com>

* Update test/rekt/resources/eventtype/eventtype.go

Co-authored-by: Calum Murray <cmurray@redhat.com>

* fix reviewDog issue

Signed-off-by: Leo Li <leoli@redhat.com>

* Move the test to experimental rekt

Signed-off-by: Leo Li <leoli@redhat.com>

* Remove the eventtype test from the pingsource rekt test

Signed-off-by: Leo Li <leoli@redhat.com>

* Rename the test name to make it more intuitive

Signed-off-by: Leo Li <leoli@redhat.com>

* Revert the unit test change

Signed-off-by: Leo Li <leoli@redhat.com>

* Format fix

Signed-off-by: Leo Li <leoli@redhat.com>

* format fix

Signed-off-by: Leo Li <leoli@redhat.com>

* Fix Christoph's comment

Signed-off-by: Leo Li <leoli@redhat.com>

* go imports

Signed-off-by: Leo Li <leoli@redhat.com>

* Update test/experimental/features/eventtype_autocreation/eventtype.go

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Update test/experimental/eventtype_autocreation_test.go

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Change the name of the file

Signed-off-by: Leo Li <leoli@redhat.com>

* Update the deprecated string

Signed-off-by: Leo Li <leoli@redhat.com>

* Update test/rekt/features/pingsource/features.go

Co-authored-by: Calum Murray <cmurray@redhat.com>

* Manually merge the chanhges from Calum's ticket

Signed-off-by: Leo Li <leoli@redhat.com>

* Manually merge the chanhges from Calum's ticket

Signed-off-by: Leo Li <leoli@redhat.com>

---------

Signed-off-by: Leo Li <leoli@redhat.com>
Co-authored-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Christoph Stäbler <cstabler@redhat.com>
Co-authored-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
* change the deprecated string

* Apply suggestions from code review

Co-authored-by: Calum Murray <cmurray@redhat.com>

---------

Co-authored-by: Calum Murray <cmurray@redhat.com>
…7586)

fix: eventtype autocreate for broker asserts that only one et is created

Signed-off-by: Calum Murray <cmurray@redhat.com>
Generalize description of EventType.

EventType is now compatible with other resources as well, not just
Broker.
@mgencur mgencur force-pushed the backport_eventtype_tests_v1.11 branch from 4079861 to 51c9082 Compare January 29, 2024 06:36
@mgencur
Copy link
Copy Markdown
Author

mgencur commented Jan 29, 2024

/test 411-test-e2e-aws-ocp-411

@mgencur
Copy link
Copy Markdown
Author

mgencur commented Jan 29, 2024

/test 411-test-reconciler-aws-ocp-411

Copy link
Copy Markdown
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

@openshift-ci openshift-ci Bot added the lgtm label Jan 29, 2024
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Jan 29, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mgencur, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@openshift-merge-bot openshift-merge-bot Bot merged commit 20f15dc into openshift-knative:release-v1.11 Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants