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

Assert EventTypes references for IMC test #7899

Merged
merged 4 commits into from
May 10, 2024

Conversation

mgencur
Copy link
Contributor

@mgencur mgencur commented May 7, 2024

This is a follow-up to #7888
All of the tests should be asserting the eventtype's reference.

Proposed Changes

  • Assert eventtype reference for InMemoryChannel
  • Remove TestContainerSourceEventTypeAutoCreate as automatic EventType creation for ContainerSource is not supported

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note


Docs

@knative-prow knative-prow bot added the area/test-and-release Test infrastructure, tests or release label May 7, 2024
@knative-prow knative-prow bot requested review from creydr and evankanderson May 7, 2024 09:27
@knative-prow knative-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 7, 2024
The id is different for each event when using container source. Use just
the type, like other tests for container source.
Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.18%. Comparing base (7e1c082) to head (2da0d09).
Report is 37 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7899      +/-   ##
==========================================
- Coverage   69.22%   69.18%   -0.04%     
==========================================
  Files         339      341       +2     
  Lines       19494    15816    -3678     
==========================================
- Hits        13494    10943    -2551     
+ Misses       5337     4200    -1137     
- Partials      663      673      +10     

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

@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 7, 2024
@mgencur
Copy link
Contributor Author

mgencur commented May 7, 2024

/hold

For experimental tests to pass

@knative-prow knative-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 7, 2024
@mgencur
Copy link
Contributor Author

mgencur commented May 7, 2024

Looks like after fixing the test for ContainerSource, it shows that no EventTypes are automatically created. Checking on Slack to see if this is expected.

@mgencur mgencur changed the title Assert EventTypes references for IMC and ContainerSource test Assert EventTypes references for IMC test May 7, 2024
@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 7, 2024
Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

/lgtm

Feel free to unhold if you want to @mgencur , looks like the experimental tests passed on the most recent run

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 7, 2024
Copy link

knative-prow bot commented May 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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 May 7, 2024
@pierDipi
Copy link
Member

pierDipi commented May 8, 2024

/test reconciler-tests

2 similar comments
@Cali0707
Copy link
Member

Cali0707 commented May 8, 2024

/test reconciler-tests

@mgencur
Copy link
Contributor Author

mgencur commented May 9, 2024

/test reconciler-tests

@mgencur
Copy link
Contributor Author

mgencur commented May 9, 2024

/unhold

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 9, 2024
@Cali0707
Copy link
Member

Cali0707 commented May 9, 2024

/retest-required

1 similar comment
@creydr
Copy link
Member

creydr commented May 10, 2024

/retest-required

@knative-prow knative-prow bot merged commit 599c548 into knative:main May 10, 2024
35 of 38 checks passed
maschmid pushed a commit to maschmid/eventing that referenced this pull request Sep 17, 2024
* Assert EventTypes references for IMC and ContainerSource test

* Do not use ID as the attribute to match the event

The id is different for each event when using container source. Use just
the type, like other tests for container source.

* Fix type

* Remove test for ContainerSource EventType creation

It is not supported.
pierDipi pushed a commit to openshift-knative/eventing that referenced this pull request Sep 17, 2024
* Assert EventTypes references for IMC and ContainerSource test

* Do not use ID as the attribute to match the event

The id is different for each event when using container source. Use just
the type, like other tests for container source.

* Fix type

* Remove test for ContainerSource EventType creation

It is not supported.

Co-authored-by: Martin Gencur <[email protected]>
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants