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

failing numpy test for some SciPy-bundle easyconfigs #11789

Closed
boegel opened this issue Nov 30, 2020 · 2 comments · Fixed by #11792
Closed

failing numpy test for some SciPy-bundle easyconfigs #11789

boegel opened this issue Nov 30, 2020 · 2 comments · Fixed by #11792
Milestone

Comments

@boegel
Copy link
Member

boegel commented Nov 30, 2020

With the enhanced numpy easyblock that doesn't ignore failing tests anymore (see easybuilders/easybuild-easyblocks#2238), some SciPy-bundle easyconfigs got broken.

For example, there's one failing numpy test inSciPy-bundle-2020.11-intel-2020b:

============================================= FAILURES ==============================================
_______________________________ TestSystemInfoReading.test_overrides ________________________________

self = <numpy.distutils.tests.test_system_info.TestSystemInfoReading object at 0x2af27b0e0670>

    def test_overrides(self):
        previousDir = os.getcwd()
        cfg = os.path.join(self._dir1, 'site.cfg')
        shutil.copy(self._sitecfg, cfg)
        try:
            os.chdir(self._dir1)
            # Check that the '[ALL]' section does not override
            # missing values from other sections
            info = mkl_info()
            lib_dirs = info.cp['ALL']['library_dirs'].split(os.pathsep)
            assert info.get_lib_dirs() != lib_dirs

            # But if we copy the values to a '[mkl]' section the value
            # is correct
            with open(cfg, 'r') as fid:
                mkl = fid.read().replace('ALL', 'mkl')
            with open(cfg, 'w') as fid:
                fid.write(mkl)
            info = mkl_info()
>           assert info.get_lib_dirs() == lib_dirs
E           AssertionError: assert ['/user/gent/.../tmponjnra2k'] == ['/tmp/eb-co_.../tmponjnra2k']
E             At index 0 diff: '/software/imkl/2020.4.304-iimpi-2020b/mkl' != '/tmp/eb-co_qliaj/eb-35grni_i/tmpgpmlnhpb'
E             Left contains 3 more items, first extra item: '/software/imkl/2020.4.304-iimpi-2020b/mkl/lib'
E             Use -v to get the full diff

cfg        = '/tmp/eb-co_qliaj/eb-35grni_i/tmpgpmlnhpb/site.cfg'
fid        = <_io.TextIOWrapper name='/tmp/eb-co_qliaj/eb-35grni_i/tmpgpmlnhpb/site.cfg' mode='w' encoding='UTF-8'>
info       = <numpy.distutils.system_info.mkl_info object at 0x2af27b0f24f0>
lib_dirs   = ['/tmp/eb-co_qliaj/eb-35grni_i/tmpgpmlnhpb', '/tmp/eb-co_qliaj/eb-35grni_i/tmponjnra2k']
mkl        = '\n[mkl]\nlibrary_dirs = /tmp/eb-co_qliaj/eb-35grni_i/tmpgpmlnhpb:/tmp/eb-co_qliaj/eb-35grni_i/tmponjnra2k\nlibraries ...= /tmp/eb-co_qliaj/eb-35grni_i/tmpgpmlnhpb/libfoo.so\nlibraries = /tmp/eb-co_qliaj/eb-35grni_i/tmponjnra2k/libbar.so\n'
previousDir = '/tmp/easybuild_build/SciPybundle/2020.11/intel-2020b/numpy'
self       = <numpy.distutils.tests.test_system_info.TestSystemInfoReading object at 0x2af27b0e0670>

/tmp/eb-co_qliaj/eb-35grni_i/tmpwt7tzvkh/lib/python3.8/site-packages/numpy/distutils/tests/test_system_info.py:276: AssertionError
@boegel boegel added this to the 4.3.2 (next release) milestone Nov 30, 2020
@boegel
Copy link
Member Author

boegel commented Nov 30, 2020

Looks related to numpy/numpy#16769 .

@mboisson Do you have any more info on this, since you pitched in there?

@mboisson
Copy link
Contributor

Mmm, not really, we built the wheel manually and ignored the failing test.

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