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

One test failing with 4.0.0: Arrays are not almost equal to 5 decimals #1126

Closed
sanjayankur31 opened this issue May 29, 2024 · 7 comments · Fixed by #1128
Closed

One test failing with 4.0.0: Arrays are not almost equal to 5 decimals #1126

sanjayankur31 opened this issue May 29, 2024 · 7 comments · Fixed by #1128

Comments

@sanjayankur31
Copy link

While updating the package to 4.0.0 in Fedora rawhide (the dev branch), we see one test failing:

>       assert_almost_equal(s.volume, 3160.274957542371, decimal=5)
tests/core/test_soma.py:263: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
args = (3160.2749000561025, 3160.274957542371), kwds = {'decimal': 5}
    @wraps(func)
    def inner(*args, **kwds):
        with self._recreate_cm():
>           return func(*args, **kwds)
E           AssertionError: 
E           Arrays are not almost equal to 5 decimals
E            ACTUAL: 3160.2749000561025
E            DESIRED: 3160.274957542371
/usr/lib64/python3.12/contextlib.py:81: AssertionError

The values are close, but not as close as they should be. How should we handle this please? Complete log is here:

fedora-rawhide-neuroml-build-log.txt

@eleftherioszisis
Copy link
Collaborator

I ran the tests with VirtualBox and the latest Fedora rawhide ISO (first iso in the list) I found:
https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Workstation/x86_64/iso/
And they seem to be passing.

Is there a particular architecture to take into account to repro this difference in the value?

I could relax the test accuracy, however it would be interesting to know why the test fails.

@sanjayankur31
Copy link
Author

Here are two build tasks:

https://koji.fedoraproject.org/koji/taskinfo?taskID=118149185 -> s390x
https://koji.fedoraproject.org/koji/taskinfo?taskID=118149298 -> x86_64

You can see the hardware info in the hw_info.log file.

Could you run a dnf update in your rawhide box, just in case any packages have been updated that may introduce the error? All the "dependencies" pulled in during the build will also be listed in the root.log file.

@eleftherioszisis
Copy link
Collaborator

@sanjayankur31 would it be possible to test if #1128 fixes the error?

@sanjayankur31
Copy link
Author

Sure, I'll test it out now and report back.

@sanjayankur31
Copy link
Author

That does seem to fix it now:

https://koji.fedoraproject.org/koji/taskinfo?taskID=118282452

This was on ppc64le, I'll force it to run on all arches to confirm too.

@sanjayankur31
Copy link
Author

@eleftherioszisis
Copy link
Collaborator

eleftherioszisis commented Jun 11, 2024

v4.0.2 has been released with the fix for this issue.
Please feel free to open a new issue if you encounter something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants