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

CI: pypy3-xdist on Python 3.7 ubuntu #10079

Closed
nicoddemus opened this issue Jun 26, 2022 · 5 comments
Closed

CI: pypy3-xdist on Python 3.7 ubuntu #10079

nicoddemus opened this issue Jun 26, 2022 · 5 comments
Labels
type: infrastructure improvement to development/releases/CI structure

Comments

@nicoddemus
Copy link
Member

Our pypy3-xdist seems to fail on occasion:

tox -e pypy3-xdist
.package create: /home/runner/work/pytest/pytest/.tox/.package
.package installdeps: setuptools>=45.0, setuptools-scm[toml]>=6.2.3, wheel
/home/runner/work/pytest/pytest/.tox/.package/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
Traceback (most recent call last):
  File "/opt/hostedtoolcache/PyPy/3.[7](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:8).13/x64/site-packages/py/_error.py", line 66, in checked_call
    return func(*args, **kwargs)
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/pytest/pytest/.tox/dist/  warnings.warn(msg, warning_class)'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/bin/tox", line [8](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:9), in <module>
    sys.exit(cmdline())
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/session/__init__.py", line 44, in cmdline
    main(args)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/session/__init__.py", line 6[9](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:10), in main
    exit_code = session.runcommand()
  File "/opt/hostedtoolcache/PyPy/3.7.[13](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:14)/x64/site-packages/tox/session/__init__.py", line 197, in runcommand
    return self.subcommand_test()
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/session/__init__.py", line 213, in subcommand_test
    venv.package = self.hook.tox_package(session=self, venv=venv)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/pluggy/_callers.py", line 60, in _multicall
    return outcome.get_result()
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/package/__init__.py", line [16](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:17), in tox_package
    session.package, session.dist = get_package(session)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/package/__init__.py", line 29, in get_package
    package = acquire_package(config, session)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/package/__init__.py", line 52, in acquire_package
    path.copy(sdist_file)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/py/_path/local.py", line 440, in copy
    for x in self.visit(rec=rec):
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/py/_path/common.py", line 383, in visit
    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/py/_path/common.py", line 4[20](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:21), in gen
    entries = path.listdir()
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/py/_path/local.py", line [39](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:40)5, in listdir
    names = py.error.checked_call(os.listdir, self.strpath)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/py/_error.py", line 86, in checked_call
    raise cls("%s%r" % (func.__name__, args))
py.error.ENOENT: [No such file or directory]: listdir('/home/runner/work/pytest/pytest/.tox/dist/  warnings.warn(msg, warning_class)',)

This is running tox (before it reaches pytest), but looking at the traceback tox is just trying to copy the dist file.

Posting it here in case someone has any ideas of what might be causing this.

@nicoddemus nicoddemus added the type: infrastructure improvement to development/releases/CI structure label Jun 26, 2022
@nicoddemus
Copy link
Member Author

Meanwhile I removed pypy3-xdist from the list of required builds to merge.

@RonnyPfannschmidt
Copy link
Member

@nicoddemus it looks like a directory is not being created for whatever reason - maybe doing a ´mkdir -p .tox/dist´ will be able to sort it in the short term until the real culprit is found

@asottile
Copy link
Member

I've got a fix from tox's side tox-dev/tox#2449

@asottile
Copy link
Member

all fixed!

@nicoddemus
Copy link
Member Author

nicoddemus commented Jun 30, 2022

Awesome! I will configure pypy3-xdist to be required again.

Thanks a lot @asottile!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: infrastructure improvement to development/releases/CI structure
Projects
None yet
Development

No branches or pull requests

3 participants