mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core

Home Page:https://mathics.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests failing on openSUSE

susnux opened this issue · comments

I try to build mathics on openSUSE (for packaging), building works fine, but when running the test suite I see this two tests failing:

test/test_importexport.py::test_export - AssertionError: assert False
test/test_nintegrate.py::test_nintegrate[NIntegrate[x^2 y^(-.5), {x,0,1},{y,0,1}]-1.-]

Here is the log of the failing tests: fail-log.txt

I already tried to track down the issue, I tried to set CI env variable (the server building this package only has minimal software installed), but that only skips the first failing test, the second still fails. Is it known to fail, or does it indicate something does not work in my setup?

It does not matter which python version (tried 3.6, 3.7, 3.8 and 3.9) I use nor which version of the dependencies.
Here is a full log of a build on openSUSE Tumbleweed: build-log.txt

Thanks for undertaking to package on SUSE.

I think these are known flaky tests. I'll try to load up SuSE and see if I can fix some of these long-standing problems.

@susnux I spend some time today to try to understand more. The NIntegrate failure is triggered when scipy is not installed. I have opened issue #1501 to track this separately. (Obviously this has nothing to do with failing on openSUSE).

As for the importexport test what is happening is that this test is trying to write something to the filesystem and that can fail. It is hard to tell all the conditions under which this can happen, but I have adjusted that test to skip for some reason it can't read the that it supposedly wrote (but may have not actually done so).

FYI, things are currently in flux but we hope to have a release of Mathics core and Mathics Django out in a couple of weeks or so.

@susnux I think this has been addressed in the 4.0.1 release. Would you please confirm?

@susnux Haven't heard back from you so I am closing. If it is still a problem open an issue in https://github.com/Mathics3/mathics-core/issues