-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1. #52326
Conversation
Looks like these two specific tests failed when running inside venv regarding missing rust toolchain (needed to compile deps, e.g. python3-cryptography, from source, which are already packaged in void), I guess it's unrelated then. Test log
=> python3-ansible-compat-24.9.1_1: running do_check ...
============================= test session starts ==============================
platform linux -- Python 3.12.6, pytest-8.3.1, pluggy-1.5.0
rootdir: /builddir/python3-ansible-compat-24.9.1
configfile: pyproject.toml
testpaths: test
plugins: mock-3.14.0
collected 108 items
test/test_api.py . [ 0%]
test/test_config.py .......... [ 10%]
test/test_configuration_example.py . [ 11%]
test/test_loaders.py . [ 12%]
test/test_prerun.py . [ 12%]
test/test_runtime.py ................................................... [ 60%]
................................... [ 92%]
test/test_runtime_example.py . [ 93%]
test/test_runtime_scan_path.py EE [ 95%]
test/test_schema.py ... [ 98%]
test/test_types.py . [ 99%]
test/test_version.py . [100%]
==================================== ERRORS ====================================
________ ERROR at setup of test_scan_sys_path[scanF-raises_not_foundT] _________
tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7fb35d2c5df0>, _basetemp=PosixPath('/tmp/pytest-of-root/pytest-0'), _retention_count=3, _retention_policy='all')
@pytest.fixture(scope="module")
def venv_module(tmp_path_factory: pytest.TempPathFactory) -> VirtualEnvironment:
"""Create a virtualenv in a temporary directory.
:param tmp_path: pytest fixture for temp path
:return: VirtualEnvironment instance
"""
test_project = tmp_path_factory.mktemp(basename="test_project-", numbered=True)
_venv = VirtualEnvironment(test_project)
> _venv.create()
test/conftest.py:127:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/conftest.py:74: in create
self.install(f"{__file__}/../..")
test/conftest.py:82: in install
subprocess.check_call(args=cmd)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = ()
kwargs = {'args': ['/tmp/pytest-of-root/pytest-0/test_project-0/venv/bin/python', '-m', 'pip', 'install', '/builddir/python3-ansible-compat-24.9.1/test/conftest.py/../..']}
retcode = 1
cmd = ['/tmp/pytest-of-root/pytest-0/test_project-0/venv/bin/python', '-m', 'pip', 'install', '/builddir/python3-ansible-compat-24.9.1/test/conftest.py/../..']
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-root/pytest-0/test_project-0/venv/bin/python', '-m', 'pip', 'install', '/builddir/python3-ansible-compat-24.9.1/test/conftest.py/../..']' returned non-zero exit status 1.
/usr/lib/python3.12/subprocess.py:413: CalledProcessError
---------------------------- Captured stdout setup -----------------------------
Processing /builddir/python3-ansible-compat-24.9.1
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting ansible-core>=2.14 (from ansible-compat==24.9.1)
Downloading ansible_core-2.17.4-py3-none-any.whl.metadata (6.9 kB)
Collecting packaging (from ansible-compat==24.9.1)
Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting PyYAML (from ansible-compat==24.9.1)
Downloading PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl.metadata (2.1 kB)
Collecting subprocess-tee>=0.4.1 (from ansible-compat==24.9.1)
Downloading subprocess_tee-0.4.2-py3-none-any.whl.metadata (3.3 kB)
Collecting jsonschema>=4.6.0 (from ansible-compat==24.9.1)
Downloading jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
Collecting jinja2>=3.0.0 (from ansible-core>=2.14->ansible-compat==24.9.1)
Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting cryptography (from ansible-core>=2.14->ansible-compat==24.9.1)
Downloading cryptography-43.0.1.tar.gz (686 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 686.9/686.9 kB 63.6 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
---------------------------- Captured stderr setup -----------------------------
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
________ ERROR at setup of test_scan_sys_path[scanT-raises_not_foundF] _________
tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7fb35d2c5df0>, _basetemp=PosixPath('/tmp/pytest-of-root/pytest-0'), _retention_count=3, _retention_policy='all')
@pytest.fixture(scope="module")
def venv_module(tmp_path_factory: pytest.TempPathFactory) -> VirtualEnvironment:
"""Create a virtualenv in a temporary directory.
:param tmp_path: pytest fixture for temp path
:return: VirtualEnvironment instance
"""
test_project = tmp_path_factory.mktemp(basename="test_project-", numbered=True)
_venv = VirtualEnvironment(test_project)
> _venv.create()
test/conftest.py:127:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/conftest.py:74: in create
self.install(f"{__file__}/../..")
test/conftest.py:82: in install
subprocess.check_call(args=cmd)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = ()
kwargs = {'args': ['/tmp/pytest-of-root/pytest-0/test_project-0/venv/bin/python', '-m', 'pip', 'install', '/builddir/python3-ansible-compat-24.9.1/test/conftest.py/../..']}
retcode = 1
cmd = ['/tmp/pytest-of-root/pytest-0/test_project-0/venv/bin/python', '-m', 'pip', 'install', '/builddir/python3-ansible-compat-24.9.1/test/conftest.py/../..']
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-root/pytest-0/test_project-0/venv/bin/python', '-m', 'pip', 'install', '/builddir/python3-ansible-compat-24.9.1/test/conftest.py/../..']' returned non-zero exit status 1.
/usr/lib/python3.12/subprocess.py:413: CalledProcessError
=========================== short test summary info ============================
ERROR test/test_runtime_scan_path.py::test_scan_sys_path[scanF-raises_not_foundT]
ERROR test/test_runtime_scan_path.py::test_scan_sys_path[scanT-raises_not_foundF]
================== 106 passed, 2 errors in 107.74s (0:01:47) ===================
=> ERROR: python3-ansible-compat-24.9.1_1: do_check: 'PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" PY_IGNORE_IMPORTMISMATCH=1 ${make_check_pre} pytest3 ${testjobs} ${make_check_args} ${make_check_target}' exited with 1
=> ERROR: in do_check() at common/build-style/python3-pep517.sh:36
Error: Process completed with exit code 1.
|
414b9dc
to
12570f0
Compare
12570f0
to
ec1ea32
Compare
Testing the changes
Local build testing
Note
Basically a dep refresh, and I adapted template to fit the new upstream versioning scheme.
Test summary with `make_check=ci-skip`
Test log