eventing icon indicating copy to clipboard operation
eventing copied to clipboard

CrossNamespace: e2e test to verify event delivery for broker and trigger

Open yijie-04 opened this issue 1 year ago • 10 comments

Fixes #7927

Proposed Changes

We should have an e2e test to verify that event delivery for broker and trigger when they are in different namespaces.

  • :gift: Add new feature

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

yijie-04 avatar May 22 '24 16:05 yijie-04

/cc @Cali0707 @pierDipi

yijie-04 avatar May 22 '24 16:05 yijie-04

Codecov Report

Attention: Patch coverage is 22.22222% with 35 lines in your changes missing coverage. Please review.

Project coverage is 67.80%. Comparing base (9eed163) to head (e440cb1). Report is 1 commits behind head on main.

Files Patch % Lines
pkg/broker/filter/filter_handler.go 8.82% 30 Missing and 1 partial :warning:
pkg/reconciler/broker/trigger/controller.go 50.00% 1 Missing and 2 partials :warning:
pkg/reconciler/sugar/trigger/controller.go 66.66% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7933      +/-   ##
==========================================
- Coverage   67.85%   67.80%   -0.05%     
==========================================
  Files         367      367              
  Lines       17356    17377      +21     
==========================================
+ Hits        11777    11783       +6     
- Misses       4844     4859      +15     
  Partials      735      735              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 23 '24 18:05 codecov[bot]

/test reconciler-tests

pierDipi avatar May 27 '24 13:05 pierDipi

Hey @yijie-04 if you look at the error in the failing reconciler test, it looks like you might have missed adding the broker to one of the trigger.Install calls

Cali0707 avatar May 28 '24 19:05 Cali0707

/test reconciler-tests

Looks like the last failure was at least partially due to infra problems

Cali0707 avatar Jun 09 '24 14:06 Cali0707

is there any update for this PR?

pierDipi avatar Jun 27 '24 10:06 pierDipi

is there any update for this PR?

I'm a bit stuck on figuring out what's crashing the tests :( Do you have any suggestions on where I should look into?

yijie-04 avatar Jun 27 '24 15:06 yijie-04

/test reconciler-tests

Cali0707 avatar Jul 02 '24 15:07 Cali0707

/test reconciler-tests

Cali0707 avatar Jul 05 '24 12:07 Cali0707

@yijie-04 can you rebase this PR?

Cali0707 avatar Jul 05 '24 12:07 Cali0707

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, yijie-04

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[bot] avatar Jul 05 '24 14:07 knative-prow[bot]

/test reconciler-tests

yijie-04 avatar Jul 05 '24 14:07 yijie-04

/cc @Leo6Leo

Can you TAL? I've added a decent amount of my code to this PR so it would be good to get the final LGTM from someone else

Cali0707 avatar Jul 05 '24 16:07 Cali0707

@Cali0707 I think there are also some tab/space issues for the license

yijie-04 avatar Jul 05 '24 16:07 yijie-04

/retest

Cali0707 avatar Jul 09 '24 16:07 Cali0707

/test reconciler-tests

yijie-04 avatar Jul 09 '24 16:07 yijie-04

/retest

yijie-04 avatar Jul 09 '24 16:07 yijie-04

/lgtm

Leo6Leo avatar Jul 09 '24 17:07 Leo6Leo