Skip to content

Conversation

@AR-May
Copy link
Member

@AR-May AR-May commented Sep 6, 2024

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

  • Enhanced a wrapper class CheckWrapper so that we can limit number of messages per check.
  • Added unit test.

Testing

unit tests + manual testing

@JanKrivanek
Copy link
Member

Let's simplify this - as diuscused, the limit should be very easily addable to BuildEventsProcessor - something like:

main...JanKrivanek-patch-8

@AR-May AR-May force-pushed the bc-add-limiting-messages branch from ddc6e86 to 94e1db5 Compare September 11, 2024 08:07
@AR-May AR-May marked this pull request as ready for review September 11, 2024 12:22
@AR-May AR-May self-assigned this Sep 11, 2024
Copy link
Member

@JanKrivanek JanKrivanek left a 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

Copy link
Member

@JanKrivanek JanKrivanek left a 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.

Copy link
Member

@maridematte maridematte left a 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.

@AR-May AR-May enabled auto-merge (squash) September 13, 2024 09:03
@AR-May AR-May merged commit 832a850 into dotnet:main Sep 13, 2024
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.

[Bug] [BuildCheck]: rebuild with the build-in analyzers hangs

3 participants