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

Fix prepare_report.py ignoring compiler exit code #14731

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

cameel
Copy link
Member

@cameel cameel commented Dec 13, 2023

Closes #14729.

After taking a closer look at the bytecode comparison failures in newAnalysis, turns out that it's not #13925 that's breaking the bytecode comparison. There's actually a small bug in the report script that went undiscovered until now.

The script was not taking into account the exit code from the compiler (which is irrelevant for Standard JSON interface but not for CLI). It went unnoticed because it does not make any difference under normal circumstances. If the compiler does not produce any outputs it's interpreted as an error anyway. Even with ICEs like UnimplementedFeatureError as long as the ICE happened before the compilation ended, it worked as expected.

The new element in newAnalysis is that after #14659 we get an ICE only at the point where we request metadata. At this point the bytecode has already been successfully compiled and printed to the output so it looks to the script like a successful compilation missing metadata. The failure can only be detected by looking at the exit-code or trying to parse out the ICE from the CLI output (which the script intentionally does not do).

@cameel cameel self-assigned this Dec 13, 2023
@cameel cameel requested review from r0qs and nikola-matic December 13, 2023 15:55
@cameel cameel force-pushed the fix-bytecode-report-ignoring-cli-exit-code branch from f4fbe15 to 501c415 Compare December 13, 2023 15:58
@cameel cameel force-pushed the fix-bytecode-report-ignoring-cli-exit-code branch from 501c415 to 646b342 Compare December 13, 2023 16:05
@cameel
Copy link
Member Author

cameel commented Dec 13, 2023

I just tried this with a newAnalysis rebased on top of it and the fix finally makes bytecode comparison pass.

@cameel cameel merged commit 1b5c6f6 into develop Dec 13, 2023
1 check passed
@cameel cameel deleted the fix-bytecode-report-ignoring-cli-exit-code branch December 13, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix or work around broken tests in new analysis
2 participants