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

msg-filters: added filter for too-many event in csdiff #187

Closed

Conversation

jperezdealgaba
Copy link
Contributor

Resolves: issues.redhat.com/browse/OSH-496

Added filter and test for error[too-many] findings in csdiff in order to apply the filter deterministically even if the location and the number of occurrences vary

This PR will should be in draft until following MR: #185 is merged

@@ -78,6 +78,8 @@ MsgFilter::MsgFilter():
d(new Private)
{
d->addMsgFilter("", "[0-9][0-9]* out of [0-9][0-9]* times");
// ignore error[too-many] events
d->addMsgFilter("", "[0-9]+ occurrences of warning\\[.*\\] exceeded the specified limit [0-9]+");
Copy link
Member

@lzaoral lzaoral Jun 12, 2024

Choose a reason for hiding this comment

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

While this make the diffs in tests the same, this change is wrong. This will combine all error[too-many] defects into a single warning regardless of the actual rate-limited warning!

Please, provide the third addMsgFilter argument with the proper replacement and also extend the new test with such inputs. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants