-
Notifications
You must be signed in to change notification settings - Fork 5k
Add timeout to Fuzzlyn reductions #115189
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
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
/azp run Fuzzlyn |
Azure Pipelines successfully started running 1 pipeline(s). |
cc @dotnet/jit-contrib PTAL @BruceForstall |
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.
Pull Request Overview
This pull request adds a timeout parameter to the Fuzzlyn reduction process in an effort to prevent excessively long runs.
- Updated run_command in jitutil.py to support an optional timeout with a threading.Timer
- Modified fuzzlyn_run.py to pass a 25-minute timeout when reducing examples
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
src/coreclr/scripts/jitutil.py | Added _timeout parameter and timer logic to terminate long-running commands |
src/coreclr/scripts/fuzzlyn_run.py | Updated run_command calls to include the new timeout parameter and improved messaging when reduction fails |
decode_and_print(command_stderr) | ||
timer = None | ||
if _timeout is not None: | ||
def try_kill(): |
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.
Consider catching specific exceptions instead of using a bare 'except:' in the try_kill function to avoid masking potential errors.
Copilot uses AI. Check for mistakes.
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.
Nice!
/ba-g Build analysis is stuck and this is a change in a pipeline script |
Add a 25 minute timeout for Fuzzlyn reduction in an attempt to fix #115171