-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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 Via-IR bytecode divergence when compiling multiple files that are already included via imports #14562
Conversation
f840539
to
507160c
Compare
Ah, ok - you said that bytecode comparison was failing - I thought you only meant in the new "randomized AST IDs" version, but it looks like it's also failing just due to this change? |
It's probably the fact that |
This will just default to |
Ordering is well defined, but it does not help when addresses are different on each run :) |
Ah, right as always @cameel :) |
Yes, I thought that it should not interfere in code generation, but I guess I was wrong. The function |
6e99d76
to
153459f
Compare
153459f
to
6315b07
Compare
It would be best if we could add the repro from the issue as a test. How about adding a custom CLI test in the same vein as e.g. BTW, note that these custom CLI test can be written directly in Python. The current ones are all Bash simply because they used to be a part of |
Indeed. I did it in another branch to ease the review process. Please let me know if that is what you have in mind #14565. |
6315b07
to
071bb35
Compare
f2e2232
to
fc49295
Compare
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.
Needs some small tweaks, but overall looks like a good solution.
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.
In terms of correctness this looks fine.
I added some small tweaks. If you're fine with them, please squash and we can merge it.
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
ca75a35
to
e3b36f7
Compare
Fixes #14541.