[pre-commit.ci] pre-commit autoupdate #32
Cirrus CI / test (Linux - 3.8)
failed
Oct 28, 2024 in 1m 24s
Task Summary
Instruction test failed in 01:03
Details
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks
✅ 00:01 clone
✅ 00:06 tools_install
✅ 00:01 prepare
✅ 00:01 clean_workspace
✅ 00:08 build
❌ 01:03 test
installer.install(creator.interpreter.version_info)
File "/tmp/cirrus-ci-build/.tox/default/lib/python3.8/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 37, in install
self._sync(filename, into)
File "/tmp/cirrus-ci-build/.tox/default/lib/python3.8/site-packages/virtualenv/seed/embed/via_app_data/pip_install/copy.py", line 13, in _sync
copy(src, dst)
File "/tmp/cirrus-ci-build/.tox/default/lib/python3.8/site-packages/virtualenv/util/path/_sync.py", line 41, in copy
method(str(src), str(dest))
File "/tmp/cirrus-ci-build/.tox/default/lib/python3.8/site-packages/virtualenv/util/path/_sync.py", line 52, in copytree
shutil.copy(src_f, dest_f)
File "/usr/local/lib/python3.8/shutil.py", line 419, in copy
copymode(src, dst, follow_symlinks=follow_symlinks)
File "/usr/local/lib/python3.8/shutil.py", line 308, in copymode
chmod_func(dst, stat.S_IMODE(st.st_mode))
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/cirrus-ci-build/.tox/doctests/lib/python3.8/site-packages/pip-24.2.dist-info/./RECORD'
docs: OK (17.08=setup[14.97]+cmd[2.11] seconds)
doctests: FAIL code 2 (0.03 seconds)
evaluation failed :( (17.44 seconds)
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "/tmp/cirrus-ci-build/tests/helpers.py", line 95, in run
return check_output(args, **opts)
File "/usr/local/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/local/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/cirrus-ci-build/.tox/default/bin/python', '-m', 'tox', '-e', 'docs,doctests']' returned non-zero exit status 255.
----------- generated xml file: /tmp/cirrus-ci-build/junit-test.xml ------------
---------- coverage: platform linux, python 3.8.20-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing
-----------------------------------------------------------------------------------------
src/pyscaffoldext/cookiecutter/__init__.py 6 0 0 0 100%
src/pyscaffoldext/cookiecutter/extension.py 44 0 8 0 100%
-----------------------------------------------------------------------------------------
TOTAL 50 0 8 0 100%
============================= slowest 10 durations =============================
42.27s call tests/test_custom_extension.py::test_generated_extension
32.29s call tests/test_common.py::test_namespace_cookiecutter
2.95s call tests/test_cookiecutter.py::test_create_project_with_cookiecutter
2.92s call tests/test_cookiecutter.py::test_cli_with_cookiecutter
2.12s call tests/test_custom_extension.py::test_add_custom_extension
1.92s call tests/test_parameters.py::test_generate_with_params
0.98s call tests/test_cookiecutter.py::test_create_project_cookiecutter_and_update
0.83s call tests/test_cookiecutter.py::test_create_project_with_cookiecutter_but_no_template
0.48s call tests/test_cookiecutter.py::test_cli_with_cookiecutter_and_update
0.41s call tests/test_cookiecutter.py::test_create_project_without_cookiecutter
�[36m�[1m=========================== short test summary info ============================�[0m
�[31mFAILED�[0m tests/test_common.py::�[1mtest_namespace_cookiecutter�[0m - subprocess.CalledProcessError: Command '['/tmp/cirrus-ci-build/.tox/default...
�[31m======================== �[31m�[1m1 failed�[0m, �[32m16 passed�[0m�[31m in 45.31s�[0m�[31m =========================�[0m
default: exit 1 (45.82 seconds) /tmp/cirrus-ci-build> pytest --capture=tee-sys -n 5 -rfEx --durations 10 --color yes --junit-xml junit-test.xml pid=449
default: FAIL code 1 (63.46=setup[17.64]+cmd[45.82] seconds)
evaluation failed :( (63.62 seconds)
��������
Annotations
Check failure on line 53 in tests/test_common.py
cirrus-ci / test (Linux - 3.8)
tests/test_common.py#L53
tests.test_common.test_namespace_cookiecutter
Raw output
tmpfolder = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_namespace_cookiecutter0/tmpxupdnraz')
@pytest.mark.slow
@pytest.mark.system
def test_namespace_cookiecutter(tmpfolder):
# Given pyscaffold is installed,
# when we call putup with --namespace and --cookiecutter
run(
f"{PUTUP} myproj --venv --no-config --namespace nested.ns {FLAG} {COOKIECUTTER}"
)
# then a very complicated module hierarchy should exist
assert Path("myproj/src/nested/ns/myproj").is_dir()
# and all the common tasks should run properly
with fs.chdir("myproj"):
> run_common_tasks(tests=False, pre_commit=False)
/tmp/cirrus-ci-build/tests/test_common.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/tmp/cirrus-ci-build/tests/helpers.py:119: in run_common_tasks
run(f"{PYTHON} -m tox -e docs,doctests")
/tmp/cirrus-ci-build/tests/helpers.py:95: in run
return check_output(args, **opts)
/usr/local/lib/python3.8/subprocess.py:415: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/cirrus-ci-build/.tox/default/bin/python', '-m', 'tox', '-e', 'docs,doctests'],)
kwargs = {'stderr': -2, 'stdout': -1, 'universal_newlines': True}
process = <subprocess.Popen object at 0x7b2f60cf4460>
stdout = 'docs: install_deps> python -I -m pip install -r /tmp/pytest-of-root/pytest-0/popen-gw0/test_namespace_cookiecutter0/t...7.08=setup[14.97]+cmd[2.11] seconds)\n doctests: FAIL code 2 (0.03 seconds)\n evaluation failed :( (17.44 seconds)\n'
stderr = None, retcode = 255
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 '['/tmp/cirrus-ci-build/.tox/default/bin/python', '-m', 'tox', '-e', 'docs,doctests']' returned non-zero exit status 255.
/usr/local/lib/python3.8/subprocess.py:516: CalledProcessError
Loading