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-filter: abstract out numbers from error[too-many] findings #188

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

jperezdealgaba
Copy link
Contributor

@jperezdealgaba jperezdealgaba commented Jun 12, 2024

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

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

src/lib/msg-filter.cc Outdated Show resolved Hide resolved
@jperezdealgaba jperezdealgaba force-pushed the filter-many-events branch 3 times, most recently from 55f3ae2 to e07e367 Compare June 12, 2024 11:50
Copy link
Member

@kdudka kdudka left a comment

Choose a reason for hiding this comment

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

@jperezdealgaba Please update the regression test such that it covers the code change. As it is now, if I revert the code change, the test is still passing.

@jperezdealgaba
Copy link
Contributor Author

@kdudka I can not reply to your comment directly. Test cases added to reflect the new changes.

@kdudka kdudka force-pushed the filter-many-events branch 2 times, most recently from 4c6aa94 to d04bfcb Compare June 14, 2024 13:59
@kdudka kdudka changed the title msg-filters: added filter for too-many event in csdiff msg-filter: abstract out numbers from error[too-many] findings Jun 14, 2024
Copy link
Member

@kdudka kdudka left a comment

Choose a reason for hiding this comment

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

Thanks for the update! I have anchored the regex to match only full strings and updated the commit message to describe what the change actually does.

Abstract out the number of occurrences and configured rate limit
in `error[too-many]` findings.

Resolves: https://issues.redhat.com/browse/OSH-496
Closes: csutils#188
@kdudka kdudka merged commit 3c764eb into csutils:main Jun 14, 2024
6 of 28 checks passed
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