Matt Clay
bff040a0b6
[stable-2.14] ansible-test - Pre-build PyYAML wheels ( #81300 ) ( #81310 )
...
This works around Cython failures when attempting to install PyYAML >= 5.4 <= 6.0..
(cherry picked from commit e964078a83 )
2 years ago
Matt Clay
178acc3805
[stable-2.14] ansible-test - Avoid using atexit module ( #81096 ) ( #81098 )
...
(cherry picked from commit c3926268e2 )
3 years ago
Matt Clay
a22c346620
[stable-2.14] ansible-test - local change detection without --fork-point ( #79734 ) ( #80900 )
...
(cherry picked from commit a5bb4c7dee )
Co-authored-by: Felix Fontein <felix@fontein.de>
3 years ago
Matt Clay
45df7a9534
[stable-2.14] ansible-test - Fix traceback when mixing sources ( #80801 ) ( #80828 )
...
* ansible-test - Fix traceback when mixing sources
* ansible-test - Refactor layout error handling
(cherry picked from commit b16041f1a9 )
3 years ago
Matt Clay
016fbec2a5
[stable-2.14] ansible-test - Fix handling of long timeouts ( #80769 ) ( #80773 )
...
(cherry picked from commit aacab0633a )
3 years ago
Matt Clay
5ab8903d58
[stable-2.14] ansible-test - Fix timeout handling ( #80764 ) ( #80766 )
...
(cherry picked from commit 4c6aa70662 )
3 years ago
Matt Clay
85644ca5e8
[stable-2.14] ansible-test - Avoid use of deprecated utcnow ( #80750 ) ( #80758 )
...
The timestamps are only used by ansible-test, not the junit callback, so this change only impacts ansible-test.
(cherry picked from commit fd341265d0 )
3 years ago
Matt Clay
c4b33c7ce8
[stable-2.14] ansible-test - Add support for argcomplete 3 ( #80482 ) ( #80485 )
...
(cherry picked from commit 0371ea08d6 )
3 years ago
Matt Clay
fb76b9e8a4
[stable-2.14] ansible-test - Fix packaging change classification ( #80360 ) ( #80361 )
...
(cherry picked from commit 5d64024f1a )
3 years ago
Matt Clay
86ebd55a3c
[stable-2.14] ansible-test - Update git diff handling ( #80202 )
...
This change allows ansible-test to work with newer versions of git on AZP..
(cherry picked from commit bad8843124 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
4461de15de
[stable-2.14] Relocate the AZP entry point scripts ( #80114 )
...
Scripts previously under `test/utils/shippable/` are now under `.azure-pipelines/commands/` instead.
(cherry picked from commit f47bc03599 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
bea9a2acf7
[stable-2.14] ansible-test - Remove pointless comparison ( #80168 )
...
(cherry picked from commit 31658031ed )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
4a3f5b7167
[stable-2.14] ansible-test - Fix vendoring support ( #80074 )
...
- Support loading of vendored Python packages.
- Exclude vendored Python packages from payloads.
(cherry picked from commit 6bfe6b899a )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
7b21457d58
[stable-2.14] ansible-test - Show Python version before install ( #80022 )
...
Always indicate the Python version being used before installing requirements.
(cherry picked from commit 5e3db6e441 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
b1199e6a46
[stable-2.14] ansible-test - Allow target prefixes to use `_` ( #80021 )
...
Integration test target prefixes defined in a `tests/integration/target-prefixes.{group}` file can now contain an underscore (`_`) character.
(cherry picked from commit e6cffce0eb )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
d36f52614d
[stable-2.14] ansible-test - Improve code formatting ( #79983 ) ( #80206 )
...
* ansible-test - Add blank lines after docstrings
* ansible-test - Preserve formatting of arg pairs
* ansible-test - Remove unused string
* ansible-test - Remove pointless dict() usage
* ansible-test - Clean up initial func arg indenting
* ansible-test - Clean up constructor arg indenting
* ansible-test - Clean up func arg wrapping
* ansible-test - Clean up comma and paren placement
(cherry picked from commit 715ab99462 )
3 years ago
Matt Clay
ff91a95ef1
[stable-2.14] ansible-test - Fix file permissions for delegation ( #80203 )
...
* [stable-2.14] ansible-test - Fix file permissions for delegation (#79932 )
* ansible-test - Fix file permissions for delegation
* Set more restrictive permissions for SSH key
* Check all execute bits, not just owner
* Add a breaking_changes changelog entry
(cherry picked from commit c8c1402 )
Co-authored-by: Matt Clay <matt@mystile.com>
* ansible-test - Fix collection delegation (#79947 )
(cherry picked from commit 0793833847 )
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
3 years ago
Matt Clay
6be77608c6
[stable-2.14] ansible-test - Fix pylint error with old home dir ( #80151 ) ( #80152 )
...
* [stable-2.14] ansible-test - Fix pylint error with old home dir (#80151 )
(cherry picked from commit 27287b40c0 )
Co-authored-by: Matt Clay <matt@mystile.com>
* ansible-test - Fix error with missing pylint home (#80155 )
(cherry picked from commit 367d45facd )
3 years ago
Matt Clay
b2f362e6f1
[stable-2.14] ansible-test - Support Podman 4.4.0+
...
(cherry picked from commit 67d49734f7 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
9e507faea5
[stable-2.14] ansible-test - Clean up indentation and spaces ( #79980 ) ( #79982 )
...
(cherry picked from commit 58d84933fc )
3 years ago
Felix Fontein
8740fbd7cb
Bump acme test container. ( #79783 ) ( #79816 )
...
(cherry picked from commit 5fb8bc3ddb )
3 years ago
Matt Clay
4fe7aae21d
[stable-2.14] ansible-test - Specify config path in plugin error ( #79881 ) ( #79977 )
...
(cherry picked from commit d48d1c23df )
3 years ago
Matt Clay
7027806a77
[stable-2.14] ansible-test - Fix various type hinting issues. ( #79798 ) ( #79976 )
...
* ansible-test - Add missing type hints.
* ansible-test - Remove redundant type hints.
* ansible-test - Fix return type annotations.
* ansible-test - Add assert, casts to assist mypy.
* ansible-test - Fix incorrect type hints.
* ansible-test - Remove no-op code.
* ansible-test - Fix incorrect types.
* ansible-test - Fix method signature mismatch.
(cherry picked from commit c9f20aedc0 )
3 years ago
Matt Clay
6d53f61f9e
[stable-2.14] ansible-test - Remove obsolete DirectoryTarget. ( #79975 )
...
This code has been unused since at least the 2.9 release.
(cherry picked from commit 5f58015527 )
3 years ago
Matt Clay
6adea5fa5c
[stable-2.14] ansible-test - fix warning to include image name ( #79560 ) ( #79973 )
...
(cherry picked from commit 0a12d8a5bc )
Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
3 years ago
Matt Clay
50b6d3515c
[stable-2.14] ansible-test - Avoid direct use of `errno`. ( #79972 )
...
Error handling on Python 3.x no longer requires the use of `errno` to identify specific errors.
(cherry picked from commit f9715f436c )
3 years ago
Matt Clay
acc8c3ccf8
[stable-2.14] ansible-test - Improve container startup handling.
...
Also improve the ansible-test-container integration test:
- Add coverage for the no-probe code path.
- Add work-arounds for centos6 containers (to support backporting).
- Avoid systemd debug when the container doesn't use cgroup.
(cherry picked from commit 04fc98c794 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
6ebb1324d4
[stable-2.14] ansible-test - Support RSA SHA-1 for SSH clients.
...
(cherry picked from commit 75b60b17ee )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
240156ff67
[stable-2.14] ansible-test - Fix `--prime-containers` and `--explain` ( #79581 )
...
* Remove unused code.
* Fix explain errors.
* Fix `--prime-containers` with docker on cgroup v2.
(cherry picked from commit da3b1d3f50 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
578c96b854
[stable-2.14] ansible-test - Fix target PyPI proxy config.
...
(cherry picked from commit dcc08eec35 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
5e2806b502
[stable-2.14] ansible-test - Fix completion error in Python 3.11. ( #79500 )
...
(cherry picked from commit 38fe342 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
3ae796bdcf
[stable-2.14] ansible-test - Improve container management. ( #78550 ) ( #79507 )
...
* [stable-2.14] ansible-test - Improve container management. (#78550 )
See changelogs/fragments/ansible-test-container-management.yml for details..
(cherry picked from commit cda16cc5e9 )
Co-authored-by: Matt Clay <matt@mystile.com>
* ansible-test - Fix container detection. (#79530 )
(cherry picked from commit 80d2f8da02 )
3 years ago
Matt Clay
713f5c5ae8
[stable-2.14] ansible-test - Improve pylint command consistency. ( #78896 )
...
* ansible-test - Improve pylint command consistency.
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit bc274f5 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
edbd88d3f1
[stable-2.14] ansible-test - Fix and update documentation links.
...
(cherry picked from commit 938c0fa944 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay
53bac70257
[stable-2.14] ansible-test - Update coverage to version 6.5.0. ( #78945 )
...
(cherry picked from commit 20c1252212 )
3 years ago
Matt Clay
4655fe6d8b
[stable-2.14] ansible-test - Fix integration test target filter. ( #78862 )
...
- Allow disabled, unsupported, unstable and destructive integration test targets to be selected using their respective prefixes.
- Allow unstable tests to run when targeted changes are made and the ``--allow-unstable-changed`` option is specified (resolves https://github.com/ansible/ansible/issues/74213 ).
(cherry picked from commit d3d7785472 )
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Martz
900010571d
[stable-2.14] Add `use_rsa_sha2_algorithms` option for paramiko ( #78789 ) ( #78842 )
...
Fixes #76737
Fixes #77673
Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 76b7466 )
Co-authored-by: Matt Martz <matt@sivel.net>
3 years ago
Matt Clay
79f67ed561
ansible-test - Fix container error handling. ( #78739 )
3 years ago
Matt Clay
b3854161a0
ansible-test - Update coverage to version 6.4.4. ( #78728 )
3 years ago
Matt Clay
c56b35598f
ansible-test - Upgrade pylint. ( #78727 )
...
This version of pylint now supports Python 3.11.
3 years ago
Matt Clay
4187707f03
ansible-test - Use --tmpfs to run containers. ( #78605 )
3 years ago
Matt Clay
ece85abbc4
ansible-test - Verify executables are executable. ( #78606 )
3 years ago
Matt Clay
69ceb31600
ansible-test - Update sanity test requirements. ( #78528 )
3 years ago
Matt Clay
99016653a2
ansible-test - Fix self-test change handling. ( #78521 )
3 years ago
Matt Clay
2b63fdd1b8
ansible-test - Fix ansible-doc sanity test FQCN. ( #78518 )
3 years ago
Matt Clay
8367af9cdd
ansible-test - No locale warning with delegation. ( #78505 )
...
The locale warning for the origin host is not relevant when delegation is used.
It is also not relevant when non-test commands are in use.
3 years ago
Matt Clay
47804fcdf5
ansible-test - Update coverage to 6.4.3. ( #78504 )
3 years ago
Matt Clay
650befed37
Add missing space after keywords. ( #78480 )
...
Also remove unnecessary parenthesis.
3 years ago
Matt Clay
85acf4d1e5
ansible-test - Avoid use of deprecated type hints. ( #78456 )
...
* ansible-test - Avoid use of deprecated type hints.
PEP 585 deprecated many container types in the `typing` module in favor of the actual types, which support subscripting as of Python 3.9.
Conversion of `t.Type` was skipped since PyCharm does not currently recognize it.
* ansible-test - Fix `t` and `c` imports/shadowing.
3 years ago
Matt Clay
5bee66fc5d
ansible-test - More type hint updates. ( #78455 )
...
* Simple regex replace of multi-line function arg annotations on the first line.
* Manually fix up ArgumentParser type annotations.
* Manual type hint conversions.
* Manual conversion of function type hints.
* Remove unnecessary type hints on for statements.
3 years ago