-
Notifications
You must be signed in to change notification settings - Fork 185
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
feat: enhance add_filter to support the max matched lines #4303
Conversation
It depends on #4299. Please do not review it yet. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4303 +/- ##
=======================================
Coverage 76.97% 76.98%
=======================================
Files 735 735
Lines 41300 41306 +6
Branches 8770 8772 +2
=======================================
+ Hits 31791 31799 +8
Misses 8441 8441
+ Partials 1068 1066 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
d670896
to
6282e36
Compare
776f4e4
to
81aba8c
Compare
- added a new keyword argument "max_match=MAX_MATCH" to `add_filter`. By declaring the max_match, at most `max_match` number of lines that contain the patterns will be filtered out in the collection. For redundant declarations the maximum `max_match` will be kept as the final scanning number. If no `max_match` is declared when `add_filter`, the filters.MAX_MATCH (=10000) will be take as the default value. - added a new keyword argument "with_matches=False" to the `get_filters`. When "with_matches=True" is specified, the return value of the `get_filters` will be dict in which the max scanning numbers for each filter pattern are included as the dict value. - update the exiting tests - RHINENG-14669 Signed-off-by: Xiangce Liu <[email protected]>
81aba8c
to
02c9dbb
Compare
test me |
dde8128
to
e46cab8
Compare
Signed-off-by: Xiangce Liu <[email protected]>
e46cab8
to
8e03f6a
Compare
I confirmed with perf-scale team, and got that these CPT jenkins failures were caused by Jenkins migration is still WIP, the same test on old jenkins are passed see https://master-jenkins-csb-perf.apps.ocp-c1.prod.psi.redhat.com/job/InsightsInsightsCore_runner/ And this PR also got PASS in the verification on QE end see RHINENG-15025 Merging it. |
- added a new keyword argument "max_match=MAX_MATCH" to `add_filter`. By declaring the max_match, at most `max_match` number of lines that contain the patterns will be filtered out in the collection. For redundant declarations the maximum `max_match` will be kept as the final scanning number. If no `max_match` is declared when `add_filter`, the filters.MAX_MATCH (=10000) will be taken as the default value. - added a new keyword argument "with_matches=False" to the `get_filters`. When "with_matches=True" is specified, the return value of the `get_filters` will be dict in which the max scanning numbers for each filter pattern are included as the dict value. - update the exiting tests - RHINENG-14669 Signed-off-by: Xiangce Liu <[email protected]> (cherry picked from commit 9c64871)
add_filter
.By declaring the max_match, at most
max_match
number of lines thatcontain the patterns will be filtered out in the collection.
For redundant declarations the maximum
max_match
will be kept as thefinal scanning number. If no
max_match
is declared whenadd_filter
,the filters.MAX_MATCH (=10000) will be take as the default value.
get_filters
.When "with_matches=True" is specified, the return value of the
get_filters
will be dict in which the max scanning numbers for eachfilter pattern are included as the dict value.
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
Add your description here