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

Test suite failure for commit #277

Closed
snoopycrimecop opened this issue May 4, 2023 · 2 comments · Fixed by #279
Closed

Test suite failure for commit #277

snoopycrimecop opened this issue May 4, 2023 · 2 comments · Fixed by #279
Milestone

Comments

@snoopycrimecop
Copy link
Member

Test suite status: failure see https://github.com/ome/ome_zarr_test_suite/actions/runs/4881080260

@jburel
Copy link
Member

jburel commented May 4, 2023

See #276

@jburel jburel closed this as completed May 4, 2023
@jburel jburel reopened this May 4, 2023
@jburel
Copy link
Member

jburel commented May 4, 2023

source = <test_suite.GeneratedSource object at 0x7f0743000ca0>
suite = <test_suite.Suite object at 0x7f0743000850>

    def test(source: Source, suite: Suite) -> None:
        """
        Primary test matching all sources with all suites.
        """
        source.setup()
        try:
>           suite(source)

/home/runner/work/ome_zarr_test_suite/ome_zarr_test_suite/test_suite.py:192: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/ome_zarr_test_suite/ome_zarr_test_suite/test_suite.py:116: in __call__
    path = source()
/home/runner/work/ome_zarr_test_suite/ome_zarr_test_suite/test_suite.py:56: in __call__
    return subprocess.check_output(self.cmd, cwd=str(self.cwd)).decode().strip()
/usr/share/miniconda/envs/test/lib/python3.9/subprocess.py:420: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['/home/runner/work/ome_zarr_test_suite/ome_zarr_test_suite/scripts/ome_zarr_create'],)
kwargs = {'cwd': '/tmp/pytest-of-runner/pytest-0/test_create_info_0', 'stdout': -1}
process = <Popen: returncode: 1 args: ['/home/runner/work/ome_zarr_test_suite/ome_zarr...>
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 '['/home/runner/work/ome_zarr_test_suite/ome_zarr_test_suite/scripts/ome_zarr_create']' returned non-zero exit status 1.

/usr/share/miniconda/envs/test/lib/python3.9/subprocess.py:5[24](https://github.com/ome/ome_zarr_test_suite/actions/runs/4881080260/jobs/8709537994#step:5:25): CalledProcessError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "/usr/share/miniconda/envs/test/bin/ome_zarr", line 8, in <module>
    sys.exit(main())
TypeError: main() missing 1 required positional argument: 'args'
=========================== short test summary info ============================
FAILED test_suite.py::test[create-info] - subprocess.CalledProcessError: Command '['/home/runner/work/ome_zarr_test_suite/ome_zarr_test_suite/scripts/ome_zarr_create']' returned non-zero exit status 1.
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
======================= 1 failed, 3 deselected in 1.01s ========================
Error: Process completed with exit code 1.

@joshmoore joshmoore added this to the 0.8.0 milestone May 4, 2023
@joshmoore joshmoore linked a pull request May 8, 2023 that will close this issue
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.

3 participants