Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 4 commits into from
Apr 30, 2025

Conversation

jakobbotsch
Copy link
Member

@jakobbotsch jakobbotsch commented Apr 30, 2025

Add a 25 minute timeout for Fuzzlyn reduction in an attempt to fix #115171

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Apr 30, 2025
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@jakobbotsch
Copy link
Member Author

/azp run Fuzzlyn

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jakobbotsch
Copy link
Member Author

@jakobbotsch jakobbotsch marked this pull request as ready for review April 30, 2025 14:22
@Copilot Copilot AI review requested due to automatic review settings April 30, 2025 14:22
@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib PTAL @BruceForstall

Copy link
Contributor

@Copilot Copilot AI left a 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():
Copy link
Preview

Copilot AI Apr 30, 2025

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.

Copy link
Member

@BruceForstall BruceForstall left a comment

Choose a reason for hiding this comment

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

Nice!

@jakobbotsch
Copy link
Member Author

/ba-g Build analysis is stuck and this is a change in a pipeline script

@jakobbotsch jakobbotsch merged commit 2677261 into dotnet:main Apr 30, 2025
92 of 94 checks passed
@jakobbotsch jakobbotsch deleted the fuzzlyn-reduce-timeout branch May 1, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fuzzlyn windows-x86 pipeline often times out some partitions
2 participants