Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Ansible update
@ 2024-09-24  4:18 Vinfall
  2024-09-25  2:23 ` Vinfall
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Vinfall @ 2024-09-24  4:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10799 bytes --]

There is a new pull request by Vinfall against master on the void-packages repository

https://github.com/Vinfall/void-packages ansible-update
https://github.com/void-linux/void-packages/pull/52326

Ansible update
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc

### Note

Basically a dep refresh, and I adapted template to fit the new upstream versioning scheme.
- ansible-lint
  - [requirements.in](https://github.com/ansible/ansible-lint/blob/v24.9.2/.config/requirements.in) & [requirements-test.in](https://github.com/ansible/ansible-lint/blob/v24.9.2/.config/requirements-test.in)
  - [large diff](https://github.com/ansible/ansible-lint/compare/v6.22.1...v24.9.2#diff-c339908dfbcdd2133009c338990a2cb3e73d9c32aa9cf41d3a4469d589e8a176)
  - like previous comment in template, test suite does not work well, but most tests pass so it should be fine. I'll use it for a few more days to check that.

<details><summary>Test summary with `make_check=ci-skip`</summary>
<p>

```python
=========================== short test summary info ============================
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/loop_var_prefix.py::test_loop_var_prefix[fail]
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/loop_var_prefix.py::test_loop_var_prefix[pass]
FAILED test/test_file_utils.py::test_normpath_path[resolve-symlink] - Asserti...
FAILED test/rules/test_syntax_check.py::test_syntax_check_role - AssertionErr...
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/role_name.py::test_role_name_path[fail]
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/var_naming.py::test_var_naming_with_role_prefix_plays
FAILED test/test_include_miss_file_with_role.py::test_cases_warning_message
FAILED test/test_rules_collection.py::test_rules_id_format - AssertionError: ...
FAILED test/test_include_miss_file_with_role.py::test_cases_that_do_not_report[inplace]
FAILED test/test_skip_inside_yaml.py::test_role_tasks_with_block - assert 1 == 4
FAILED test/test_runner.py::test_include_wrong_syntax[3] - assert 45 == 2
FAILED test/test_include_miss_file_with_role.py::test_cases_that_do_not_report[relative]
FAILED test/test_schemas.py::test_spdx - Failed: SPDX license list inside gal...
FAILED test/test_app.py::test_generate_ignore - AssertionError: assert 'vars....
FAILED test/test_transformer.py::test_transformer[multiline_msg_with_indent_indicator]
FAILED test/test_transformer.py::test_transformer[strings] - assert '---\n# M...
FAILED test/test_transformer.py::test_transformer[no_jinja_when] - assert 64 ...
FAILED test/test_task_includes.py::test_included_tasks[role_with_task_inclusions]
FAILED test/test_yaml_utils.py::test_fmt[13] - AssertionError: assert '---\nW...
FAILED test/test_main.py::test_call_from_outside_venv[normal] - FileNotFoundE...
FAILED test/test_main.py::test_call_from_outside_venv[isolated] - FileNotFoun...
FAILED test/test_main.py::test_nodeps[1] - FileNotFoundError: [Errno 2] No su...
FAILED test/test_main.py::test_nodeps[2] - FileNotFoundError: [Errno 2] No su...
FAILED test/test_main.py::test_broken_ansible_cfg - FileNotFoundError: [Errno...
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
============= 24 failed, 869 passed, 24 errors in 87.10s (0:01:27) =============
=> ERROR: python3-ansible-lint-24.9.2_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 
```

</p>
</details> 

- ansible-compat
  - [requirements.in](https://github.com/ansible/ansible-compat/blob/v24.9.1/.config/requirements.in) & [requirements-test.in](https://github.com/ansible/ansible-compat/blob/v24.9.1/.config/requirements-test.in)
  - [large diff](https://github.com/ansible/ansible-compat/compare/v4.1.10...v24.9.1#diff-6738f408eb17f7b7773b9565b5623db4664203921d2a78acead5f39cc0621dca)
  - this one is well tested

<details><summary>Test log</summary>
<p>

```python
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> python3-ansible-compat-24.9.1_1: removing autodeps, please wait...
=> python3-ansible-compat-24.9.1_1: building with [python3-pep517] [python3] for x86_64...
   [host] python3-wheel-0.44.0_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-setuptools_scm-8.1.0_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-build-1.2.2_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-installer-0.7.0_2: found (https://repo-default.voidlinux.org/current)
   [check] ansible-core-2.17.4_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-jsonschema-4.23.0_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-subprocess-tee-0.4.1_2: found (https://repo-default.voidlinux.org/current)
   [check] python3-yaml-6.0.2_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-pytest-8.3.1_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-pytest-mock-3.14.0_1: found (https://repo-default.voidlinux.org/current)
   [runtime] ansible-core-2.17.4_1: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-jsonschema-4.23.0_1: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-subprocess-tee-0.4.1_2: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-yaml-6.0.2_1: found (https://repo-default.voidlinux.org/current)
=> python3-ansible-compat-24.9.1_1: installing host dependencies: python3-wheel-0.44.0_1 python3-setuptools_scm-8.1.0_1 python3-build-1.2.2_1 python3-installer-0.7.0_2 ansible-core-2.17.4_1 python3-jsonschema-4.23.0_1 python3-subprocess-tee-0.4.1_2 python3-yaml-6.0.2_1 python3-pytest-8.3.1_1 python3-pytest-mock-3.14.0_1 ...
=> 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 ..                                        [ 95%]
test/test_schema.py ...                                                  [ 98%]
test/test_types.py .                                                     [ 99%]
test/test_version.py .                                                   [100%]

======================= 108 passed in 152.97s (0:02:32) ========================
```

</p>
</details> 


A patch file from https://github.com/void-linux/void-packages/pull/52326.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ansible-update-52326.patch --]
[-- Type: text/x-diff, Size: 3568 bytes --]

From 38549e1b96e54b50fe6e74f98f4f704521aca2c6 Mon Sep 17 00:00:00 2001
From: Vinfall <neptuniahuai0tc@riseup.net>
Date: Tue, 24 Sep 2024 11:06:31 +0800
Subject: [PATCH 1/2] python3-ansible-compat: update to 24.9.1.

---
 srcpkgs/python3-ansible-compat/template | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-ansible-compat/template b/srcpkgs/python3-ansible-compat/template
index 6b7f41a95e0ed4..c27eda2bfd491f 100644
--- a/srcpkgs/python3-ansible-compat/template
+++ b/srcpkgs/python3-ansible-compat/template
@@ -1,16 +1,17 @@
 # Template file for 'python3-ansible-compat'
 pkgname=python3-ansible-compat
-version=4.1.10
+version=24.9.1
 revision=1
 build_style=python3-pep517
 hostmakedepends="python3-wheel python3-setuptools_scm"
-depends="python3-subprocess-tee python3-yaml"
+depends="ansible-core python3-jsonschema python3-subprocess-tee python3-yaml"
+checkdepends="${depends} python3-pytest python3-pytest-mock"
 short_desc="Python package for working with various version of ansible"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://github.com/ansible/ansible-compat"
-distfiles="${PYPI_SITE}/a/ansible-compat/ansible-compat-${version}.tar.gz"
-checksum=2be8c7b510d2e15eed1e9ef443209d67d9aec8f427026b88936d4535ff59863d
+distfiles="${PYPI_SITE}/a/ansible-compat/ansible_compat-${version}.tar.gz"
+checksum=9ff20245e1bd9de9b23a367902524ab0e11fbcfb741831996da5da5b60ab95df
 
 post_patch() {
 	export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"

From 414b9dc86bced05a823911cb09e4238e45bd8ea2 Mon Sep 17 00:00:00 2001
From: Vinfall <neptuniahuai0tc@riseup.net>
Date: Tue, 24 Sep 2024 11:01:42 +0800
Subject: [PATCH 2/2] python3-ansible-lint: update to 24.9.2.

---
 srcpkgs/python3-ansible-lint/template | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/python3-ansible-lint/template b/srcpkgs/python3-ansible-lint/template
index c7bfb02540f0a7..ab27dba9e37d57 100644
--- a/srcpkgs/python3-ansible-lint/template
+++ b/srcpkgs/python3-ansible-lint/template
@@ -1,12 +1,16 @@
 # Template file for 'python3-ansible-lint'
 pkgname=python3-ansible-lint
-version=6.22.1
+version=24.9.2
 revision=1
 build_style=python3-pep517
 hostmakedepends="python3-wheel python3-setuptools_scm"
 depends="python3-ansible-compat ansible-core black python3-filelock
- python3-jsonschema python3-packaging python3-yaml python3-rich
- python3-ruamel.yaml python3-wcmatch python3-yamllint"
+ python3-importlib_metadata python3-jsonschema python3-packaging
+ python3-pathspec python3-yaml python3-rich python3-ruamel.yaml
+ python3-subprocess-tee python3-wcmatch python3-yamllint"
+checkdepends="${depends} python3-jmespath python3-license-expression
+ python3-mypy python3-netaddr pylint
+ python3-pytest python3-pytest-mock python3-pytest-xdist"
 short_desc="Linter for Ansible files"
 maintainer="Orphaned <orphan@voidlinux.org>"
 # Note about licensing from upstream:
@@ -16,8 +20,8 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 # contributions made are accepted as being made under original MIT license.
 license="GPL-3.0-only"
 homepage="https://github.com/ansible/ansible-lint"
-distfiles="${PYPI_SITE}/a/ansible-lint/ansible-lint-${version}.tar.gz"
-checksum=d4a3116e0726b98ffbc253f35c5ede98bee546d72d9c363f65e6e79467784d15
+distfiles="${PYPI_SITE}/a/ansible-lint/ansible_lint-${version}.tar.gz"
+checksum=7cff6c5af10ef996b7c6010cbd48c91592764ae098f2b05408726899a1066a7f
 # cba anymore, the list of failing tests changes with every update
 make_check="no"
 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Ansible update
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
@ 2024-09-25  2:23 ` Vinfall
  2024-09-25  2:23 ` Vinfall
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Vinfall @ 2024-09-25  2:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10064 bytes --]

New comment by Vinfall on void-packages repository

https://github.com/void-linux/void-packages/pull/52326#issuecomment-2372756904

Comment:
Looks like these two specific tests failed when running inside venv, I guess it's unrelated then.

<details><summary>Test log</summary>
<p>

```python
=> 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.
```

</p>
</details> 

Would run checks locally on x86_64-musl to confirm that.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Ansible update
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
  2024-09-25  2:23 ` Vinfall
@ 2024-09-25  2:23 ` Vinfall
  2024-09-25  3:54 ` [PR PATCH] [Updated] " Vinfall
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Vinfall @ 2024-09-25  2:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10097 bytes --]

New comment by Vinfall on void-packages repository

https://github.com/void-linux/void-packages/pull/52326#issuecomment-2372756904

Comment:
Looks like these two specific tests failed when running inside venv regarding missing rust toolchain, I guess it's unrelated then.

<details><summary>Test log</summary>
<p>

```python
=> 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.
```

</p>
</details> 

Would run checks locally on x86_64-musl to confirm that.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR PATCH] [Updated] Ansible update
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
  2024-09-25  2:23 ` Vinfall
  2024-09-25  2:23 ` Vinfall
@ 2024-09-25  3:54 ` Vinfall
  2024-09-25  3:57 ` Vinfall
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Vinfall @ 2024-09-25  3:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10810 bytes --]

There is an updated pull request by Vinfall against master on the void-packages repository

https://github.com/Vinfall/void-packages ansible-update
https://github.com/void-linux/void-packages/pull/52326

Ansible update
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc

#### Note

Basically a dep refresh, and I adapted template to fit the new upstream versioning scheme.
- ansible-lint
  - [requirements.in](https://github.com/ansible/ansible-lint/blob/v24.9.2/.config/requirements.in) & [requirements-test.in](https://github.com/ansible/ansible-lint/blob/v24.9.2/.config/requirements-test.in)
  - [large diff](https://github.com/ansible/ansible-lint/compare/v6.22.1...v24.9.2#diff-c339908dfbcdd2133009c338990a2cb3e73d9c32aa9cf41d3a4469d589e8a176)
  - like previous comment in template said, test suite does not work well, but most tests pass so it should be fine. I'll use it for a few more days to check that.

<details><summary>Test summary with `make_check=ci-skip`</summary>
<p>

```python
=========================== short test summary info ============================
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/loop_var_prefix.py::test_loop_var_prefix[fail]
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/loop_var_prefix.py::test_loop_var_prefix[pass]
FAILED test/test_file_utils.py::test_normpath_path[resolve-symlink] - Asserti...
FAILED test/rules/test_syntax_check.py::test_syntax_check_role - AssertionErr...
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/role_name.py::test_role_name_path[fail]
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/var_naming.py::test_var_naming_with_role_prefix_plays
FAILED test/test_include_miss_file_with_role.py::test_cases_warning_message
FAILED test/test_rules_collection.py::test_rules_id_format - AssertionError: ...
FAILED test/test_include_miss_file_with_role.py::test_cases_that_do_not_report[inplace]
FAILED test/test_skip_inside_yaml.py::test_role_tasks_with_block - assert 1 == 4
FAILED test/test_runner.py::test_include_wrong_syntax[3] - assert 45 == 2
FAILED test/test_include_miss_file_with_role.py::test_cases_that_do_not_report[relative]
FAILED test/test_schemas.py::test_spdx - Failed: SPDX license list inside gal...
FAILED test/test_app.py::test_generate_ignore - AssertionError: assert 'vars....
FAILED test/test_transformer.py::test_transformer[multiline_msg_with_indent_indicator]
FAILED test/test_transformer.py::test_transformer[strings] - assert '---\n# M...
FAILED test/test_transformer.py::test_transformer[no_jinja_when] - assert 64 ...
FAILED test/test_task_includes.py::test_included_tasks[role_with_task_inclusions]
FAILED test/test_yaml_utils.py::test_fmt[13] - AssertionError: assert '---\nW...
FAILED test/test_main.py::test_call_from_outside_venv[normal] - FileNotFoundE...
FAILED test/test_main.py::test_call_from_outside_venv[isolated] - FileNotFoun...
FAILED test/test_main.py::test_nodeps[1] - FileNotFoundError: [Errno 2] No su...
FAILED test/test_main.py::test_nodeps[2] - FileNotFoundError: [Errno 2] No su...
FAILED test/test_main.py::test_broken_ansible_cfg - FileNotFoundError: [Errno...
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
============= 24 failed, 869 passed, 24 errors in 87.10s (0:01:27) =============
=> ERROR: python3-ansible-lint-24.9.2_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 
```

</p>
</details> 

- ansible-compat
  - [requirements.in](https://github.com/ansible/ansible-compat/blob/v24.9.1/.config/requirements.in) & [requirements-test.in](https://github.com/ansible/ansible-compat/blob/v24.9.1/.config/requirements-test.in)
  - [large diff](https://github.com/ansible/ansible-compat/compare/v4.1.10...v24.9.1#diff-6738f408eb17f7b7773b9565b5623db4664203921d2a78acead5f39cc0621dca)
  - this one is well tested

<details><summary>Test log</summary>
<p>

```python
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> python3-ansible-compat-24.9.1_1: removing autodeps, please wait...
=> python3-ansible-compat-24.9.1_1: building with [python3-pep517] [python3] for x86_64...
   [host] python3-wheel-0.44.0_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-setuptools_scm-8.1.0_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-build-1.2.2_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-installer-0.7.0_2: found (https://repo-default.voidlinux.org/current)
   [check] ansible-core-2.17.4_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-jsonschema-4.23.0_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-subprocess-tee-0.4.1_2: found (https://repo-default.voidlinux.org/current)
   [check] python3-yaml-6.0.2_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-pytest-8.3.1_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-pytest-mock-3.14.0_1: found (https://repo-default.voidlinux.org/current)
   [runtime] ansible-core-2.17.4_1: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-jsonschema-4.23.0_1: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-subprocess-tee-0.4.1_2: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-yaml-6.0.2_1: found (https://repo-default.voidlinux.org/current)
=> python3-ansible-compat-24.9.1_1: installing host dependencies: python3-wheel-0.44.0_1 python3-setuptools_scm-8.1.0_1 python3-build-1.2.2_1 python3-installer-0.7.0_2 ansible-core-2.17.4_1 python3-jsonschema-4.23.0_1 python3-subprocess-tee-0.4.1_2 python3-yaml-6.0.2_1 python3-pytest-8.3.1_1 python3-pytest-mock-3.14.0_1 ...
=> 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 ..                                        [ 95%]
test/test_schema.py ...                                                  [ 98%]
test/test_types.py .                                                     [ 99%]
test/test_version.py .                                                   [100%]

======================= 108 passed in 152.97s (0:02:32) ========================
```

</p>
</details> 


A patch file from https://github.com/void-linux/void-packages/pull/52326.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ansible-update-52326.patch --]
[-- Type: text/x-diff, Size: 3834 bytes --]

From ce059f71bf29437f3a13aab7f873b24acb3bdff6 Mon Sep 17 00:00:00 2001
From: Vinfall <neptuniahuai0tc@riseup.net>
Date: Tue, 24 Sep 2024 11:06:31 +0800
Subject: [PATCH 1/2] python3-ansible-compat: update to 24.9.1.

---
 srcpkgs/python3-ansible-compat/template | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-ansible-compat/template b/srcpkgs/python3-ansible-compat/template
index 6b7f41a95e0ed4..aba09958c44c04 100644
--- a/srcpkgs/python3-ansible-compat/template
+++ b/srcpkgs/python3-ansible-compat/template
@@ -1,16 +1,22 @@
 # Template file for 'python3-ansible-compat'
 pkgname=python3-ansible-compat
-version=4.1.10
+version=24.9.1
 revision=1
 build_style=python3-pep517
+# deselect unnecessary tests in venv
+make_check_args="
+	--deselect test/test_runtime_scan_path.py::test_scan_sys_path[scanF-raises_not_foundT]
+	--deselect test/test_runtime_scan_path.py::test_scan_sys_path[scanT-raises_not_foundF]
+"
 hostmakedepends="python3-wheel python3-setuptools_scm"
-depends="python3-subprocess-tee python3-yaml"
+depends="ansible-core python3-jsonschema python3-subprocess-tee python3-yaml"
+checkdepends="${depends} python3-pytest python3-pytest-mock python3-cryptography"
 short_desc="Python package for working with various version of ansible"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://github.com/ansible/ansible-compat"
-distfiles="${PYPI_SITE}/a/ansible-compat/ansible-compat-${version}.tar.gz"
-checksum=2be8c7b510d2e15eed1e9ef443209d67d9aec8f427026b88936d4535ff59863d
+distfiles="${PYPI_SITE}/a/ansible-compat/ansible_compat-${version}.tar.gz"
+checksum=9ff20245e1bd9de9b23a367902524ab0e11fbcfb741831996da5da5b60ab95df
 
 post_patch() {
 	export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"

From 12570f016954be3a72dcb5689b04613e333928a8 Mon Sep 17 00:00:00 2001
From: Vinfall <neptuniahuai0tc@riseup.net>
Date: Tue, 24 Sep 2024 11:01:42 +0800
Subject: [PATCH 2/2] python3-ansible-lint: update to 24.9.2.

---
 srcpkgs/python3-ansible-lint/template | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/python3-ansible-lint/template b/srcpkgs/python3-ansible-lint/template
index c7bfb02540f0a7..ab27dba9e37d57 100644
--- a/srcpkgs/python3-ansible-lint/template
+++ b/srcpkgs/python3-ansible-lint/template
@@ -1,12 +1,16 @@
 # Template file for 'python3-ansible-lint'
 pkgname=python3-ansible-lint
-version=6.22.1
+version=24.9.2
 revision=1
 build_style=python3-pep517
 hostmakedepends="python3-wheel python3-setuptools_scm"
 depends="python3-ansible-compat ansible-core black python3-filelock
- python3-jsonschema python3-packaging python3-yaml python3-rich
- python3-ruamel.yaml python3-wcmatch python3-yamllint"
+ python3-importlib_metadata python3-jsonschema python3-packaging
+ python3-pathspec python3-yaml python3-rich python3-ruamel.yaml
+ python3-subprocess-tee python3-wcmatch python3-yamllint"
+checkdepends="${depends} python3-jmespath python3-license-expression
+ python3-mypy python3-netaddr pylint
+ python3-pytest python3-pytest-mock python3-pytest-xdist"
 short_desc="Linter for Ansible files"
 maintainer="Orphaned <orphan@voidlinux.org>"
 # Note about licensing from upstream:
@@ -16,8 +20,8 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 # contributions made are accepted as being made under original MIT license.
 license="GPL-3.0-only"
 homepage="https://github.com/ansible/ansible-lint"
-distfiles="${PYPI_SITE}/a/ansible-lint/ansible-lint-${version}.tar.gz"
-checksum=d4a3116e0726b98ffbc253f35c5ede98bee546d72d9c363f65e6e79467784d15
+distfiles="${PYPI_SITE}/a/ansible-lint/ansible_lint-${version}.tar.gz"
+checksum=7cff6c5af10ef996b7c6010cbd48c91592764ae098f2b05408726899a1066a7f
 # cba anymore, the list of failing tests changes with every update
 make_check="no"
 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Ansible update
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
                   ` (2 preceding siblings ...)
  2024-09-25  3:54 ` [PR PATCH] [Updated] " Vinfall
@ 2024-09-25  3:57 ` Vinfall
  2024-09-25  3:57 ` Vinfall
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Vinfall @ 2024-09-25  3:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10209 bytes --]

New comment by Vinfall on void-packages repository

https://github.com/void-linux/void-packages/pull/52326#issuecomment-2372756904

Comment:
Looks like these two specific tests failed when running inside venv regarding missing rust toolchain, I guess it's unrelated then.

<details><summary>Test log</summary>
<p>

```python
=> 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.
```

</p>
</details> 

~~Would run checks locally on x86_64-musl to confirm that.~~ Did not investigate any further since deselecting them do no harm to the actual installed _system_ package.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Ansible update
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
                   ` (3 preceding siblings ...)
  2024-09-25  3:57 ` Vinfall
@ 2024-09-25  3:57 ` Vinfall
  2024-09-26 17:39 ` [PR REVIEW] python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1 classabbyamp
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Vinfall @ 2024-09-25  3:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10253 bytes --]

New comment by Vinfall on void-packages repository

https://github.com/void-linux/void-packages/pull/52326#issuecomment-2372756904

Comment:
Looks like these two specific tests failed when running inside venv regarding missing rust toolchain, I guess it's unrelated then.

<details><summary>Test log</summary>
<p>

```python
=> 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.
```

</p>
</details> 

~~Would run checks locally on x86_64-musl to confirm that.~~ Did not investigate any further since deselecting them do no harm to the actual installed _system_ package. 106/108 passed tests is good enough for me.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1.
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
                   ` (4 preceding siblings ...)
  2024-09-25  3:57 ` Vinfall
@ 2024-09-26 17:39 ` classabbyamp
  2024-09-26 17:39 ` classabbyamp
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: classabbyamp @ 2024-09-26 17:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/52326#discussion_r1777502665

Comment:
indent with a single space here
```suggestion
make_check_args="--deselect test/test_runtime_scan_path.py::test_scan_sys_path[scanF-raises_not_foundT]
 --deselect test/test_runtime_scan_path.py::test_scan_sys_path[scanT-raises_not_foundF]
"
```

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1.
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
                   ` (5 preceding siblings ...)
  2024-09-26 17:39 ` [PR REVIEW] python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1 classabbyamp
@ 2024-09-26 17:39 ` classabbyamp
  2024-09-27  2:45 ` [PR PATCH] [Updated] " Vinfall
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: classabbyamp @ 2024-09-26 17:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/52326#discussion_r1777502665

Comment:
indent with a single space here
```suggestion
make_check_args="--deselect test/test_runtime_scan_path.py::test_scan_sys_path[scanF-raises_not_foundT]
 --deselect test/test_runtime_scan_path.py::test_scan_sys_path[scanT-raises_not_foundF]"
```

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR PATCH] [Updated] python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1.
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
                   ` (6 preceding siblings ...)
  2024-09-26 17:39 ` classabbyamp
@ 2024-09-27  2:45 ` Vinfall
  2024-09-27  2:49 ` [PR REVIEW] " Vinfall
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Vinfall @ 2024-09-27  2:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10839 bytes --]

There is an updated pull request by Vinfall against master on the void-packages repository

https://github.com/Vinfall/void-packages ansible-update
https://github.com/void-linux/void-packages/pull/52326

python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **yes**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc, x86_64-musl

#### Note

Basically a dep refresh, and I adapted template to fit the new upstream versioning scheme.
- ansible-lint
  - [requirements.in](https://github.com/ansible/ansible-lint/blob/v24.9.2/.config/requirements.in) & [requirements-test.in](https://github.com/ansible/ansible-lint/blob/v24.9.2/.config/requirements-test.in)
  - [large diff](https://github.com/ansible/ansible-lint/compare/v6.22.1...v24.9.2#diff-c339908dfbcdd2133009c338990a2cb3e73d9c32aa9cf41d3a4469d589e8a176)
  - like previous comment in template said, test suite does not work well, but most tests pass so it should be fine.

<details><summary>Test summary with `make_check=ci-skip`</summary>
<p>

```python
=========================== short test summary info ============================
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/loop_var_prefix.py::test_loop_var_prefix[fail]
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/loop_var_prefix.py::test_loop_var_prefix[pass]
FAILED test/test_file_utils.py::test_normpath_path[resolve-symlink] - Asserti...
FAILED test/rules/test_syntax_check.py::test_syntax_check_role - AssertionErr...
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/role_name.py::test_role_name_path[fail]
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/var_naming.py::test_var_naming_with_role_prefix_plays
FAILED test/test_include_miss_file_with_role.py::test_cases_warning_message
FAILED test/test_rules_collection.py::test_rules_id_format - AssertionError: ...
FAILED test/test_include_miss_file_with_role.py::test_cases_that_do_not_report[inplace]
FAILED test/test_skip_inside_yaml.py::test_role_tasks_with_block - assert 1 == 4
FAILED test/test_runner.py::test_include_wrong_syntax[3] - assert 45 == 2
FAILED test/test_include_miss_file_with_role.py::test_cases_that_do_not_report[relative]
FAILED test/test_schemas.py::test_spdx - Failed: SPDX license list inside gal...
FAILED test/test_app.py::test_generate_ignore - AssertionError: assert 'vars....
FAILED test/test_transformer.py::test_transformer[multiline_msg_with_indent_indicator]
FAILED test/test_transformer.py::test_transformer[strings] - assert '---\n# M...
FAILED test/test_transformer.py::test_transformer[no_jinja_when] - assert 64 ...
FAILED test/test_task_includes.py::test_included_tasks[role_with_task_inclusions]
FAILED test/test_yaml_utils.py::test_fmt[13] - AssertionError: assert '---\nW...
FAILED test/test_main.py::test_call_from_outside_venv[normal] - FileNotFoundE...
FAILED test/test_main.py::test_call_from_outside_venv[isolated] - FileNotFoun...
FAILED test/test_main.py::test_nodeps[1] - FileNotFoundError: [Errno 2] No su...
FAILED test/test_main.py::test_nodeps[2] - FileNotFoundError: [Errno 2] No su...
FAILED test/test_main.py::test_broken_ansible_cfg - FileNotFoundError: [Errno...
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
============= 24 failed, 869 passed, 24 errors in 87.10s (0:01:27) =============
=> ERROR: python3-ansible-lint-24.9.2_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 
```

</p>
</details> 

- ansible-compat
  - [requirements.in](https://github.com/ansible/ansible-compat/blob/v24.9.1/.config/requirements.in) & [requirements-test.in](https://github.com/ansible/ansible-compat/blob/v24.9.1/.config/requirements-test.in)
  - [large diff](https://github.com/ansible/ansible-compat/compare/v4.1.10...v24.9.1#diff-6738f408eb17f7b7773b9565b5623db4664203921d2a78acead5f39cc0621dca)
  - this one is well tested

<details><summary>Test log</summary>
<p>

```python
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> python3-ansible-compat-24.9.1_1: removing autodeps, please wait...
=> python3-ansible-compat-24.9.1_1: building with [python3-pep517] [python3] for x86_64...
   [host] python3-wheel-0.44.0_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-setuptools_scm-8.1.0_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-build-1.2.2_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-installer-0.7.0_2: found (https://repo-default.voidlinux.org/current)
   [check] ansible-core-2.17.4_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-jsonschema-4.23.0_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-subprocess-tee-0.4.1_2: found (https://repo-default.voidlinux.org/current)
   [check] python3-yaml-6.0.2_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-pytest-8.3.1_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-pytest-mock-3.14.0_1: found (https://repo-default.voidlinux.org/current)
   [runtime] ansible-core-2.17.4_1: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-jsonschema-4.23.0_1: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-subprocess-tee-0.4.1_2: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-yaml-6.0.2_1: found (https://repo-default.voidlinux.org/current)
=> python3-ansible-compat-24.9.1_1: installing host dependencies: python3-wheel-0.44.0_1 python3-setuptools_scm-8.1.0_1 python3-build-1.2.2_1 python3-installer-0.7.0_2 ansible-core-2.17.4_1 python3-jsonschema-4.23.0_1 python3-subprocess-tee-0.4.1_2 python3-yaml-6.0.2_1 python3-pytest-8.3.1_1 python3-pytest-mock-3.14.0_1 ...
=> 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 ..                                        [ 95%]
test/test_schema.py ...                                                  [ 98%]
test/test_types.py .                                                     [ 99%]
test/test_version.py .                                                   [100%]

======================= 108 passed in 152.97s (0:02:32) ========================
```

</p>
</details> 


A patch file from https://github.com/void-linux/void-packages/pull/52326.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ansible-update-52326.patch --]
[-- Type: text/x-diff, Size: 3826 bytes --]

From 87ea0b1b72c37dac68391f9e88587a36b788c513 Mon Sep 17 00:00:00 2001
From: Vinfall <neptuniahuai0tc@riseup.net>
Date: Tue, 24 Sep 2024 11:06:31 +0800
Subject: [PATCH 1/2] python3-ansible-compat: update to 24.9.1.

---
 srcpkgs/python3-ansible-compat/template | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-ansible-compat/template b/srcpkgs/python3-ansible-compat/template
index 6b7f41a95e0ed4..a70a780cfb278c 100644
--- a/srcpkgs/python3-ansible-compat/template
+++ b/srcpkgs/python3-ansible-compat/template
@@ -1,16 +1,20 @@
 # Template file for 'python3-ansible-compat'
 pkgname=python3-ansible-compat
-version=4.1.10
+version=24.9.1
 revision=1
 build_style=python3-pep517
+# deselect unnecessary tests in venv
+make_check_args="--deselect test/test_runtime_scan_path.py::test_scan_sys_path[scanF-raises_not_foundT]
+ --deselect test/test_runtime_scan_path.py::test_scan_sys_path[scanT-raises_not_foundF]"
 hostmakedepends="python3-wheel python3-setuptools_scm"
-depends="python3-subprocess-tee python3-yaml"
+depends="ansible-core python3-jsonschema python3-subprocess-tee python3-yaml"
+checkdepends="${depends} python3-pytest python3-pytest-mock python3-cryptography"
 short_desc="Python package for working with various version of ansible"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://github.com/ansible/ansible-compat"
-distfiles="${PYPI_SITE}/a/ansible-compat/ansible-compat-${version}.tar.gz"
-checksum=2be8c7b510d2e15eed1e9ef443209d67d9aec8f427026b88936d4535ff59863d
+distfiles="${PYPI_SITE}/a/ansible-compat/ansible_compat-${version}.tar.gz"
+checksum=9ff20245e1bd9de9b23a367902524ab0e11fbcfb741831996da5da5b60ab95df
 
 post_patch() {
 	export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"

From ec1ea32a0a6bd6525e26ebc2558dd2b9e6b8ed77 Mon Sep 17 00:00:00 2001
From: Vinfall <neptuniahuai0tc@riseup.net>
Date: Tue, 24 Sep 2024 11:01:42 +0800
Subject: [PATCH 2/2] python3-ansible-lint: update to 24.9.2.

---
 srcpkgs/python3-ansible-lint/template | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/python3-ansible-lint/template b/srcpkgs/python3-ansible-lint/template
index c7bfb02540f0a7..ab27dba9e37d57 100644
--- a/srcpkgs/python3-ansible-lint/template
+++ b/srcpkgs/python3-ansible-lint/template
@@ -1,12 +1,16 @@
 # Template file for 'python3-ansible-lint'
 pkgname=python3-ansible-lint
-version=6.22.1
+version=24.9.2
 revision=1
 build_style=python3-pep517
 hostmakedepends="python3-wheel python3-setuptools_scm"
 depends="python3-ansible-compat ansible-core black python3-filelock
- python3-jsonschema python3-packaging python3-yaml python3-rich
- python3-ruamel.yaml python3-wcmatch python3-yamllint"
+ python3-importlib_metadata python3-jsonschema python3-packaging
+ python3-pathspec python3-yaml python3-rich python3-ruamel.yaml
+ python3-subprocess-tee python3-wcmatch python3-yamllint"
+checkdepends="${depends} python3-jmespath python3-license-expression
+ python3-mypy python3-netaddr pylint
+ python3-pytest python3-pytest-mock python3-pytest-xdist"
 short_desc="Linter for Ansible files"
 maintainer="Orphaned <orphan@voidlinux.org>"
 # Note about licensing from upstream:
@@ -16,8 +20,8 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 # contributions made are accepted as being made under original MIT license.
 license="GPL-3.0-only"
 homepage="https://github.com/ansible/ansible-lint"
-distfiles="${PYPI_SITE}/a/ansible-lint/ansible-lint-${version}.tar.gz"
-checksum=d4a3116e0726b98ffbc253f35c5ede98bee546d72d9c363f65e6e79467784d15
+distfiles="${PYPI_SITE}/a/ansible-lint/ansible_lint-${version}.tar.gz"
+checksum=7cff6c5af10ef996b7c6010cbd48c91592764ae098f2b05408726899a1066a7f
 # cba anymore, the list of failing tests changes with every update
 make_check="no"
 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1.
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
                   ` (7 preceding siblings ...)
  2024-09-27  2:45 ` [PR PATCH] [Updated] " Vinfall
@ 2024-09-27  2:49 ` Vinfall
  2024-09-27  2:51 ` Vinfall
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Vinfall @ 2024-09-27  2:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

New review comment by Vinfall on void-packages repository

https://github.com/void-linux/void-packages/pull/52326#discussion_r1777945273

Comment:
fixed as requested

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1.
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
                   ` (8 preceding siblings ...)
  2024-09-27  2:49 ` [PR REVIEW] " Vinfall
@ 2024-09-27  2:51 ` Vinfall
  2024-09-27  2:51 ` Vinfall
  2024-09-27  2:56 ` [PR PATCH] [Merged]: " classabbyamp
  11 siblings, 0 replies; 13+ messages in thread
From: Vinfall @ 2024-09-27  2:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10326 bytes --]

New comment by Vinfall on void-packages repository

https://github.com/void-linux/void-packages/pull/52326#issuecomment-2372756904

Comment:
Looks like these two specific tests failed when running inside venv regarding missing rust toolchain (needed to compile deps from source, which are already packaged in void), I guess it's unrelated then.

<details><summary>Test log</summary>
<p>

```python
=> 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.
```

</p>
</details> 

~~Would run checks locally on x86_64-musl to confirm that.~~ Did not investigate any further since deselecting them do no harm to the actual installed _system_ package. 106/108 passed tests is good enough for me.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1.
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
                   ` (9 preceding siblings ...)
  2024-09-27  2:51 ` Vinfall
@ 2024-09-27  2:51 ` Vinfall
  2024-09-27  2:56 ` [PR PATCH] [Merged]: " classabbyamp
  11 siblings, 0 replies; 13+ messages in thread
From: Vinfall @ 2024-09-27  2:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10354 bytes --]

New comment by Vinfall on void-packages repository

https://github.com/void-linux/void-packages/pull/52326#issuecomment-2372756904

Comment:
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.

<details><summary>Test log</summary>
<p>

```python
=> 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.
```

</p>
</details> 

~~Would run checks locally on x86_64-musl to confirm that.~~ Did not investigate any further since deselecting them do no harm to the actual installed _system_ package. 106/108 passed tests is good enough for me.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR PATCH] [Merged]: python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1.
  2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
                   ` (10 preceding siblings ...)
  2024-09-27  2:51 ` Vinfall
@ 2024-09-27  2:56 ` classabbyamp
  11 siblings, 0 replies; 13+ messages in thread
From: classabbyamp @ 2024-09-27  2:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10676 bytes --]

There's a merged pull request on the void-packages repository

python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1.
https://github.com/void-linux/void-packages/pull/52326

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **yes**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc, x86_64-musl

#### Note

Basically a dep refresh, and I adapted template to fit the new upstream versioning scheme.
- ansible-lint
  - [requirements.in](https://github.com/ansible/ansible-lint/blob/v24.9.2/.config/requirements.in) & [requirements-test.in](https://github.com/ansible/ansible-lint/blob/v24.9.2/.config/requirements-test.in)
  - [large diff](https://github.com/ansible/ansible-lint/compare/v6.22.1...v24.9.2#diff-c339908dfbcdd2133009c338990a2cb3e73d9c32aa9cf41d3a4469d589e8a176)
  - like previous comment in template said, test suite does not work well, but most tests pass so it should be fine.

<details><summary>Test summary with `make_check=ci-skip`</summary>
<p>

```python
=========================== short test summary info ============================
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/loop_var_prefix.py::test_loop_var_prefix[fail]
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/loop_var_prefix.py::test_loop_var_prefix[pass]
FAILED test/test_file_utils.py::test_normpath_path[resolve-symlink] - Asserti...
FAILED test/rules/test_syntax_check.py::test_syntax_check_role - AssertionErr...
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/role_name.py::test_role_name_path[fail]
FAILED .xbps-testdir/1727148759/usr/lib/python3.12/site-packages/ansiblelint/rules/var_naming.py::test_var_naming_with_role_prefix_plays
FAILED test/test_include_miss_file_with_role.py::test_cases_warning_message
FAILED test/test_rules_collection.py::test_rules_id_format - AssertionError: ...
FAILED test/test_include_miss_file_with_role.py::test_cases_that_do_not_report[inplace]
FAILED test/test_skip_inside_yaml.py::test_role_tasks_with_block - assert 1 == 4
FAILED test/test_runner.py::test_include_wrong_syntax[3] - assert 45 == 2
FAILED test/test_include_miss_file_with_role.py::test_cases_that_do_not_report[relative]
FAILED test/test_schemas.py::test_spdx - Failed: SPDX license list inside gal...
FAILED test/test_app.py::test_generate_ignore - AssertionError: assert 'vars....
FAILED test/test_transformer.py::test_transformer[multiline_msg_with_indent_indicator]
FAILED test/test_transformer.py::test_transformer[strings] - assert '---\n# M...
FAILED test/test_transformer.py::test_transformer[no_jinja_when] - assert 64 ...
FAILED test/test_task_includes.py::test_included_tasks[role_with_task_inclusions]
FAILED test/test_yaml_utils.py::test_fmt[13] - AssertionError: assert '---\nW...
FAILED test/test_main.py::test_call_from_outside_venv[normal] - FileNotFoundE...
FAILED test/test_main.py::test_call_from_outside_venv[isolated] - FileNotFoun...
FAILED test/test_main.py::test_nodeps[1] - FileNotFoundError: [Errno 2] No su...
FAILED test/test_main.py::test_nodeps[2] - FileNotFoundError: [Errno 2] No su...
FAILED test/test_main.py::test_broken_ansible_cfg - FileNotFoundError: [Errno...
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727149049/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR .xbps-testdir/1727151241/usr/lib/python3.12/site-packages/ansiblelint/rules
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
ERROR src/ansiblelint/rules - ValueError: Plugin already registered under a d...
============= 24 failed, 869 passed, 24 errors in 87.10s (0:01:27) =============
=> ERROR: python3-ansible-lint-24.9.2_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 
```

</p>
</details> 

- ansible-compat
  - [requirements.in](https://github.com/ansible/ansible-compat/blob/v24.9.1/.config/requirements.in) & [requirements-test.in](https://github.com/ansible/ansible-compat/blob/v24.9.1/.config/requirements-test.in)
  - [large diff](https://github.com/ansible/ansible-compat/compare/v4.1.10...v24.9.1#diff-6738f408eb17f7b7773b9565b5623db4664203921d2a78acead5f39cc0621dca)
  - this one is well tested

<details><summary>Test log</summary>
<p>

```python
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> python3-ansible-compat-24.9.1_1: removing autodeps, please wait...
=> python3-ansible-compat-24.9.1_1: building with [python3-pep517] [python3] for x86_64...
   [host] python3-wheel-0.44.0_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-setuptools_scm-8.1.0_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-build-1.2.2_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-installer-0.7.0_2: found (https://repo-default.voidlinux.org/current)
   [check] ansible-core-2.17.4_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-jsonschema-4.23.0_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-subprocess-tee-0.4.1_2: found (https://repo-default.voidlinux.org/current)
   [check] python3-yaml-6.0.2_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-pytest-8.3.1_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-pytest-mock-3.14.0_1: found (https://repo-default.voidlinux.org/current)
   [runtime] ansible-core-2.17.4_1: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-jsonschema-4.23.0_1: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-subprocess-tee-0.4.1_2: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-yaml-6.0.2_1: found (https://repo-default.voidlinux.org/current)
=> python3-ansible-compat-24.9.1_1: installing host dependencies: python3-wheel-0.44.0_1 python3-setuptools_scm-8.1.0_1 python3-build-1.2.2_1 python3-installer-0.7.0_2 ansible-core-2.17.4_1 python3-jsonschema-4.23.0_1 python3-subprocess-tee-0.4.1_2 python3-yaml-6.0.2_1 python3-pytest-8.3.1_1 python3-pytest-mock-3.14.0_1 ...
=> 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 ..                                        [ 95%]
test/test_schema.py ...                                                  [ 98%]
test/test_types.py .                                                     [ 99%]
test/test_version.py .                                                   [100%]

======================= 108 passed in 152.97s (0:02:32) ========================
```

</p>
</details> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-09-27  2:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-24  4:18 [PR PATCH] Ansible update Vinfall
2024-09-25  2:23 ` Vinfall
2024-09-25  2:23 ` Vinfall
2024-09-25  3:54 ` [PR PATCH] [Updated] " Vinfall
2024-09-25  3:57 ` Vinfall
2024-09-25  3:57 ` Vinfall
2024-09-26 17:39 ` [PR REVIEW] python3-ansible-lint: update to 24.9.2; python3-ansible-compat: update to 24.9.1 classabbyamp
2024-09-26 17:39 ` classabbyamp
2024-09-27  2:45 ` [PR PATCH] [Updated] " Vinfall
2024-09-27  2:49 ` [PR REVIEW] " Vinfall
2024-09-27  2:51 ` Vinfall
2024-09-27  2:51 ` Vinfall
2024-09-27  2:56 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).