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

[MachineVerifier] Report errors from one thread at a time #111605

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ellishg
Copy link
Contributor

@ellishg ellishg commented Oct 8, 2024

Create the ReportedErrors class to track the number of reported errors during verification. The class will block reporting errors if some other thread is currently reporting an error.

I've encountered a case where there were many different verifications reporting errors at the same time on different threads. This ensures that we don't start printing the error from one case until we are completely done printing errors from other cases. Most of the time AbortOnError = true so we usually abort after reporting the first error.

Depends on #111602.

@ellishg ellishg marked this pull request as draft October 8, 2024 23:42
@ellishg ellishg marked this pull request as ready for review October 9, 2024 00:01
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.

1 participant