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

New Event Filtering: Add rekt test to verify that empty filters does not override filter #7534

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

pawarpranav83
Copy link
Contributor

@pawarpranav83 pawarpranav83 commented Jan 6, 2024

Fixes #7298

Proposed Changes

  • Added one feature function for subscriptionAPI filters overriding filter attribute logic
  • Added one feature function for filter attributes working when subscriptionAPI filters field is empty.

Copy link

linux-foundation-easycla bot commented Jan 6, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: pawarpranav83 / name: Pranav (fdf30ec, c8badaf)
  • ✅ login: Cali0707 / name: Calum Murray (c8badaf)

@knative-prow knative-prow bot added the area/test-and-release Test infrastructure, tests or release label Jan 6, 2024
Copy link

knative-prow bot commented Jan 6, 2024

Welcome @pawarpranav83! It looks like this is your first PR to knative/eventing 🎉

@knative-prow knative-prow bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 6, 2024
Copy link

knative-prow bot commented Jan 6, 2024

Hi @pawarpranav83. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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 knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 6, 2024
@pawarpranav83
Copy link
Contributor Author

pawarpranav83 commented Jan 6, 2024

Hey @Cali0707, I also added a feature function for the multiple filters for one trigger (it was assigned three months ago, I hope it's alright to make changes for that issue).
Also, should we add a multiple filters unit test in filter_handler_test.go?

@Cali0707
Copy link
Member

Cali0707 commented Jan 8, 2024

Hey @Cali0707, I also added a feature function for the multiple filters for one trigger (it was assigned three months ago, I hope it's alright to make changes for that issue).

Yeah feel free to work on that if no progress has been made there for a while, just leave a comment on the issue saying you're working on it now.

I would prefer if the changes for the two issues were in two separate PRs, if possible.

@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 8, 2024
@pawarpranav83
Copy link
Contributor Author

Any additional changes?

@Cali0707 Cali0707 requested review from Cali0707 and Leo6Leo and removed request for mgencur and evankanderson January 8, 2024 20:46
@Cali0707
Copy link
Member

Cali0707 commented Jan 8, 2024

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 8, 2024
Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (57901b9) 75.55% compared to head (c8badaf) 74.56%.
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7534      +/-   ##
==========================================
- Coverage   75.55%   74.56%   -1.00%     
==========================================
  Files         261      262       +1     
  Lines       14668    14951     +283     
==========================================
+ Hits        11083    11148      +65     
- Misses       3006     3215     +209     
- Partials      579      588       +9     

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

@pawarpranav83
Copy link
Contributor Author

pawarpranav83 commented Jan 9, 2024

Only FiltersOverrideAttributeFilterFeature is covered in the 1.29 rekt test, and it timed out before FilterAttributeWithEmptyFiltersFeature could even start but the second feature was covered in the 1.27 rekt test, and the first one wasn't :), what do we do?

Can't we extend the time-out period? cause in other PRs these tests are failing too.

@Cali0707
Copy link
Member

Cali0707 commented Jan 9, 2024

They all run in reconciler-tests_eventing_main, so it isn't too much of a concern if one of the GH Actions timed out. We can retest the prow job to make sure everything is working with these changes.

/retest-required

@pawarpranav83
Copy link
Contributor Author

pawarpranav83 commented Jan 9, 2024

Can you provide tide test approval if there aren't any additional changes to be done? @Cali0707

@knative-prow knative-prow bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 9, 2024
@pawarpranav83
Copy link
Contributor Author

pawarpranav83 commented Jan 9, 2024

Accidentally closed the PR while updating another branch.

/reopen

Copy link

knative-prow bot commented Jan 9, 2024

@pawarpranav83: Failed to re-open PR: state cannot be changed. There are no new commits on the pawarpranav83:main branch.

In response to this:

/reopen

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.

@pawarpranav83 pawarpranav83 reopened this Jan 9, 2024
@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 9, 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.

Just a few nits on this, otherwise it is generally looking good so far

test/rekt/features/new_trigger_filters/feature.go Outdated Show resolved Hide resolved
test/rekt/features/new_trigger_filters/feature.go Outdated Show resolved Hide resolved
Co-authored-by: Calum Murray <[email protected]>
@pawarpranav83
Copy link
Contributor Author

/retest-required

@pawarpranav83
Copy link
Contributor Author

/test reconciler-tests

@pawarpranav83
Copy link
Contributor Author

@Leo6Leo can u approve the changes as well if there aren't any more changes to be done?

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
/approve

Thanks @pawarpranav83, this is great!

FYI, if you want another review from someone after they gave an initial review and you've made some changes, the easiest way is to /cc them - our bot will pick up on that and re-request their review. For more info on how this works, feel free to check out https://knative.dev/blog/articles/getting-started-blog-p2/#interacting-with-prow

@knative-prow knative-prow bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 11, 2024
Copy link
Member

@Leo6Leo Leo6Leo left a comment

Choose a reason for hiding this comment

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

Hey @pawarpranav83, thanks for the great work! this is great to me as well. LGTM

Copy link

knative-prow bot commented Jan 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, Leo6Leo, pawarpranav83

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

@Cali0707
Copy link
Member

/retest-required

2 similar comments
@Cali0707
Copy link
Member

/retest-required

@pawarpranav83
Copy link
Contributor Author

/retest-required

@knative-prow knative-prow bot merged commit c7520cc into knative:main Jan 12, 2024
35 of 41 checks passed
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

New Event Filtering: Add rekt test to verify that empty filters does not override filter
3 participants