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

Add option to --produce_repro in superpmi.py script #99723

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

kunalspathak
Copy link
Member

During local development, we now will have to use --produce_repro if we want superpmi.exe to produce *.mc files. This way, we will skip producing the *.mc files in CI.

@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 Mar 13, 2024
@kunalspathak
Copy link
Member Author

@dotnet/jit-contrib

Copy link
Contributor

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

Comment on lines 1509 to 1510
if not coreclr_args.produce_repro:
pass
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't do anything. Do you want pass to be return? Or maybe don't do anything here since it won't find any .mc files.

Copy link
Member Author

Choose a reason for hiding this comment

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

ah yes....return.

Copy link
Member Author

Choose a reason for hiding this comment

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

sure, I think I will just remove this because it won't find any mc files. That's why it worked as expected locally when i was testing.

@@ -2153,6 +2166,11 @@ def replay_with_asm_diffs(self):
"-details", detailed_info_file, # Detailed information about each context
"-r", os.path.join(temp_location, "repro"), # Repro name prefix, create .mc repro files
]
if self.coreclr_args.produce_repro:
flags += [
"-r", os.path.join(temp_location, "repro") # Repro name prefix, create .mc repro files
Copy link
Member

Choose a reason for hiding this comment

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

You need to remove the -r above, or you'll be adding it twice.

@kunalspathak kunalspathak merged commit b54c555 into dotnet:main Mar 14, 2024
107 of 110 checks passed
@kunalspathak kunalspathak deleted the produce_repro branch March 14, 2024 14:26
@BruceForstall
Copy link
Member

@kunalspathak This broke collections:

'CoreclrArguments' object has no attribute 'produce_repro'

e.g., SuperPMI collect libraries crossgen2 linux x64 checked

https://dev.azure.com/dnceng/internal/_build/results?buildId=2406194&view=results

@BruceForstall
Copy link
Member

Fixed here: #99867

@github-actions github-actions bot locked and limited conversation to collaborators Apr 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.

2 participants