Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: update to 2.9.14 #25475

Closed

Conversation

paper42
Copy link
Member

@paper42 paper42 commented Oct 9, 2020

I tried added some dependencies to checkdepends, thanks to which, the tests don't fail, but... there is 0 of them.

...
warning: no previously-included files matching '*.pyc' found under directory 'docs/docsite/_extensions'
warning: no previously-included files matching '*.pyo' found under directory 'docs/docsite/_extensions'
warning: no previously-included files found matching 'test/sanity/code-smell/botmeta.*'
writing manifest file 'lib/ansible.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

@paper42 paper42 force-pushed the 0001-ansible-update-to-2.9.14.patch branch from 199f65c to e8563ae Compare October 11, 2020 09:15
Copy link
Member

@Piraty Piraty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do_check() {                                                                    
PYTHONPATH=$(pwd)/build/lib python3 -m pytest                               
}

@paper42 paper42 force-pushed the 0001-ansible-update-to-2.9.14.patch branch from e8563ae to bbe4146 Compare October 15, 2020 20:58
@paper42
Copy link
Member Author

paper42 commented Oct 15, 2020

@Piraty thank you for your help, but it keeps failing. If you want to fix the tests, feel free to open a new issue replacing this one, otherwise I think I will have to disable the tests again.

=> ansible-2.9.14_1: running do_check ...
============================= test session starts ==============================
platform linux -- Python 3.9.0, pytest-6.0.2, py-1.9.0, pluggy-0.13.1
rootdir: /builddir/ansible-2.9.14
collected 10924 items / 11 errors / 22 skipped / 10891 selected

==================================== ERRORS ====================================
_ ERROR collecting test/ansible_test/validate-modules-unit/test_validate_modules_regex.py _
ImportError while importing test module '/builddir/ansible-2.9.14/test/ansible_test/validate-modules-unit/test_validate_modules_regex.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/ansible_test/validate-modules-unit/test_validate_modules_regex.py:7: in <module>
    from validate_modules.main import TYPE_REGEX
E   ModuleNotFoundError: No module named 'validate_modules'
____ ERROR collecting test/integration/targets/async/library/async_test.py _____
test/integration/targets/async/library/async_test.py:43: in <module>
    main()
