-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[BuildCheck] Limit number of emitted messages per rule. #10625
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
Conversation
42c30e6 to
467856d
Compare
467856d to
ddc6e86
Compare
|
Let's simplify this - as diuscused, the limit should be very easily addable to |
ddc6e86 to
94e1db5
Compare
JanKrivanek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
Thanks!
The only thing holding me off the signoff is calling the dismounting
src/Build/BuildCheck/Infrastructure/BuildCheckManagerProvider.cs
Outdated
Show resolved
Hide resolved
JanKrivanek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
I have couple small comments.
The one thing that I'd realy want to see changed before merging - is the dismounting of the check right after the last report that fits into the count.
src/Build/BuildCheck/Infrastructure/BuildCheckCentralContext.cs
Outdated
Show resolved
Hide resolved
maridematte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add a comment somewhere linking to the issue? Just so in the future we don't forget and have a reference when removing the temp code.
Temporary fixes #10414
Context
If BuildCheck emits a lot of messages, it is possible that the build will hang. Since the real reason of the hang is yet unclear, we have decided to limit number of messages emitted by build-in checks.
Changes Made
CheckWrapperso that we can limit number of messages per check.Testing
unit tests + manual testing