[pre-commit.ci] pre-commit autoupdate #32
Cirrus CI / test (Linux - 3.11)
completed
Oct 28, 2024 in 1m 16s
Task Summary
Instruction test failed in 00:53
Details
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks
✅ 00:01 clone
✅ 00:09 tools_install
✅ 00:01 prepare
✅ 00:01 clean_workspace
✅ 00:07 build
❌ 00:53 test
�[01mcopying assets... �[39;49;00m
�[01mcopying assets: �[39;49;00mdone
�[01mrunning tests...�[39;49;00m
Doctest summary
===============
0 tests
0 failures in tests
0 failures in setup code
0 failures in cleanup code
�[01mbuild succeeded, 18 warnings.�[39;49;00m
Testing of doctests in the sources finished, look at the results in docs/_build/doctest/output.txt.
docs: FAIL code 2 (0.28 seconds)
doctests: OK (15.90=setup[14.30]+cmd[1.60] seconds)
evaluation failed :( (16.28 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.11/subprocess.py", line 465, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/subprocess.py", line 569, 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.11.0-candidate-2 ---------
Name Stmts Miss Branch BrPart Cover Missing
-----------------------------------------------------------------------------------------
src/pyscaffoldext/cookiecutter/__init__.py 6 0 0 0 100%
src/pyscaffoldext/cookiecutter/extension.py 44 0 6 0 100%
-----------------------------------------------------------------------------------------
TOTAL 50 0 6 0 100%
============================= slowest 10 durations =============================
32.50s call tests/test_custom_extension.py::test_generated_extension
30.04s call tests/test_common.py::test_namespace_cookiecutter
3.08s call tests/test_parameters.py::test_generate_with_params
2.76s call tests/test_cookiecutter.py::test_create_project_with_cookiecutter
2.76s call tests/test_cookiecutter.py::test_cli_with_cookiecutter
2.33s call tests/test_custom_extension.py::test_add_custom_extension
0.72s call tests/test_cookiecutter.py::test_create_project_with_cookiecutter_but_no_template
0.62s call tests/test_cookiecutter.py::test_create_project_cookiecutter_and_update
0.43s call tests/test_cookiecutter.py::test_cli_with_cookiecutter_and_update
0.32s 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 35.00s�[0m�[31m =========================�[0m
default: exit 1 (35.51 seconds) /tmp/cirrus-ci-build> pytest --capture=tee-sys -n 5 -rfEx --durations 10 --color yes --junit-xml junit-test.xml pid=410
default: FAIL code 1 (53.36=setup[17.85]+cmd[35.51] seconds)
evaluation failed :( (53.46 seconds)
��������
Annotations
Check failure on line 53 in tests/test_common.py
cirrus-ci / test (Linux - 3.11)
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/tmpjhpd6lla')
@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.11/subprocess.py:465: 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 = <Popen: returncode: 255 args: ['/tmp/cirrus-ci-build/.tox/default/bin/python...>
stdout = 'docs: internal error\nTraceback (most recent call last):\n File "/tmp/cirrus-ci-build/.tox/default/lib/python3.11/si...code 2 (0.28 seconds)\n doctests: OK (15.90=setup[14.30]+cmd[1.60] seconds)\n evaluation failed :( (16.28 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.11/subprocess.py:569: CalledProcessError
Loading