test/integration/targets/async/library/async_test.py:16: in main
    module = AnsibleModule(
build/lib/ansible/module_utils/basic.py:728: in __init__
    self._load_params()
build/lib/ansible/module_utils/basic.py:1962: in _load_params
    self.params = _load_params()
build/lib/ansible/module_utils/basic.py:621: in _load_params
    buffer = sys.stdin.buffer.read()
/usr/lib/python3.9/site-packages/_pytest/capture.py:216: in read
    raise OSError(
E   OSError: pytest: reading from stdin while output is captured!  Consider using `-s`.
__ ERROR collecting test/integration/targets/async_fail/library/async_test.py __
test/integration/targets/async_fail/library/async_test.py:50: in <module>
    main()
test/integration/targets/async_fail/library/async_test.py:17: in main
    module = AnsibleModule(
build/lib/ansible/module_utils/basic.py:728: in __init__
    self._load_params()
build/lib/ansible/module_utils/basic.py:1962: in _load_params
    self.params = _load_params()
build/lib/ansible/module_utils/basic.py:621: in _load_params
    buffer = sys.stdin.buffer.read()
/usr/lib/python3.9/site-packages/_pytest/capture.py:216: in read
    raise OSError(
E   OSError: pytest: reading from stdin while output is captured!  Consider using `-s`.
________ ERROR collecting test/integration/targets/cli/test_k_and_K.py _________
test/integration/targets/cli/test_k_and_K.py:17: in <module>
    '-m command -a whoami -Kkb --become-user cliuser2 localhost'.format(sys.argv[1]),
E   IndexError: list index out of range
____ ERROR collecting test/integration/targets/expect/files/test_command.py ____
test/integration/targets/expect/files/test_command.py:11: in <module>
    user_input = input_function(prompt)
/usr/lib/python3.9/site-packages/_pytest/capture.py:216: in read
    raise OSError(
E   OSError: pytest: reading from stdin while output is captured!  Consider using `-s`.
------------------------------- Captured stdout --------------------------------
foo
_ ERROR collecting test/integration/targets/module_utils/library/test_env_override.py _
ImportError while importing test module '/builddir/ansible-2.9.14/test/integration/targets/module_utils/library/test_env_override.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/integration/targets/module_utils/library/test_env_override.py:6: in <module>
    from ansible.module_utils.json_utils import data
E   ImportError: cannot import name 'data' from 'ansible.module_utils.json_utils' (/builddir/ansible-2.9.14/build/lib/ansible/module_utils/json_utils.py)
_ ERROR collecting test/integration/targets/module_utils/library/test_failure.py _
test/integration/targets/module_utils/library/test_failure.py:14: in <module>
    AnsibleModule(argument_spec=dict()).exit_json(**results)
build/lib/ansible/module_utils/basic.py:728: in __init__
    self._load_params()
build/lib/ansible/module_utils/basic.py:1962: in _load_params
    self.params = _load_params()
build/lib/ansible/module_utils/basic.py:621: in _load_params
    buffer = sys.stdin.buffer.read()
/usr/lib/python3.9/site-packages/_pytest/capture.py:216: in read
    raise OSError(
E   OSError: pytest: reading from stdin while output is captured!  Consider using `-s`.
_ ERROR collecting test/integration/targets/module_utils/library/test_override.py _
ImportError while importing test module '/builddir/ansible-2.9.14/test/integration/targets/module_utils/library/test_override.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/integration/targets/module_utils/library/test_override.py:3: in <module>
    from ansible.module_utils.facts import data
E   ImportError: cannot import name 'data' from 'ansible.module_utils.facts' (/builddir/ansible-2.9.14/build/lib/ansible/module_utils/facts/__init__.py)
_ ERROR collecting test/integration/targets/plugin_namespace/filter_plugins/test_filter.py _
import file mismatch:
imported module 'test_filter' has this __file__ attribute:
  /builddir/ansible-2.9.14/test/integration/targets/collections_plugin_namespace/collection_root/ansible_collections/my_ns/my_col/plugins/filter/test_filter.py
which is not the same as the test file we want to collect:
  /builddir/ansible-2.9.14/test/integration/targets/plugin_namespace/filter_plugins/test_filter.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_ ERROR collecting test/integration/targets/plugin_namespace/test_plugins/test_test.py _
import file mismatch:
imported module 'test_test' has this __file__ attribute:
  /builddir/ansible-2.9.14/test/integration/targets/collections_plugin_namespace/collection_root/ansible_collections/my_ns/my_col/plugins/test/test_test.py
which is not the same as the test file we want to collect:
  /builddir/ansible-2.9.14/test/integration/targets/plugin_namespace/test_plugins/test_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____ ERROR collecting test/integration/targets/throttle/test_throttle.py ______
test/integration/targets/throttle/test_throttle.py:11: in <module>
    throttledir, inventory_hostname, max_throttle = sys.argv[1:]
E   ValueError: not enough values to unpack (expected 3, got 0)
=========================== short test summary info ============================
ERROR test/ansible_test/validate-modules-unit/test_validate_modules_regex.py
ERROR test/integration/targets/async/library/async_test.py - OSError: pytest:...
ERROR test/integration/targets/async_fail/library/async_test.py - OSError: py...
ERROR test/integration/targets/cli/test_k_and_K.py - IndexError: list index o...
ERROR test/integration/targets/expect/files/test_command.py - OSError: pytest...
ERROR test/integration/targets/module_utils/library/test_env_override.py
ERROR test/integration/targets/module_utils/library/test_failure.py - OSError...
ERROR test/integration/targets/module_utils/library/test_override.py
ERROR test/integration/targets/plugin_namespace/filter_plugins/test_filter.py
ERROR test/integration/targets/plugin_namespace/test_plugins/test_test.py
ERROR test/integration/targets/throttle/test_throttle.py - ValueError: not en...
!!!!!!!!!!!!!!!!!!! Interrupted: 11 errors during collection !!!!!!!!!!!!!!!!!!!
======================= 22 skipped, 11 errors in 48.26s ========================
=> ERROR: ansible-2.9.14_1: do_check: 'PYTHONPATH=$(pwd)/build/lib python3 -m pytest' exited with 2
=> ERROR:   in do_check() at srcpkgs/ansible/template:26

@Piraty
Copy link
Member

Piraty commented Oct 16, 2020

@the-maldridge

@paper42
Copy link
Member Author

paper42 commented Oct 25, 2020

superseeded by #25774

@paper42 paper42 closed this Oct 25, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 10, 2021
@paper42 paper42 deleted the 0001-ansible-update-to-2.9.14.patch branch April 8, 2022 11:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants