Skip to content

Updated files to account for name changes in bigplanet. #58

Updated files to account for name changes in bigplanet.

Updated files to account for name changes in bigplanet. #58

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Unit Test Results failed Sep 26, 2023 in 0s

4 fail, 1 pass in 11s

5 tests  ±0   1 ✔️ +1   11s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   4  - 1 

Results for commit 84ad95e. ± Comparison against earlier commit 6a7e03d.

Annotations

Check warning on line 0 in tests.Checkpoint.test_checkpoint

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_checkpoint (tests.Checkpoint.test_checkpoint) failed

junit/test-results.xml
Raw output
def test_checkpoint():
        # Get current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        dir = (path / "MP_Checkpoint")
        checkpoint = (path / ".MP_Checkpoint")
    
        # Get the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine",stacklevel=3)
        else:
            # Remove anything from previous tests
            if (dir).exists():
                shutil.rmtree(dir)
            if (checkpoint).exists():
                os.remove(checkpoint)
    
            # Run vspace
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/Checkpoint/test_checkpoint.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.7/subprocess.py:411: in check_output
    **kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/multi-planet/multi-planet/tests/Checkpoint'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f1ba551ee50>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
                raise CalledProcessError(retcode, process.args,
>                                        output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.7/subprocess.py:512: CalledProcessError

Check warning on line 0 in tests.MpStatus.test_mpstatus

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_mpstatus (tests.MpStatus.test_mpstatus) failed

junit/test-results.xml
Raw output
def test_mpstatus():
        # Get current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        dir = (path / "MP_Status")
        checkpoint = (path / ".MP_Status")
    
        # Get the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            # Remove anything from previous tests
            if (dir).exists():
                shutil.rmtree(dir)
            if (checkpoint).exists():
                os.remove(checkpoint)
    
            # Run vspace
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet and mpstatus
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/MpStatus/test_mpstatus.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.7/subprocess.py:411: in check_output
    **kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/multi-planet/multi-planet/tests/MpStatus'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f1ba5516b10>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
                raise CalledProcessError(retcode, process.args,
>                                        output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.7/subprocess.py:512: CalledProcessError

Check warning on line 0 in tests.Parallel.test_parallel

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_parallel (tests.Parallel.test_parallel) failed

junit/test-results.xml
Raw output
def test_parallel():
        # Get current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        dir = (path / "MP_Parallel")
        checkpoint = (path / ".MP_Parallel")
    
        # Get the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine",stacklevel=3)
        else:
            # Remove anything from previous tests
            if (dir).exists():
                shutil.rmtree(dir)
            if (checkpoint).exists():
                os.remove(checkpoint)
    
            # Run vspace
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/Parallel/test_parallel.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.7/subprocess.py:411: in check_output
    **kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/multi-planet/multi-planet/tests/Parallel'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f1ba54f1a90>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
                raise CalledProcessError(retcode, process.args,
>                                        output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.7/subprocess.py:512: CalledProcessError

Check warning on line 0 in tests.Serial.test_serial

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_serial (tests.Serial.test_serial) failed

junit/test-results.xml
Raw output
def test_serial():
        # Get current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        dir = (path / "MP_Serial")
        checkpoint = (path / ".MP_Serial")
    
        # Remove anything from previous tests
        if (dir).exists():
            shutil.rmtree(dir)
        if (checkpoint).exists():
            os.remove(checkpoint)
        # Run vspace
        subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
        # Run multi-planet
>       subprocess.check_output(["multiplanet", "vspace.in", "-c", "1"], cwd=path)

tests/Serial/test_serial.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.7/subprocess.py:411: in check_output
    **kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in', '-c', '1'],)
kwargs = {'cwd': PosixPath('/home/runner/work/multi-planet/multi-planet/tests/Serial'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f1ba550de50>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
                raise CalledProcessError(retcode, process.args,
>                                        output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in', '-c', '1']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.7/subprocess.py:512: CalledProcessError