GithubHelp home page GithubHelp logo

Unit test failures on amd64 about pysph HOT 3 CLOSED

pypr avatar pypr commented on July 28, 2024
Unit test failures on amd64

from pysph.

Comments (3)

prabhuramachandran avatar prabhuramachandran commented on July 28, 2024

1.0a6 is very old, I believe these are long fixed in master. If possible could you try with master? We will push a new release in a week or two and at that point I think these should be gone.

from pysph.

avalentino avatar avalentino commented on July 28, 2024

Dear @prabhuramachandran thank you for the feedback and sorry for the late reply.
I have update the PySPH version to 879a303 and now it seems that there is only one test that fails:

$ python3 -m pytest pysph -v

...

============================================================= FAILURES =============================================================
_____________________________________________ TestOpenMPExamples.test_ldcavity_example _____________________________________________

self = <pysph.parallel.tests.test_openmp.TestOpenMPExamples testMethod=test_ldcavity_example>

    def test_ldcavity_example(self):
        dt=1e-4; tf=200*dt
        serial_kwargs = dict(timestep=dt, tf=tf, pfreq=500)
        extra_parallel_kwargs = dict(openmp=None)
        # Note that we set nprocs=1 here since we do not want
        # to run this with mpirun.
        self.run_example(
            'cavity.py', nprocs=1, atol=1e-14,
            serial_kwargs=serial_kwargs,
>           extra_parallel_kwargs=extra_parallel_kwargs
        )

pysph/parallel/tests/test_openmp.py:55: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pysph/parallel/tests/example_test_case.py:113: in run_example
    timeout=timeout, path=MY_DIR
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

filename = 'cavity.py', args = ['--timestep=0.0001', '--tf=0.02', '--pfreq=500', '--fname=cavity', '--directory=/tmp/tmpma72sw6n']
nprocs = 1, timeout = 300, path = '/home/antonio/debian/git/pysph/pysph/parallel/tests'

    def run(filename, args=None, nprocs=2, timeout=30.0, path=None):
        """Run a python script with MPI or in serial (if nprocs=1).  Kill process
        if it takes longer than the specified timeout.
    
        Parameters:
        -----------
        filename - filename of python script to run under mpi.
        args - List of arguments to pass to script.
        nprocs - number of processes to run (1 => serial non-mpi run).
        timeout - time in seconds to wait for the script to finish running,
            else raise a RuntimeError exception.
        path - the path under which the script is located
            Defaults to the location of this file (__file__), not curdir.
    
        """
        if args is None:
            args = []
        file_path = abspath(join(path, filename))
        cmd = [sys.executable, file_path] + args
        if nprocs > 1:
            cmd = ['mpiexec', '-n', str(nprocs)] + cmd
    
        print('running test:', cmd)
    
        process = Popen(cmd, stdout=PIPE, stderr=PIPE)
        timer = Timer(timeout, kill_process, [process])
        timer.start()
        out, err = process.communicate()
        timer.cancel()
        retcode = process.returncode
        if retcode:
            msg = 'test ' + filename + ' failed with returncode ' + str(retcode)
            print(out.decode('utf-8'))
            print(err.decode('utf-8'))
            print('#'*80)
            print(msg)
            print('#'*80)
>           raise RuntimeError(msg)
E           RuntimeError: test cavity.py failed with returncode 1

pysph/tools/run_parallel_script.py:54: RuntimeError
------------------------------------------------------- Captured stdout call -------------------------------------------------------
running test: ['/usr/bin/python3', '/home/antonio/debian/git/pysph/pysph/parallel/tests/cavity.py', '--timestep=0.0001', '--tf=0.02', '--pfreq=500', '--fname=cavity', '--directory=/tmp/tmpma72sw6n']

Traceback (most recent call last):
  File "/home/antonio/debian/git/pysph/pysph/parallel/tests/cavity.py", line 3, in <module>
    from pysph.examples.cavity import LidDrivenCavity
ModuleNotFoundError: No module named 'pysph'

################################################################################
test cavity.py failed with returncode 1
################################################################################

It seems to be something not too critical.

I still haven't had the chance to to test other platforms (including i386) on which tests was failing with previous version [1].

[1] https://buildd.debian.org/status/package.php?p=pysph

from pysph.

avalentino avatar avalentino commented on July 28, 2024

After recent updates on dependencies all seems to work in Debian Sid on amd64 platforms.
Closing.

from pysph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.