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 R #80759
Fix R #80759
Conversation
If preferred, we could only apply the patch on platforms where the test fails. |
I believe this test is currently incorrect on aarch64 and expects a warning about loss of precision with much smaller numbers than the platform's long doubles can handle.
I don't know R, but I think it's a bug that on aarch64 that there are no warnings. Asking for The results are "correct" if you check them with an infinite precision integers, but this is misleading as at this point you cannot know whether the value was actually supposed to be |
The calculation is done with long double on aarch64 |
Although that's probably not relevant, since the value has already lost precision before the mod is calculated, so there should be a warning. I do still think that it makes sense to suppress the test until it's fixed upstream. It's arguably no worse than the version before the test was added. |
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.
Thanks for looking into this, especially for taking it upstream!
Motivation for this change
R was broken on aarch64 because
ZHF: #80379
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)