[1m[32m==>[m[1m Building on p[m
[1m[32m==>[m[1m Checking for remote environment...[m
[1m[32m==>[m[1m Syncing package to remote host...[m
sending incremental file list
./
PKGBUILD
          1,476 100%    0.00kB/s    0:00:00            1,476 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=1/3)
python-ansible-compat-2.2.5-1.log
            200 100%  195.31kB/s    0:00:00              200 100%  195.31kB/s    0:00:00 (xfr#2, to-chk=0/3)

sent 1,146 bytes  received 69 bytes  810.00 bytes/sec
total size is 1,664  speedup is 1.37
[1m[32m==>[m[1m Running  extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix28 on remote host...[m
[?25l:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
:: Starting full system upgrade...
 there is nothing to do
[?25h[1m[32m==>[m[1m Building in chroot for [extra] (riscv64)...[m
[1m[32m==>[m[1m Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix28]...[m[1mdone[m
[1m[32m==>[m[1m Making package: python-ansible-compat 2.2.5-1 (Sun Nov 20 03:49:29 2022)[m
[1m[32m==>[m[1m Retrieving sources...[m
[1m[34m  ->[m[1m Downloading ansible-compat-2.2.5.tar.gz...[m
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 39794  100 39794    0     0  1163k      0 --:--:-- --:--:-- --:--:-- 1163k
[1m[32m==>[m[1m Validating source files with sha256sums...[m
    ansible-compat-2.2.5.tar.gz ... Passed
[1m[32m==>[m[1m Validating source files with b2sums...[m
    ansible-compat-2.2.5.tar.gz ... Passed
[1m[32m==>[m[1m Making package: python-ansible-compat 2.2.5-1 (Sun Nov 20 03:49:36 2022)[m
[1m[32m==>[m[1m Checking runtime dependencies...[m
[1m[32m==>[m[1m Installing missing dependencies...[m
[?25lresolving dependencies...
looking for conflicting packages...

Package (11)                        New Version  Net Change

core/libnsl                         2.0.0-2        0.06 MiB
extra/libyaml                       0.2.5-1        0.14 MiB
core/python                         3.10.8-3      81.34 MiB
extra/python-attrs                  22.1.0-1       0.43 MiB
extra/python-pyparsing              3.0.9-1        0.96 MiB
community/python-pyrsistent         0.19.2-1       0.48 MiB
community/python-typing_extensions  4.4.0-1        0.22 MiB
community/python-jsonschema         4.17.0-1       0.94 MiB
extra/python-packaging              21.3-1         0.26 MiB
community/python-subprocess-tee     0.3.5-4        0.02 MiB
community/python-yaml               6.0-1          0.68 MiB

Total Installed Size:  85.54 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing libnsl...
installing python...
Optional dependencies for python
    python-setuptools
    python-pip
    sqlite [installed]
    mpdecimal: for decimal
    xz: for lzma [installed]
    tk: for tkinter
installing python-attrs...
installing python-pyrsistent...
installing python-typing_extensions...
installing python-jsonschema...
Optional dependencies for python-jsonschema
    python-isoduration: for duration format
    python-fqdn: for hostname format
    python-idna: for idn-hostname format
    python-jsonpointer: for json-pointer & relative-json-pointer format
    python-rfc3339-validator: for date-time format
    python-rfc3987: for iri, iri-reference, uri & uri-reference format
    python-uri-template: for uri-template format
    python-webcolors: for color format
installing python-pyparsing...
Optional dependencies for python-pyparsing
    python-railroad-diagrams: for generating Railroad Diagrams
    python-jinja: for generating Railroad Diagrams
installing python-packaging...
installing libyaml...
installing python-yaml...
installing python-subprocess-tee...
Optional dependencies for python-subprocess-tee
    python-enrich: for rich text rendering
[?25h[1m[32m==>[m[1m Checking buildtime dependencies...[m
[1m[32m==>[m[1m Installing missing dependencies...[m
[?25lresolving dependencies...
looking for conflicting packages...

Package (39)                       New Version   Net Change  Download Size

community/ansible-core             2.14.0-1       15.52 MiB               
community/cython                   0.29.32-2       7.52 MiB               
extra/libsodium                    1.0.18-2        0.38 MiB               
extra/python-appdirs               1.4.4-7         0.07 MiB               
community/python-autocommand       2.2.1-1         0.07 MiB               
community/python-bcrypt            4.0.1-1         0.37 MiB               
extra/python-cffi                  1.15.1-1        1.00 MiB               
extra/python-cryptography          38.0.3-1        3.55 MiB               
community/python-exceptiongroup    1.0.4-1         0.09 MiB               
community/python-inflect           6.0.2-1         0.28 MiB               
community/python-iniconfig         1.1.1-5         0.02 MiB               
community/python-jaraco.context    4.1.2-1         0.02 MiB               
community/python-jaraco.functools  3.5.2-1         0.05 MiB               
community/python-jaraco.text       3.10.0-1        0.07 MiB               
community/python-jinja             1:3.1.2-2       1.28 MiB               
extra/python-markupsafe            2.1.1-1         0.06 MiB               
community/python-more-itertools    9.0.0-1         0.49 MiB               
extra/python-ordered-set           4.1.0-1         0.06 MiB               
community/python-paramiko          2.11.1-1        1.78 MiB               
extra/python-pep517                0.13.0-1        0.13 MiB               
community/python-pluggy            1.0.0-1         0.10 MiB               
extra/python-ply                   3.11-10         0.31 MiB               
extra/python-pycparser             2.21-3          1.39 MiB               
community/python-pydantic          1.10.2-1        5.79 MiB               
community/python-pynacl            1.4.0-5         0.65 MiB               
extra/python-resolvelib            0.9.0-1         0.11 MiB       0.02 MiB
extra/python-six                   1.16.0-6        0.09 MiB               
extra/python-tomli                 2.0.1-1         0.08 MiB               
extra/python-trove-classifiers     2022.10.19-1    0.11 MiB               
extra/python-validate-pyproject    0.10.1-1        0.41 MiB               
community/ansible                  6.6.0-1       390.42 MiB               
community/python-build             0.9.0-1         1.06 MiB               
community/python-flaky             3.7.0-7         0.15 MiB       0.03 MiB
community/python-installer         0.5.1-2         1.20 MiB               
community/python-pytest            7.2.0-4         2.79 MiB               
community/python-pytest-mock       3.10.0-1        0.06 MiB               
extra/python-setuptools            1:65.3.0-1      3.30 MiB               
community/python-setuptools-scm    7.0.5-1         0.26 MiB               
community/python-wheel             0.38.3-1        0.16 MiB               

Total Download Size:     0.05 MiB
Total Installed Size:  441.24 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 python-flaky-3.7.0-7-any downloading...
 python-resolvelib-0.9.0-1-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing python-tomli...
installing python-pep517...
installing python-build...
Optional dependencies for python-build
    python-virtualenv: Use virtualenv for build isolation
installing python-installer...
installing python-appdirs...
installing python-more-itertools...
installing python-jaraco.functools...
installing python-jaraco.context...
installing python-autocommand...
installing cython...
installing python-pydantic...
Optional dependencies for python-pydantic
    python-dotenv: for .env file support
    python-email-validator: for email validation
installing python-inflect...
installing python-jaraco.text...
installing python-ordered-set...
installing python-trove-classifiers...
installing python-validate-pyproject...
installing python-setuptools...
installing python-setuptools-scm...
installing python-wheel...
Optional dependencies for python-wheel
    python-keyring: for wheel.signatures
    python-xdg: for wheel.signatures
installing python-bcrypt...
installing python-ply...
installing python-pycparser...
installing python-cffi...
installing python-cryptography...
installing libsodium...
installing python-six...
installing python-pynacl...
installing python-paramiko...
installing python-markupsafe...
installing python-jinja...
Optional dependencies for python-jinja
    python-babel: for i18n support
installing python-resolvelib...
installing ansible-core...
Optional dependencies for ansible-core
    sshpass: for ssh connections with password
    python-passlib: crypt values for vars_prompt
    python-netaddr: for the ipaddr filter
    python-systemd: log to journal
    python-pywinrm: connect to Windows machines
    python-dnspython: for dig lookup
    python-jmespath: json_query support
installing ansible...
Optional dependencies for ansible
    python-argcomplete: shell completions
    python-pyopenssl: openssl modules
    python-dnspython: for dig lookup
    python-ovirt-engine-sdk: ovirt support
    python-boto3: aws_s3 module
    python-ldap: ldap support
    python-proxmoxer: proxmos modules
    python-openstacksdk: OpenStack module
    python-pynetbox: NetBox module
    python-ldap: LDAP modules
    python-keyring: Keyring module
    acme-tiny: openssl_certificate module
installing python-flaky...
installing python-exceptiongroup...
installing python-iniconfig...
installing python-pluggy...
installing python-pytest...
installing python-pytest-mock...
[?25h[1m[32m==>[m[1m Retrieving sources...[m
[1m[34m  ->[m[1m Found ansible-compat-2.2.5.tar.gz[m
[1m[33m==> WARNING:[m[1m Skipping all source file integrity checks.[m
[1m[32m==>[m[1m Extracting sources...[m
[1m[34m  ->[m[1m Extracting ansible-compat-2.2.5.tar.gz with bsdtar[m
[1m[32m==>[m[1m Starting build()...[m
* Building wheel...
/usr/lib/python3.10/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/ansible_compat
copying src/ansible_compat/__init__.py -> build/lib/ansible_compat
copying src/ansible_compat/config.py -> build/lib/ansible_compat
copying src/ansible_compat/constants.py -> build/lib/ansible_compat
copying src/ansible_compat/errors.py -> build/lib/ansible_compat
copying src/ansible_compat/loaders.py -> build/lib/ansible_compat
copying src/ansible_compat/ports.py -> build/lib/ansible_compat
copying src/ansible_compat/prerun.py -> build/lib/ansible_compat
copying src/ansible_compat/runtime.py -> build/lib/ansible_compat
copying src/ansible_compat/schema.py -> build/lib/ansible_compat
copying src/ansible_compat/py.typed -> build/lib/ansible_compat
installing to build/bdist.linux-riscv64/wheel
running install
running install_lib
creating build/bdist.linux-riscv64
creating build/bdist.linux-riscv64/wheel
creating build/bdist.linux-riscv64/wheel/ansible_compat
copying build/lib/ansible_compat/__init__.py -> build/bdist.linux-riscv64/wheel/ansible_compat
copying build/lib/ansible_compat/config.py -> build/bdist.linux-riscv64/wheel/ansible_compat
copying build/lib/ansible_compat/constants.py -> build/bdist.linux-riscv64/wheel/ansible_compat
copying build/lib/ansible_compat/errors.py -> build/bdist.linux-riscv64/wheel/ansible_compat
copying build/lib/ansible_compat/loaders.py -> build/bdist.linux-riscv64/wheel/ansible_compat
copying build/lib/ansible_compat/ports.py -> build/bdist.linux-riscv64/wheel/ansible_compat
copying build/lib/ansible_compat/prerun.py -> build/bdist.linux-riscv64/wheel/ansible_compat
copying build/lib/ansible_compat/runtime.py -> build/bdist.linux-riscv64/wheel/ansible_compat
copying build/lib/ansible_compat/schema.py -> build/bdist.linux-riscv64/wheel/ansible_compat
copying build/lib/ansible_compat/py.typed -> build/bdist.linux-riscv64/wheel/ansible_compat
running install_egg_info
running egg_info
writing src/ansible_compat.egg-info/PKG-INFO
writing dependency_links to src/ansible_compat.egg-info/dependency_links.txt
writing requirements to src/ansible_compat.egg-info/requires.txt
writing top-level names to src/ansible_compat.egg-info/top_level.txt
reading manifest file 'src/ansible_compat.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'src/ansible_compat.egg-info/SOURCES.txt'
Copying src/ansible_compat.egg-info to build/bdist.linux-riscv64/wheel/ansible_compat-2.2.5-py3.10.egg-info
running install_scripts
creating build/bdist.linux-riscv64/wheel/ansible_compat-2.2.5.dist-info/WHEEL
creating '/build/python-ansible-compat/src/ansible-compat-2.2.5/dist/tmpp8gq3zns/ansible_compat-2.2.5-py3-none-any.whl' and adding 'build/bdist.linux-riscv64/wheel' to it
adding 'ansible_compat/__init__.py'
adding 'ansible_compat/config.py'
adding 'ansible_compat/constants.py'
adding 'ansible_compat/errors.py'
adding 'ansible_compat/loaders.py'
adding 'ansible_compat/ports.py'
adding 'ansible_compat/prerun.py'
adding 'ansible_compat/py.typed'
adding 'ansible_compat/runtime.py'
adding 'ansible_compat/schema.py'
adding 'ansible_compat-2.2.5.dist-info/LICENSE'
adding 'ansible_compat-2.2.5.dist-info/METADATA'
adding 'ansible_compat-2.2.5.dist-info/WHEEL'
adding 'ansible_compat-2.2.5.dist-info/top_level.txt'
adding 'ansible_compat-2.2.5.dist-info/RECORD'
removing build/bdist.linux-riscv64/wheel
Successfully built ansible_compat-2.2.5-py3-none-any.whl
[1m[32m==>[m[1m Starting check()...[m
============================= test session starts ==============================
platform linux -- Python 3.10.8, pytest-7.2.0, pluggy-1.0.0 -- /usr/bin/python
cachedir: .pytest_cache
rootdir: /dev, configfile: null
plugins: flaky-3.7.0, mock-3.10.0
collecting ... collected 78 items

../../../../dev/test/test_api.py::test_placeholder <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_api.py PASSED [  1%]
../../../../dev/test/test_config.py::test_config <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_config.py PASSED [  2%]
../../../../dev/test/test_config.py::test_config_with_dump <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_config.py PASSED [  3%]
../../../../dev/test/test_config.py::test_config_copy <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_config.py PASSED [  5%]
../../../../dev/test/test_config.py::test_ansible_collections_path_210 <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_config.py PASSED [  6%]
../../../../dev/test/test_config.py::test_ansible_collections_path_29 <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_config.py PASSED [  7%]
../../../../dev/test/test_config.py::test_parse_ansible_version_fail <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_config.py PASSED [  8%]
../../../../dev/test/test_config.py::test_ansible_version_missing <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_config.py PASSED [ 10%]
../../../../dev/test/test_configuration_example.py::test_example_config <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_configuration_example.py PASSED [ 11%]
../../../../dev/test/test_prerun.py::test_get_cache_dir_relative <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_prerun.py PASSED [ 12%]
../../../../dev/test/test_runtime.py::test_runtime_version <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 14%]
../../../../dev/test/test_runtime.py::test_runtime_version_outdated[module-required] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 15%]
../../../../dev/test/test_runtime.py::test_runtime_version_outdated[module-unrequired] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 16%]
../../../../dev/test/test_runtime.py::test_runtime_missing_ansible_module <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 17%]
../../../../dev/test/test_runtime.py::test_runtime_mismatch_ansible_module <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 19%]
../../../../dev/test/test_runtime.py::test_runtime_require_module <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 20%]
../../../../dev/test/test_runtime.py::test_runtime_version_fail_module <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 21%]
../../../../dev/test/test_runtime.py::test_runtime_version_fail_cli <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 23%]
../../../../dev/test/test_runtime.py::test_runtime_prepare_ansible_paths_validation <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 24%]
../../../../dev/test/test_runtime.py::test_runtime_install_role[1] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 25%]
../../../../dev/test/test_runtime.py::test_runtime_install_role[2] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 26%]
../../../../dev/test/test_runtime.py::test_runtime_install_role[3] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 28%]
../../../../dev/test/test_runtime.py::test_runtime_install_role[4] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 29%]
../../../../dev/test/test_runtime.py::test_prepare_environment_with_collections <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py FAILED [ 30%]
../../../../dev/test/test_runtime.py::test_runtime_install_requirements_missing_file <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 32%]
../../../../dev/test/test_runtime.py::test_runtime_install_requirements_invalid_file[empty] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 33%]
../../../../dev/test/test_runtime.py::test_runtime_install_requirements_invalid_file[invalid-collection] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 34%]
../../../../dev/test/test_runtime.py::test_runtime_install_requirements_invalid_file[invalid-role] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 35%]
../../../../dev/test/test_runtime.py::test_prerun_reqs_v1 <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 37%]
../../../../dev/test/test_runtime.py::test_prerun_reqs_v2 <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py FAILED [ 38%]
../../../../dev/test/test_runtime.py::test__update_env_no_old_value_no_default_no_value <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 39%]
../../../../dev/test/test_runtime.py::test__update_env_no_old_value_no_value <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 41%]
../../../../dev/test/test_runtime.py::test__update_env_no_default_no_value <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 42%]
../../../../dev/test/test_runtime.py::test__update_env_no_old_value_no_default[value0-a] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 43%]
../../../../dev/test/test_runtime.py::test__update_env_no_old_value_no_default[value1-a:b] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 44%]
../../../../dev/test/test_runtime.py::test__update_env_no_old_value_no_default[value2-a:b:c] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 46%]
../../../../dev/test/test_runtime.py::test__update_env_no_old_value[a:b-value0-c:a:b] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 47%]
../../../../dev/test/test_runtime.py::test__update_env_no_old_value[a:b-value1-c:d:a:b] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 48%]
../../../../dev/test/test_runtime.py::test__update_env_no_default[a:b-value0-c:a:b] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 50%]
../../../../dev/test/test_runtime.py::test__update_env_no_default[a:b-value1-c:d:a:b] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 51%]
../../../../dev/test/test_runtime.py::test__update_env[--value0-e] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 52%]
../../../../dev/test/test_runtime.py::test__update_env[a--value1-e:a] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 53%]
../../../../dev/test/test_runtime.py::test__update_env[-c-value2-e] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 55%]
../../../../dev/test/test_runtime.py::test__update_env[a-c-value3-e:f:a] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 56%]
../../../../dev/test/test_runtime.py::test_require_collection_wrong_version <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py FAILED [ 57%]
../../../../dev/test/test_runtime.py::test_require_collection_invalid_name <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 58%]
../../../../dev/test/test_runtime.py::test_require_collection_invalid_collections_path <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 60%]
../../../../dev/test/test_runtime.py::test_require_collection_preexisting_broken <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 61%]
../../../../dev/test/test_runtime.py::test_require_collection <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py FAILED [ 62%]
../../../../dev/test/test_runtime.py::test_require_collection_missing[a] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 64%]
../../../../dev/test/test_runtime.py::test_require_collection_missing[b] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 65%]
../../../../dev/test/test_runtime.py::test_require_collection_missing[c] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 66%]
../../../../dev/test/test_runtime.py::test_install_collection <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py FAILED [ 67%]
../../../../dev/test/test_runtime.py::test_install_collection_dest <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py FAILED [ 69%]
../../../../dev/test/test_runtime.py::test_install_collection_fail <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 70%]
../../../../dev/test/test_runtime.py::test_install_galaxy_role <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 71%]
../../../../dev/test/test_runtime.py::test_install_galaxy_role_unlink <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 73%]
../../../../dev/test/test_runtime.py::test_install_galaxy_role_bad_namespace <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 74%]
../../../../dev/test/test_runtime.py::test_install_galaxy_role_name_role_name_check_equals_to_1[bad-name] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 75%]
../../../../dev/test/test_runtime.py::test_install_galaxy_role_name_role_name_check_equals_to_1[bad-name-without-namespace] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 76%]
../../../../dev/test/test_runtime.py::test_install_galaxy_role_no_checks <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 78%]
../../../../dev/test/test_runtime.py::test_upgrade_collection <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py FAILED [ 79%]
../../../../dev/test/test_runtime.py::test_require_collection_no_cache_dir <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py FAILED [ 80%]
../../../../dev/test/test_runtime.py::test_runtime_env_ansible_library <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 82%]
../../../../dev/test/test_runtime.py::test_runtime_version_in_range[1] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 83%]
../../../../dev/test/test_runtime.py::test_runtime_version_in_range[2] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 84%]
../../../../dev/test/test_runtime.py::test_runtime_version_in_range[3] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 85%]
../../../../dev/test/test_runtime.py::test_runtime_version_in_range[4] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 87%]
../../../../dev/test/test_runtime.py::test_runtime_version_in_range[5] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 88%]
../../../../dev/test/test_runtime.py::test_install_collection_from_disk[normal] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py FAILED [ 89%]
../../../../dev/test/test_runtime.py::test_install_collection_from_disk[deep] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py FAILED [ 91%]
../../../../dev/test/test_runtime.py::test_install_collection_from_disk_fail <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 92%]
../../../../dev/test/test_runtime.py::test_prepare_environment_offline_role <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 93%]
../../../../dev/test/test_runtime.py::test_runtime_run <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 94%]
../../../../dev/test/test_runtime.py::test_runtime_exec_cwd <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 96%]
../../../../dev/test/test_runtime.py::test_runtime_exec_env <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py PASSED [ 97%]
../../../../dev/test/test_runtime_example.py::test_runtime_example <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime_example.py FAILED [ 98%]
../../../../dev/test/test_schema.py::test_schema[0] <- ../build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_schema.py PASSED [100%]

=================================== FAILURES ===================================
__________________ test_prepare_environment_with_collections ___________________

tmp_path = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_prepare_environment_with_0')

    def test_prepare_environment_with_collections(tmp_path: pathlib.Path) -> None:
        """Check that collections are correctly installed."""
        runtime = Runtime(isolated=True, project_dir=str(tmp_path))
>       runtime.prepare_environment(required_collections={"community.molecule": "0.1.0"})

test/test_runtime.py:154: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:362: in prepare_environment
    self.install_collection(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ansible_compat.runtime.Runtime object at 0x400484bfd0>
collection = 'community.molecule:>=0.1.0'
destination = '/build/.cache/ansible-compat/5e37ff/collections', force = False

    def install_collection(
        self,
        collection: str,
        destination: Optional[Union[str, pathlib.Path]] = None,
        force: bool = False,
    ) -> None:
        """Install an Ansible collection.
    
        Can accept version constraints like 'foo.bar:>=1.2.3'
        """
        cmd = [
            "ansible-galaxy",
            "collection",
            "install",
            "-vvv",  # this is needed to make ansible display important info in case of failures
        ]
    
        # ansible-galaxy before 2.11 fails to upgrade collection unless --force
        # is present, newer versions do not need it
        if force or self.version_in_range(upper="2.11"):
            cmd.append("--force")
    
        # As ansible-galaxy install is not able to automatically determine
        # if the range requires a pre-release, we need to manuall add the --pre
        # flag when needed.
        matches = version_re.search(collection)
        if matches and Version(matches[1]).is_prerelease:
            cmd.append("--pre")
    
        if destination:
            cmd.extend(["-p", str(destination)])
        cmd.append(f"{collection}")
    
        _logger.info("Running from %s : %s", os.getcwd(), " ".join(cmd))
        run = self.exec(
            cmd,
            retry=True,
        )
        if run.returncode != 0:
            msg = f"Command returned {run.returncode} code:\n{run.stdout}\n{run.stderr}"
            _logger.error(msg)
>           raise InvalidPrerequisiteError(msg)
E           ansible_compat.errors.InvalidPrerequisiteError: Command returned 1 code:
E           ansible-galaxy [core 2.14.0]
E             config file = /etc/ansible/ansible.cfg
E             configured module search path = ['/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
E             ansible python module location = /usr/lib/python3.10/site-packages/ansible
E             ansible collection location = /build/.ansible/collections:/usr/share/ansible/collections
E             executable location = /usr/bin/ansible-galaxy
E             python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
E             jinja version = 3.1.2
E             libyaml = True
E           Using /etc/ansible/ansible.cfg as config file
E           Starting galaxy collection install process
E           Process install dependency map
E           
E           [WARNING]: The specified collections path '/build/.cache/ansible-
E           compat/5e37ff/collections' is not part of the configured Ansible collections
E           paths '/build/.ansible/collections:/usr/share/ansible/collections'. The
E           installed collection will not be picked up in an Ansible run, unless within a
E           playbook-adjacent collections directory.
E           ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3

test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:242: InvalidPrerequisiteError
------------------------------ Captured log call -------------------------------
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv -p /build/.cache/ansible-compat/5e37ff/collections community.molecule:>=0.1.0
ERROR    ansible_compat.runtime:runtime.py:241 Command returned 1 code:
ansible-galaxy [core 2.14.0]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /build/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
  jinja version = 3.1.2
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Process install dependency map

[WARNING]: The specified collections path '/build/.cache/ansible-
compat/5e37ff/collections' is not part of the configured Ansible collections
paths '/build/.ansible/collections:/usr/share/ansible/collections'. The
installed collection will not be picked up in an Ansible run, unless within a
playbook-adjacent collections directory.
ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
_____________________________ test_prerun_reqs_v2 ______________________________

caplog = <_pytest.logging.LogCaptureFixture object at 0x400484b7f0>
runtime = <ansible_compat.runtime.Runtime object at 0x4004849ea0>

    @flaky(max_runs=3)  # type: ignore
    def test_prerun_reqs_v2(caplog: pytest.LogCaptureFixture, runtime: Runtime) -> None:
        """Checks that the linter can auto-install requirements v2 when found."""
        cwd = os.path.realpath(
            os.path.join(
                os.path.dirname(os.path.realpath(__file__)), "..", "examples", "reqs_v2"
            )
        )
        with remember_cwd(cwd):
            with caplog.at_level(logging.INFO):
>               runtime.prepare_environment()

test/test_runtime.py:247: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:358: in prepare_environment
    self.install_requirements(req_file, retry=retry, offline=offline)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ansible_compat.runtime.Runtime object at 0x4004849ea0>
requirement = 'requirements.yml', retry = False, offline = False

    def install_requirements(
        self, requirement: str, retry: bool = False, offline: bool = False
    ) -> None:
        """Install dependencies from a requirements.yml."""
        if not os.path.exists(requirement):
            return
        reqs_yaml = yaml_from_file(requirement)
        if not isinstance(reqs_yaml, (dict, list)):
            raise InvalidPrerequisiteError(
                f"{requirement} file is not a valid Ansible requirements file."
            )
    
        if isinstance(reqs_yaml, list) or "roles" in reqs_yaml:
            cmd = [
                "ansible-galaxy",
                "role",
                "install",
                "-vr",
                f"{requirement}",
            ]
            if self.cache_dir:
                cmd.extend(["--roles-path", f"{self.cache_dir}/roles"])
    
            if offline:
                _logger.warning(
                    "Role installation skipped because `ansible-galaxy role install` command does not support an offline mode."
                )
            else:
                _logger.info("Running %s", " ".join(cmd))
                result = self.exec(cmd, retry=retry)
                if result.returncode != 0:
                    _logger.error(result.stdout)
                    raise AnsibleCommandError(result)
    
        # Run galaxy collection install works on v2 requirements.yml
        if "collections" in reqs_yaml:
    
            cmd = [
                "ansible-galaxy",
                "collection",
                "install",
                "-v",
            ]
            skip = False
            if offline:
                if self.version_in_range(upper="2.14"):
                    _logger.warning(
                        "Collection install skipped because ansible versions before 2.14 do not support an offline mode."
                    )
                    skip = True
                else:
                    cmd.append("--offline")
            if not skip:
                cmd.extend(["-r", requirement])
                if self.cache_dir:
                    cmd.extend(["-p", f"{self.cache_dir}/collections"])
                _logger.info("Running %s", " ".join(cmd))
                result = self.exec(cmd, retry=retry)
                if result.returncode != 0:
                    _logger.error(result.stdout)
                    _logger.error(result.stderr)
>                   raise AnsibleCommandError(result)
E                   ansible_compat.errors.AnsibleCommandError: Got 1 exit code while running: ansible-galaxy collection install -v -r requirements.yml -p /build/.cache/ansible-compat/a7ecd2/collections

test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:335: AnsibleCommandError
------------------------------ Captured log call -------------------------------
INFO     ansible_compat.runtime:runtime.py:302 Running ansible-galaxy role install -vr requirements.yml --roles-path /build/.cache/ansible-compat/a7ecd2/roles
INFO     ansible_compat.runtime:runtime.py:330 Running ansible-galaxy collection install -v -r requirements.yml -p /build/.cache/ansible-compat/a7ecd2/collections
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -v -r requirements.yml -p /build/.cache/ansible-compat/a7ecd2/collections
ERROR    ansible_compat.runtime:runtime.py:333 Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Process install dependency map

ERROR    ansible_compat.runtime:runtime.py:334 [WARNING]: The specified collections path '/build/.cache/ansible-
compat/a7ecd2/collections' is not part of the configured Ansible collections
paths '/build/.ansible/collections:/usr/share/ansible/collections'. The
installed collection will not be picked up in an Ansible run, unless within a
playbook-adjacent collections directory.
ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
------------------------------ Captured log call -------------------------------
INFO     ansible_compat.runtime:runtime.py:302 Running ansible-galaxy role install -vr requirements.yml --roles-path /build/.cache/ansible-compat/a7ecd2/roles
INFO     ansible_compat.runtime:runtime.py:330 Running ansible-galaxy collection install -v -r requirements.yml -p /build/.cache/ansible-compat/a7ecd2/collections
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -v -r requirements.yml -p /build/.cache/ansible-compat/a7ecd2/collections
ERROR    ansible_compat.runtime:runtime.py:333 Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Process install dependency map

ERROR    ansible_compat.runtime:runtime.py:334 [WARNING]: The specified collections path '/build/.cache/ansible-
compat/a7ecd2/collections' is not part of the configured Ansible collections
paths '/build/.ansible/collections:/usr/share/ansible/collections'. The
installed collection will not be picked up in an Ansible run, unless within a
playbook-adjacent collections directory.
ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
------------------------------ Captured log call -------------------------------
INFO     ansible_compat.runtime:runtime.py:302 Running ansible-galaxy role install -vr requirements.yml --roles-path /build/.cache/ansible-compat/a7ecd2/roles
INFO     ansible_compat.runtime:runtime.py:330 Running ansible-galaxy collection install -v -r requirements.yml -p /build/.cache/ansible-compat/a7ecd2/collections
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -v -r requirements.yml -p /build/.cache/ansible-compat/a7ecd2/collections
ERROR    ansible_compat.runtime:runtime.py:333 Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Process install dependency map

ERROR    ansible_compat.runtime:runtime.py:334 [WARNING]: The specified collections path '/build/.cache/ansible-
compat/a7ecd2/collections' is not part of the configured Ansible collections
paths '/build/.ansible/collections:/usr/share/ansible/collections'. The
installed collection will not be picked up in an Ansible run, unless within a
playbook-adjacent collections directory.
ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
____________________ test_require_collection_wrong_version _____________________

runtime = <ansible_compat.runtime.Runtime object at 0x400484a8c0>

    def test_require_collection_wrong_version(runtime: Runtime) -> None:
        """Tests behaviour of require_collection."""
>       subprocess.check_output(
            [
                "ansible-galaxy",
                "collection",
                "install",
                "containers.podman",
                "-p",
                "~/.ansible/collections",
            ]
        )

test/test_runtime.py:373: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/subprocess.py:421: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['ansible-galaxy', 'collection', 'install', 'containers.podman', '-p', '~/.ansible/collections'],)
kwargs = {'stdout': -1}
process = <Popen: returncode: 1 args: ['ansible-galaxy', 'collection', 'install', 'con...>
stdout = b'Starting galaxy collection install process\nProcess install dependency map\n'
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
        or pass capture_output=True to capture both.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['ansible-galaxy', 'collection', 'install', 'containers.podman', '-p', '~/.ansible/collections']' returned non-zero exit status 1.

/usr/lib/python3.10/subprocess.py:526: CalledProcessError
----------------------------- Captured stderr call -----------------------------
ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
___________________________ test_require_collection ____________________________

runtime_tmp = <ansible_compat.runtime.Runtime object at 0x4004930460>

    def test_require_collection(runtime_tmp: Runtime) -> None:
        """Check that require collection successful install case."""
>       runtime_tmp.require_collection("community.molecule", "0.1.0")

test/test_runtime.py:418: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:459: in require_collection
    self.install_collection(f"{name}:>={version}" if version else name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ansible_compat.runtime.Runtime object at 0x4004930460>
collection = 'community.molecule:>=0.1.0', destination = None, force = False

    def install_collection(
        self,
        collection: str,
        destination: Optional[Union[str, pathlib.Path]] = None,
        force: bool = False,
    ) -> None:
        """Install an Ansible collection.
    
        Can accept version constraints like 'foo.bar:>=1.2.3'
        """
        cmd = [
            "ansible-galaxy",
            "collection",
            "install",
            "-vvv",  # this is needed to make ansible display important info in case of failures
        ]
    
        # ansible-galaxy before 2.11 fails to upgrade collection unless --force
        # is present, newer versions do not need it
        if force or self.version_in_range(upper="2.11"):
            cmd.append("--force")
    
        # As ansible-galaxy install is not able to automatically determine
        # if the range requires a pre-release, we need to manuall add the --pre
        # flag when needed.
        matches = version_re.search(collection)
        if matches and Version(matches[1]).is_prerelease:
            cmd.append("--pre")
    
        if destination:
            cmd.extend(["-p", str(destination)])
        cmd.append(f"{collection}")
    
        _logger.info("Running from %s : %s", os.getcwd(), " ".join(cmd))
        run = self.exec(
            cmd,
            retry=True,
        )
        if run.returncode != 0:
            msg = f"Command returned {run.returncode} code:\n{run.stdout}\n{run.stderr}"
            _logger.error(msg)
>           raise InvalidPrerequisiteError(msg)
E           ansible_compat.errors.InvalidPrerequisiteError: Command returned 1 code:
E           ansible-galaxy [core 2.14.0]
E             config file = /etc/ansible/ansible.cfg
E             configured module search path = ['/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
E             ansible python module location = /usr/lib/python3.10/site-packages/ansible
E             ansible collection location = /build/.ansible/collections:/usr/share/ansible/collections
E             executable location = /usr/bin/ansible-galaxy
E             python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
E             jinja version = 3.1.2
E             libyaml = True
E           Using /etc/ansible/ansible.cfg as config file
E           Starting galaxy collection install process
E           Found installed collection foo.bar:* at '/build/.ansible/collections/ansible_collections/foo/bar'
E           Process install dependency map
E           
E           [WARNING]: Collection at
E           '/build/.ansible/collections/ansible_collections/foo/bar' does not have a
E           MANIFEST.json file, nor has it galaxy.yml: cannot detect version.
E           ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3

test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:242: InvalidPrerequisiteError
------------------------------ Captured log call -------------------------------
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv community.molecule:>=0.1.0
ERROR    ansible_compat.runtime:runtime.py:241 Command returned 1 code:
ansible-galaxy [core 2.14.0]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /build/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
  jinja version = 3.1.2
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Found installed collection foo.bar:* at '/build/.ansible/collections/ansible_collections/foo/bar'
Process install dependency map

[WARNING]: Collection at
'/build/.ansible/collections/ansible_collections/foo/bar' does not have a
MANIFEST.json file, nor has it galaxy.yml: cannot detect version.
ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
___________________________ test_install_collection ____________________________

runtime = <ansible_compat.runtime.Runtime object at 0x400483aa10>

    def test_install_collection(runtime: Runtime) -> None:
        """Check that valid collection installs do not fail."""
>       runtime.install_collection("containers.podman:>=1.0")

test/test_runtime.py:442: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ansible_compat.runtime.Runtime object at 0x400483aa10>
collection = 'containers.podman:>=1.0', destination = None, force = False

    def install_collection(
        self,
        collection: str,
        destination: Optional[Union[str, pathlib.Path]] = None,
        force: bool = False,
    ) -> None:
        """Install an Ansible collection.
    
        Can accept version constraints like 'foo.bar:>=1.2.3'
        """
        cmd = [
            "ansible-galaxy",
            "collection",
            "install",
            "-vvv",  # this is needed to make ansible display important info in case of failures
        ]
    
        # ansible-galaxy before 2.11 fails to upgrade collection unless --force
        # is present, newer versions do not need it
        if force or self.version_in_range(upper="2.11"):
            cmd.append("--force")
    
        # As ansible-galaxy install is not able to automatically determine
        # if the range requires a pre-release, we need to manuall add the --pre
        # flag when needed.
        matches = version_re.search(collection)
        if matches and Version(matches[1]).is_prerelease:
            cmd.append("--pre")
    
        if destination:
            cmd.extend(["-p", str(destination)])
        cmd.append(f"{collection}")
    
        _logger.info("Running from %s : %s", os.getcwd(), " ".join(cmd))
        run = self.exec(
            cmd,
            retry=True,
        )
        if run.returncode != 0:
            msg = f"Command returned {run.returncode} code:\n{run.stdout}\n{run.stderr}"
            _logger.error(msg)
>           raise InvalidPrerequisiteError(msg)
E           ansible_compat.errors.InvalidPrerequisiteError: Command returned 1 code:
E           ansible-galaxy [core 2.14.0]
E             config file = /etc/ansible/ansible.cfg
E             configured module search path = ['/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
E             ansible python module location = /usr/lib/python3.10/site-packages/ansible
E             ansible collection location = /build/.ansible/collections:/usr/share/ansible/collections
E             executable location = /usr/bin/ansible-galaxy
E             python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
E             jinja version = 3.1.2
E             libyaml = True
E           Using /etc/ansible/ansible.cfg as config file
E           Starting galaxy collection install process
E           Found installed collection foo.bar:* at '/build/.ansible/collections/ansible_collections/foo/bar'
E           Process install dependency map
E           
E           [WARNING]: Collection at
E           '/build/.ansible/collections/ansible_collections/foo/bar' does not have a
E           MANIFEST.json file, nor has it galaxy.yml: cannot detect version.
E           ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3

test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:242: InvalidPrerequisiteError
------------------------------ Captured log call -------------------------------
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv containers.podman:>=1.0
ERROR    ansible_compat.runtime:runtime.py:241 Command returned 1 code:
ansible-galaxy [core 2.14.0]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /build/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
  jinja version = 3.1.2
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Found installed collection foo.bar:* at '/build/.ansible/collections/ansible_collections/foo/bar'
Process install dependency map

[WARNING]: Collection at
'/build/.ansible/collections/ansible_collections/foo/bar' does not have a
MANIFEST.json file, nor has it galaxy.yml: cannot detect version.
ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
_________________________ test_install_collection_dest _________________________

runtime = <ansible_compat.runtime.Runtime object at 0x4004910d30>
tmp_path = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_install_collection_dest0')

    def test_install_collection_dest(runtime: Runtime, tmp_path: pathlib.Path) -> None:
        """Check that valid collection to custom destination passes."""
>       runtime.install_collection("containers.podman:>=1.0", destination=tmp_path)

test/test_runtime.py:447: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ansible_compat.runtime.Runtime object at 0x4004910d30>
collection = 'containers.podman:>=1.0'
destination = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_install_collection_dest0')
force = False

    def install_collection(
        self,
        collection: str,
        destination: Optional[Union[str, pathlib.Path]] = None,
        force: bool = False,
    ) -> None:
        """Install an Ansible collection.
    
        Can accept version constraints like 'foo.bar:>=1.2.3'
        """
        cmd = [
            "ansible-galaxy",
            "collection",
            "install",
            "-vvv",  # this is needed to make ansible display important info in case of failures
        ]
    
        # ansible-galaxy before 2.11 fails to upgrade collection unless --force
        # is present, newer versions do not need it
        if force or self.version_in_range(upper="2.11"):
            cmd.append("--force")
    
        # As ansible-galaxy install is not able to automatically determine
        # if the range requires a pre-release, we need to manuall add the --pre
        # flag when needed.
        matches = version_re.search(collection)
        if matches and Version(matches[1]).is_prerelease:
            cmd.append("--pre")
    
        if destination:
            cmd.extend(["-p", str(destination)])
        cmd.append(f"{collection}")
    
        _logger.info("Running from %s : %s", os.getcwd(), " ".join(cmd))
        run = self.exec(
            cmd,
            retry=True,
        )
        if run.returncode != 0:
            msg = f"Command returned {run.returncode} code:\n{run.stdout}\n{run.stderr}"
            _logger.error(msg)
>           raise InvalidPrerequisiteError(msg)
E           ansible_compat.errors.InvalidPrerequisiteError: Command returned 1 code:
E           ansible-galaxy [core 2.14.0]
E             config file = /etc/ansible/ansible.cfg
E             configured module search path = ['/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
E             ansible python module location = /usr/lib/python3.10/site-packages/ansible
E             ansible collection location = /build/.ansible/collections:/usr/share/ansible/collections
E             executable location = /usr/bin/ansible-galaxy
E             python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
E             jinja version = 3.1.2
E             libyaml = True
E           Using /etc/ansible/ansible.cfg as config file
E           Starting galaxy collection install process
E           Process install dependency map
E           
E           [WARNING]: The specified collections path '/tmp/pytest-of-
E           builduser/pytest-0/test_install_collection_dest0' is not part of the configured
E           Ansible collections paths
E           '/build/.ansible/collections:/usr/share/ansible/collections'. The installed
E           collection will not be picked up in an Ansible run, unless within a playbook-
E           adjacent collections directory.
E           ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3

test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:242: InvalidPrerequisiteError
------------------------------ Captured log call -------------------------------
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv -p /tmp/pytest-of-builduser/pytest-0/test_install_collection_dest0 containers.podman:>=1.0
ERROR    ansible_compat.runtime:runtime.py:241 Command returned 1 code:
ansible-galaxy [core 2.14.0]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /build/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
  jinja version = 3.1.2
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Process install dependency map

[WARNING]: The specified collections path '/tmp/pytest-of-
builduser/pytest-0/test_install_collection_dest0' is not part of the configured
Ansible collections paths
'/build/.ansible/collections:/usr/share/ansible/collections'. The installed
collection will not be picked up in an Ansible run, unless within a playbook-
adjacent collections directory.
ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
___________________________ test_upgrade_collection ____________________________

runtime_tmp = <ansible_compat.runtime.Runtime object at 0x40048390c0>

    def test_upgrade_collection(runtime_tmp: Runtime) -> None:
        """Check that collection upgrade is possible."""
        # ensure that we inject our tmp folders in ansible paths
        runtime_tmp.prepare_environment()
    
        # we install specific oudated version of a collection
>       runtime_tmp.install_collection("containers.podman:==1.6.0")

test/test_runtime.py:567: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ansible_compat.runtime.Runtime object at 0x40048390c0>
collection = 'containers.podman:==1.6.0', destination = None, force = False

    def install_collection(
        self,
        collection: str,
        destination: Optional[Union[str, pathlib.Path]] = None,
        force: bool = False,
    ) -> None:
        """Install an Ansible collection.
    
        Can accept version constraints like 'foo.bar:>=1.2.3'
        """
        cmd = [
            "ansible-galaxy",
            "collection",
            "install",
            "-vvv",  # this is needed to make ansible display important info in case of failures
        ]
    
        # ansible-galaxy before 2.11 fails to upgrade collection unless --force
        # is present, newer versions do not need it
        if force or self.version_in_range(upper="2.11"):
            cmd.append("--force")
    
        # As ansible-galaxy install is not able to automatically determine
        # if the range requires a pre-release, we need to manuall add the --pre
        # flag when needed.
        matches = version_re.search(collection)
        if matches and Version(matches[1]).is_prerelease:
            cmd.append("--pre")
    
        if destination:
            cmd.extend(["-p", str(destination)])
        cmd.append(f"{collection}")
    
        _logger.info("Running from %s : %s", os.getcwd(), " ".join(cmd))
        run = self.exec(
            cmd,
            retry=True,
        )
        if run.returncode != 0:
            msg = f"Command returned {run.returncode} code:\n{run.stdout}\n{run.stderr}"
            _logger.error(msg)
>           raise InvalidPrerequisiteError(msg)
E           ansible_compat.errors.InvalidPrerequisiteError: Command returned 1 code:
E           ansible-galaxy [core 2.14.0]
E             config file = /etc/ansible/ansible.cfg
E             configured module search path = ['/build/.cache/ansible-compat/a3c298/modules', '/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
E             ansible python module location = /usr/lib/python3.10/site-packages/ansible
E             ansible collection location = /build/.cache/ansible-compat/a3c298/collections:/build/.ansible/collections:/usr/share/ansible/collections
E             executable location = /usr/bin/ansible-galaxy
E             python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
E             jinja version = 3.1.2
E             libyaml = True
E           Using /etc/ansible/ansible.cfg as config file
E           Starting galaxy collection install process
E           Process install dependency map
E           
E           ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3

test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:242: InvalidPrerequisiteError
------------------------------ Captured log call -------------------------------
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv containers.podman:==1.6.0
ERROR    ansible_compat.runtime:runtime.py:241 Command returned 1 code:
ansible-galaxy [core 2.14.0]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/build/.cache/ansible-compat/a3c298/modules', '/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /build/.cache/ansible-compat/a3c298/collections:/build/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
  jinja version = 3.1.2
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Process install dependency map

ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
_____________________ test_require_collection_no_cache_dir _____________________

    def test_require_collection_no_cache_dir() -> None:
        """Check require_collection without a cache directory."""
        runtime = Runtime()
        assert not runtime.cache_dir
>       runtime.require_collection("community.molecule", "0.1.0", install=True)

test/test_runtime.py:582: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:459: in require_collection
    self.install_collection(f"{name}:>={version}" if version else name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ansible_compat.runtime.Runtime object at 0x4004849510>
collection = 'community.molecule:>=0.1.0', destination = None, force = False

    def install_collection(
        self,
        collection: str,
        destination: Optional[Union[str, pathlib.Path]] = None,
        force: bool = False,
    ) -> None:
        """Install an Ansible collection.
    
        Can accept version constraints like 'foo.bar:>=1.2.3'
        """
        cmd = [
            "ansible-galaxy",
            "collection",
            "install",
            "-vvv",  # this is needed to make ansible display important info in case of failures
        ]
    
        # ansible-galaxy before 2.11 fails to upgrade collection unless --force
        # is present, newer versions do not need it
        if force or self.version_in_range(upper="2.11"):
            cmd.append("--force")
    
        # As ansible-galaxy install is not able to automatically determine
        # if the range requires a pre-release, we need to manuall add the --pre
        # flag when needed.
        matches = version_re.search(collection)
        if matches and Version(matches[1]).is_prerelease:
            cmd.append("--pre")
    
        if destination:
            cmd.extend(["-p", str(destination)])
        cmd.append(f"{collection}")
    
        _logger.info("Running from %s : %s", os.getcwd(), " ".join(cmd))
        run = self.exec(
            cmd,
            retry=True,
        )
        if run.returncode != 0:
            msg = f"Command returned {run.returncode} code:\n{run.stdout}\n{run.stderr}"
            _logger.error(msg)
>           raise InvalidPrerequisiteError(msg)
E           ansible_compat.errors.InvalidPrerequisiteError: Command returned 1 code:
E           ansible-galaxy [core 2.14.0]
E             config file = /etc/ansible/ansible.cfg
E             configured module search path = ['/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
E             ansible python module location = /usr/lib/python3.10/site-packages/ansible
E             ansible collection location = /build/.ansible/collections:/usr/share/ansible/collections
E             executable location = /usr/bin/ansible-galaxy
E             python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
E             jinja version = 3.1.2
E             libyaml = True
E           Using /etc/ansible/ansible.cfg as config file
E           Starting galaxy collection install process
E           Found installed collection foo.bar:* at '/build/.ansible/collections/ansible_collections/foo/bar'
E           Process install dependency map
E           
E           [WARNING]: Collection at
E           '/build/.ansible/collections/ansible_collections/foo/bar' does not have a
E           MANIFEST.json file, nor has it galaxy.yml: cannot detect version.
E           ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3

test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:242: InvalidPrerequisiteError
------------------------------ Captured log call -------------------------------
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv community.molecule:>=0.1.0
ERROR    ansible_compat.runtime:runtime.py:241 Command returned 1 code:
ansible-galaxy [core 2.14.0]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /build/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
  jinja version = 3.1.2
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Found installed collection foo.bar:* at '/build/.ansible/collections/ansible_collections/foo/bar'
Process install dependency map

[WARNING]: Collection at
'/build/.ansible/collections/ansible_collections/foo/bar' does not have a
MANIFEST.json file, nor has it galaxy.yml: cannot detect version.
ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
__________________ test_install_collection_from_disk[normal] ___________________

path = 'test/collections/acme.goodies', scenario = 'default'

    @pytest.mark.parametrize(
        ("path", "scenario"),
        (
            ("test/collections/acme.goodies", "default"),
            ("test/collections/acme.goodies/roles/baz", "deep_scenario"),
        ),
        ids=("normal", "deep"),
    )
    def test_install_collection_from_disk(path: str, scenario: str) -> None:
        """Tests ability to install a local collection."""
        # ensure we do not have acme.google installed in user directory as it may
        # produce false positives
        rmtree(
            os.path.expanduser("~/.ansible/collections/ansible_collections/acme/goodies"),
            ignore_errors=True,
        )
        with remember_cwd(path):
            runtime = Runtime(isolated=True)
            # this should call install_collection_from_disk(".")
>           runtime.prepare_environment(install_local=True)

test/test_runtime.py:634: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:389: in prepare_environment
    self.install_collection_from_disk(".", destination=destination)
test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:249: in install_collection_from_disk
    self.install_collection(path, destination=destination, force=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ansible_compat.runtime.Runtime object at 0x4004931cf0>, collection = '.'
destination = '/build/.cache/ansible-compat/cfbda8/collections', force = True

    def install_collection(
        self,
        collection: str,
        destination: Optional[Union[str, pathlib.Path]] = None,
        force: bool = False,
    ) -> None:
        """Install an Ansible collection.
    
        Can accept version constraints like 'foo.bar:>=1.2.3'
        """
        cmd = [
            "ansible-galaxy",
            "collection",
            "install",
            "-vvv",  # this is needed to make ansible display important info in case of failures
        ]
    
        # ansible-galaxy before 2.11 fails to upgrade collection unless --force
        # is present, newer versions do not need it
        if force or self.version_in_range(upper="2.11"):
            cmd.append("--force")
    
        # As ansible-galaxy install is not able to automatically determine
        # if the range requires a pre-release, we need to manuall add the --pre
        # flag when needed.
        matches = version_re.search(collection)
        if matches and Version(matches[1]).is_prerelease:
            cmd.append("--pre")
    
        if destination:
            cmd.extend(["-p", str(destination)])
        cmd.append(f"{collection}")
    
        _logger.info("Running from %s : %s", os.getcwd(), " ".join(cmd))
        run = self.exec(
            cmd,
            retry=True,
        )
        if run.returncode != 0:
            msg = f"Command returned {run.returncode} code:\n{run.stdout}\n{run.stderr}"
            _logger.error(msg)
>           raise InvalidPrerequisiteError(msg)
E           ansible_compat.errors.InvalidPrerequisiteError: Command returned 1 code:
E           ansible-galaxy [core 2.14.0]
E             config file = /etc/ansible/ansible.cfg
E             configured module search path = ['/build/.cache/ansible-compat/cfbda8/modules', '/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
E             ansible python module location = /usr/lib/python3.10/site-packages/ansible
E             ansible collection location = /build/.cache/ansible-compat/cfbda8/collections:/build/.ansible/collections:/usr/share/ansible/collections
E             executable location = /usr/bin/ansible-galaxy
E             python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
E             jinja version = 3.1.2
E             libyaml = True
E           Using /etc/ansible/ansible.cfg as config file
E           Starting galaxy collection install process
E           Process install dependency map
E           
E           ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3

test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:242: InvalidPrerequisiteError
------------------------------ Captured log call -------------------------------
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv --force -p /build/.cache/ansible-compat/cfbda8/collections .
ERROR    ansible_compat.runtime:runtime.py:241 Command returned 1 code:
ansible-galaxy [core 2.14.0]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/build/.cache/ansible-compat/cfbda8/modules', '/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /build/.cache/ansible-compat/cfbda8/collections:/build/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
  jinja version = 3.1.2
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Process install dependency map

ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
___________________ test_install_collection_from_disk[deep] ____________________

path = 'test/collections/acme.goodies/roles/baz', scenario = 'deep_scenario'

    @pytest.mark.parametrize(
        ("path", "scenario"),
        (
            ("test/collections/acme.goodies", "default"),
            ("test/collections/acme.goodies/roles/baz", "deep_scenario"),
        ),
        ids=("normal", "deep"),
    )
    def test_install_collection_from_disk(path: str, scenario: str) -> None:
        """Tests ability to install a local collection."""
        # ensure we do not have acme.google installed in user directory as it may
        # produce false positives
        rmtree(
            os.path.expanduser("~/.ansible/collections/ansible_collections/acme/goodies"),
            ignore_errors=True,
        )
        with remember_cwd(path):
            runtime = Runtime(isolated=True)
            # this should call install_collection_from_disk(".")
>           runtime.prepare_environment(install_local=True)

test/test_runtime.py:634: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:395: in prepare_environment
    self.install_collection_from_disk("../..", destination=destination)
test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:249: in install_collection_from_disk
    self.install_collection(path, destination=destination, force=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ansible_compat.runtime.Runtime object at 0x40049c03d0>
collection = '../..'
destination = '/build/.cache/ansible-compat/baa5a0/collections', force = True

    def install_collection(
        self,
        collection: str,
        destination: Optional[Union[str, pathlib.Path]] = None,
        force: bool = False,
    ) -> None:
        """Install an Ansible collection.
    
        Can accept version constraints like 'foo.bar:>=1.2.3'
        """
        cmd = [
            "ansible-galaxy",
            "collection",
            "install",
            "-vvv",  # this is needed to make ansible display important info in case of failures
        ]
    
        # ansible-galaxy before 2.11 fails to upgrade collection unless --force
        # is present, newer versions do not need it
        if force or self.version_in_range(upper="2.11"):
            cmd.append("--force")
    
        # As ansible-galaxy install is not able to automatically determine
        # if the range requires a pre-release, we need to manuall add the --pre
        # flag when needed.
        matches = version_re.search(collection)
        if matches and Version(matches[1]).is_prerelease:
            cmd.append("--pre")
    
        if destination:
            cmd.extend(["-p", str(destination)])
        cmd.append(f"{collection}")
    
        _logger.info("Running from %s : %s", os.getcwd(), " ".join(cmd))
        run = self.exec(
            cmd,
            retry=True,
        )
        if run.returncode != 0:
            msg = f"Command returned {run.returncode} code:\n{run.stdout}\n{run.stderr}"
            _logger.error(msg)
>           raise InvalidPrerequisiteError(msg)
E           ansible_compat.errors.InvalidPrerequisiteError: Command returned 1 code:
E           ansible-galaxy [core 2.14.0]
E             config file = /etc/ansible/ansible.cfg
E             configured module search path = ['/build/.cache/ansible-compat/baa5a0/modules', '/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
E             ansible python module location = /usr/lib/python3.10/site-packages/ansible
E             ansible collection location = /build/.cache/ansible-compat/baa5a0/collections:/build/.ansible/collections:/usr/share/ansible/collections
E             executable location = /usr/bin/ansible-galaxy
E             python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
E             jinja version = 3.1.2
E             libyaml = True
E           Using /etc/ansible/ansible.cfg as config file
E           Starting galaxy collection install process
E           Process install dependency map
E           
E           ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3

test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:242: InvalidPrerequisiteError
------------------------------ Captured log call -------------------------------
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv --force -p /build/.cache/ansible-compat/baa5a0/collections ../..
ERROR    ansible_compat.runtime:runtime.py:241 Command returned 1 code:
ansible-galaxy [core 2.14.0]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/build/.cache/ansible-compat/baa5a0/modules', '/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /build/.cache/ansible-compat/baa5a0/collections:/build/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
  jinja version = 3.1.2
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Process install dependency map

ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
_____________________________ test_runtime_example _____________________________

    def test_runtime_example() -> None:
        """Test basic functionality of Runtime class."""
        # instantiate the runtime using isolated mode, so installing new
        # roles/collections do not pollute the default setup.
        runtime = Runtime(isolated=True, max_retries=3)
    
        # Print Ansible core version
        print(runtime.version)  # 2.9.10 (Version object)
        # Get configuration info from runtime
        print(runtime.config.collections_path)
    
        # Detect if current project is a collection and install its requirements
        runtime.prepare_environment(install_local=True)  # will retry 3 times if needed
    
        # Install a new collection (will retry 3 times if needed)
>       runtime.install_collection("containers.podman")

test/test_runtime_example.py:20: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ansible_compat.runtime.Runtime object at 0x40048f26b0>
collection = 'containers.podman', destination = None, force = False

    def install_collection(
        self,
        collection: str,
        destination: Optional[Union[str, pathlib.Path]] = None,
        force: bool = False,
    ) -> None:
        """Install an Ansible collection.
    
        Can accept version constraints like 'foo.bar:>=1.2.3'
        """
        cmd = [
            "ansible-galaxy",
            "collection",
            "install",
            "-vvv",  # this is needed to make ansible display important info in case of failures
        ]
    
        # ansible-galaxy before 2.11 fails to upgrade collection unless --force
        # is present, newer versions do not need it
        if force or self.version_in_range(upper="2.11"):
            cmd.append("--force")
    
        # As ansible-galaxy install is not able to automatically determine
        # if the range requires a pre-release, we need to manuall add the --pre
        # flag when needed.
        matches = version_re.search(collection)
        if matches and Version(matches[1]).is_prerelease:
            cmd.append("--pre")
    
        if destination:
            cmd.extend(["-p", str(destination)])
        cmd.append(f"{collection}")
    
        _logger.info("Running from %s : %s", os.getcwd(), " ".join(cmd))
        run = self.exec(
            cmd,
            retry=True,
        )
        if run.returncode != 0:
            msg = f"Command returned {run.returncode} code:\n{run.stdout}\n{run.stderr}"
            _logger.error(msg)
>           raise InvalidPrerequisiteError(msg)
E           ansible_compat.errors.InvalidPrerequisiteError: Command returned 1 code:
E           ansible-galaxy [core 2.14.0]
E             config file = /etc/ansible/ansible.cfg
E             configured module search path = ['/build/.cache/ansible-compat/a7ecd2/modules', '/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
E             ansible python module location = /usr/lib/python3.10/site-packages/ansible
E             ansible collection location = /build/.cache/ansible-compat/a7ecd2/collections:/build/.ansible/collections:/usr/share/ansible/collections
E             executable location = /usr/bin/ansible-galaxy
E             python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
E             jinja version = 3.1.2
E             libyaml = True
E           Using /etc/ansible/ansible.cfg as config file
E           Starting galaxy collection install process
E           Process install dependency map
E           
E           ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3

test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:242: InvalidPrerequisiteError
----------------------------- Captured stdout call -----------------------------
2.14.0
['/build/.ansible/collections', '/usr/share/ansible/collections']
------------------------------ Captured log call -------------------------------
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv containers.podman
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv containers.podman
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv containers.podman
WARNING  ansible_compat.runtime:runtime.py:162 Retrying execution failure 1 of: ansible-galaxy collection install -vvv containers.podman
ERROR    ansible_compat.runtime:runtime.py:241 Command returned 1 code:
ansible-galaxy [core 2.14.0]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/build/.cache/ansible-compat/a7ecd2/modules', '/build/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /build/.cache/ansible-compat/a7ecd2/collections:/build/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.10.8 (main, Nov  8 2022, 10:03:30) [GCC 12.2.0] (/usr/bin/python)
  jinja version = 3.1.2
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
Starting galaxy collection install process
Process install dependency map

ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3
=============================== warnings summary ===============================
../../../../usr/lib/python3.10/site-packages/_pytest/cacheprovider.py:433
  /usr/lib/python3.10/site-packages/_pytest/cacheprovider.py:433: PytestCacheWarning: could not create cache path /dev/.pytest_cache/v/cache/nodeids
    config.cache.set("cache/nodeids", sorted(self.cached_nodeids))

../../../../usr/lib/python3.10/site-packages/_pytest/cacheprovider.py:387
  /usr/lib/python3.10/site-packages/_pytest/cacheprovider.py:387: PytestCacheWarning: could not create cache path /dev/.pytest_cache/v/cache/lastfailed
    config.cache.set("cache/lastfailed", self.lastfailed)

../../../../usr/lib/python3.10/site-packages/_pytest/stepwise.py:52
  /usr/lib/python3.10/site-packages/_pytest/stepwise.py:52: PytestCacheWarning: could not create cache path /dev/.pytest_cache/v/cache/stepwise
    session.config.cache.set(STEPWISE_CACHE_DIR, [])

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
===Flaky Test Report===

test_prerun_reqs_v1 passed 1 out of the required 1 times. Success!
test_prerun_reqs_v2 failed (2 runs remaining out of 3).
	<class 'ansible_compat.errors.AnsibleCommandError'>
	Got 1 exit code while running: ansible-galaxy collection install -v -r requirements.yml -p /build/.cache/ansible-compat/a7ecd2/collections
	[<TracebackEntry /build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py:247>, <TracebackEntry /build/python-ansible-compat/src/ansible-compat-2.2.5/test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:358>, <TracebackEntry /build/python-ansible-compat/src/ansible-compat-2.2.5/test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:335>]
test_prerun_reqs_v2 failed (1 runs remaining out of 3).
	<class 'ansible_compat.errors.AnsibleCommandError'>
	Got 1 exit code while running: ansible-galaxy collection install -v -r requirements.yml -p /build/.cache/ansible-compat/a7ecd2/collections
	[<TracebackEntry /build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py:247>, <TracebackEntry /build/python-ansible-compat/src/ansible-compat-2.2.5/test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:358>, <TracebackEntry /build/python-ansible-compat/src/ansible-compat-2.2.5/test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:335>]
test_prerun_reqs_v2 failed; it passed 0 out of the required 1 times.
	<class 'ansible_compat.errors.AnsibleCommandError'>
	Got 1 exit code while running: ansible-galaxy collection install -v -r requirements.yml -p /build/.cache/ansible-compat/a7ecd2/collections
	[<TracebackEntry /build/python-ansible-compat/src/ansible-compat-2.2.5/test/test_runtime.py:247>, <TracebackEntry /build/python-ansible-compat/src/ansible-compat-2.2.5/test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:358>, <TracebackEntry /build/python-ansible-compat/src/ansible-compat-2.2.5/test_dir/usr/lib/python3.10/site-packages/ansible_compat/runtime.py:335>]

===End Flaky Test Report===
=========================== short test summary info ============================
FAILED ../../../../dev/test/test_runtime.py::test_prepare_environment_with_collections
FAILED ../../../../dev/test/test_runtime.py::test_prerun_reqs_v2 - ansible_co...
FAILED ../../../../dev/test/test_runtime.py::test_require_collection_wrong_version
FAILED ../../../../dev/test/test_runtime.py::test_require_collection - ansibl...
FAILED ../../../../dev/test/test_runtime.py::test_install_collection - ansibl...
FAILED ../../../../dev/test/test_runtime.py::test_install_collection_dest - a...
FAILED ../../../../dev/test/test_runtime.py::test_upgrade_collection - ansibl...
FAILED ../../../../dev/test/test_runtime.py::test_require_collection_no_cache_dir
FAILED ../../../../dev/test/test_runtime.py::test_install_collection_from_disk[normal]
FAILED ../../../../dev/test/test_runtime.py::test_install_collection_from_disk[deep]
FAILED ../../../../dev/test/test_runtime_example.py::test_runtime_example - a...
============ 11 failed, 67 passed, 3 warnings in 284.82s (0:04:44) =============
[1m[31m==> ERROR:[m[1m A failure occurred in check().[m
[1m    Aborting...[m
[1m[31m==> ERROR:[m[1m Build failed, check /var/lib/archbuild/extra-riscv64/felix28/build[m
receiving incremental file list
python-ansible-compat-2.2.5-1-riscv64-build.log
python-ansible-compat-2.2.5-1-riscv64-check.log

sent 62 bytes  received 8,744 bytes  5,870.67 bytes/sec
total size is 80,150  speedup is 9.10
