-
-
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 fails on s390x #218
Comments
@misery Okay, my bet is that it has something to the generation of a random file that was used for the tests. I generated a random file with seed 0 on my computer, which are the hashes I precomputed. Perhaps generating a random file from seed 0 is not the same for s390x? In any case, I changed the tests to work on a reproducible file filled with the same character. Can you try it now? |
Thanks for fast reply. :-) But it's still broken: https://gitlab.alpinelinux.org/misery/aports/-/jobs/118672 By the way... armv7 crashes now.
Well, I don't know s390x. :-) I just saw the failure in Alpines CI. |
Looks like mips64 is also broken. Is it a flaky test or is the test environment broken? |
My guess here would be that those failing tests are caused by endianness problems, as the common denominator for the affected architectures (s390x, mips64) is that they use big endian byte ordering compared to the much more common little endian. Maybe imohash is not endian-agnostic? |
It is still failing with 8.6.12 on s390x and mips/mips64
|
@theStack @misery Given this issue around the murmur3 hash used within imohash, I think that's a reasonable assumption. I'd been considering swapping the murmur3 implementation to something like this one from twmb which claims stable behavior across endianess. This is a good nudge. |
I just pushed |
This may help with big-ending hashing issues (e.g. schollz#218). It is also more memory efficient if full file hashing is used with imohash.
@kalafut Thanks, it seems to work.... https://gitlab.alpinelinux.org/misery/aports/-/jobs/377230 |
Describe the bug
Tried to build a package for Alpine. It works without problems on my machine but it fails on s390x CI.
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/7981
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No failing tests. ;-)
Version
8.0.11
Additional context
https://gitlab.alpinelinux.org/misery/aports/-/jobs/118553
The text was updated successfully, but these errors were encountered: