Skip to content

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

{
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