-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Test failure for 0.4.6 on s390x #11619
Comments
@plredmond do you want to take a look at this? It probably requires sorting the items or to use an |
@MichaReiser The implementation creates multiple insertion edits that use the same insertion point. AFAIK, their order is deterministic. The implementation has no logic for resolving the order that ruff applies the insertions. I.e. It should be deterministic. Otherwise I guess this ordering could change if there was a change to how multi-edit fixes get applied.
Yikes. I'll uh take a look. |
@plredmond I don't think it's about the edit ordering that is non deterministic but it is the order of the items in |
@MichaReiser I'm not sure what you mean by "the items in |
* Potentially resolves #11619 (nondeterministic hashmap order across different architectures) in F401 by replacing a hashmap with nondeterministic traversal order with an ordered mapping. I'm not sure how to test this with our CI/CD. I don't have an s390x machine at home. Should I try it in Qemu?
@WhyNotHugo Can you check whether this issue is resolved on dcabd04 or in the next release? |
I applied dcabd04 onto v0.4.6 and that failed:
|
I think the issue is that |
[Edit: Nevermind, I see that the test that is failing is the case where we have multiple import-bindings from a single import-statement. The order they're pushed into the import binding depends on the order they come from I'll try sorting in |
@WhyNotHugo could you try out 15977ed? |
Sort the binding IDs before passing them to the add-to-`__all__` function to address #11619.
I'll mark this as closed. @WhyNotHugo feel free to reopen if you keep running into this issue with 0.4.8. Thanks @plredmond for looking into and fixing the issue. |
Thanks micha
… On Jun 4, 2024, at 04:50, Micha Reiser ***@***.***> wrote:
I'll mark this as closed. @WhyNotHugo feel free to reopen if you keep running into this issue with 0.4.8. Thanks @plredmond for looking into and fixing the issue.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
0.4.7 builds okay on s390x. Thanks! |
The test
rules::pyflakes::tests::preview_rules::rule_unusedimport_path_new_f401_28_all_multiple_init_py_expects
is failing on s390x:(full CI run log here: https://gitlab.alpinelinux.org/WhyNotHugo/aports/-/jobs/1403448)
I think that the order of the items here is non-deterministic somehow and varies depending on CPU architecture.
The text was updated successfully, but these errors were encountered: