Matt Clay
2f4eba406e
[stable-2.15] ansible-test - Fix interactive cmd traceback ( #84264 ) ( #84268 )
...
(cherry picked from commit 68bfa37838 )
1 year ago
Matt Clay
c208a74ef7
[stable-2.15] ansible-test - Improve container probe error handling ( #84109 ) ( #84188 )
...
(cherry picked from commit 48be6f8b6f )
1 year ago
Matt Clay
25273bf901
[stable-2.15] ansible-test - Update PyPI test container to 3.1.0 ( #83432 ). ( #83441 )
...
(cherry picked from commit 5af5b4b6c8 )
2 years ago
Matt Clay
d65905f998
[stable-2.15] ansible-test - Use PyPI proxy for centos7 ( #83226 ) ( #83228 )
...
(cherry picked from commit c0f7e9cc2c )
2 years ago
Felix Fontein
8ba086ce87
Do not mangle plugin names in collections that start with an underscore. ( #82574 ) ( #82886 )
...
(cherry picked from commit c0821346fc )
2 years ago
Matt Clay
1eb9b30dce
[stable-2.15] ansible-test - Add work-around for pytest>=8 errors ( #82723 ) ( #82728 )
...
* ansible-test - Add work-around for pytest>=8 errors
* Update changelogs/fragments/ansible-test-pytest-8.yml
(cherry picked from commit a1edb61ce7 )
2 years ago
Matt Clay
0c98b2256c
[stable-2.15] ansible-test - Fix parsing of cgroup entries
...
(cherry picked from commit e933d9d8a6 )
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Matt Martz
6bae9486b1
[stable-2.15] tarfile: Handle deprecation warning for extract and extractall ( #81545 ) ( #81632 )
...
* Python 3.11.4 introduces a new parameter 'filter' in extract and
extractall in tarfile. Handle deprecation warning message emitted
in Python 3.12.
* added probing mechanism in ansible-galaxy code to detect broken
data filter implementation in tarfile.
Fixes : #80832
(cherry picked from commit 1cc5efa )
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2 years ago
Matt Clay
697af6ba33
[stable-2.15] ansible-test - Always use managed entry points ( #81537 ) ( #81539 )
...
(cherry picked from commit 390e508d27 )
2 years ago
Matt Clay
bdd9e8f1aa
[stable-2.15] Clean up release script ( #81488 ) ( #81489 )
...
* Enable mypy for the entire packaging directory
* Return CompletedProcess only when capturing output
This allows stdout/stderr on CompletedProcess to be `str` instead of `str | None`.
The unused args on CompletedProcess have been removed.
Overload type hints have been added to reflect these changes.
* Relax return type on ensure_venv
This improves consistency with its usage, since `run` accepts `env` of `dict[str, t.Any]`.
Also removed unnecssary `str()` usage when updating `env`.
* Fix type hint on suppress_when
* Fix callable annotation
* Add type hint for command_parser
PyCharm complains about using a protected member, and also that it can't find the type in the type stubs.
However, mypy properly recognizes the type.
* Avoid unnecessary TypeVar usage
(cherry picked from commit 47ab59753c )
2 years ago
Matt Clay
7d561e6e4e
[stable-2.15] Overhaul package-data sanity test ( #81427 ) ( #81439 )
...
The sanity test now only inspects the sdist and wheel instead of trying to install the sdist using setup.py.
(cherry picked from commit f894ce89b4 )
2 years ago
Matt Clay
4f16d2d9a7
[stable-2.15] ansible-test - Update source layout detection ( #81418 ) ( #81434 )
...
(cherry picked from commit c525514994 )
2 years ago
Matt Clay
5d57a8e363
[stable-2.15] Omit pre-built man pages from sdist ( #81395 ) ( #81397 )
...
Since man pages aren't accessible to users after a `pip install`, there's no need to include them in the sdist.
This change makes it trivial to build man pages from source, which makes them much easier to iterate on.
It also simplifies creation and testing of the sdist, since it no longer requires building man pages.
The new `packaging/cli-doc/build.py` script can generate both man pages and RST documentation.
This supports inclusion on the docs site without a dependency on `ansible-core` internals.
Having a single implementation for both simplifies keeping the two formats in sync..
(cherry picked from commit 691c8e8603 )
2 years ago
Matt Clay
63b6dd2454
[stable-2.15] ansible-test: cloudstack: bump test container version ( #81319 ) ( #81322 )
...
(cherry picked from commit 99eeaf7da8 )
Co-authored-by: René Moser <mail@renemoser.net>
2 years ago
Matt Clay
5421a1304c
[stable-2.15] Remove `docs` and `examples` directories ( #81011 ) ( #81232 )
...
* Remove docs dir
* Updates to reflect docs removal
* Fix integration test
* Remove examples dir
* Updates to reflect examples removal
* Remove build_library and build-ansible.py
* Remove refs to build_library and build-ansible.py
* Remove obsolete template
* Remove obsolete template reference
* Remove the now obsolete rstcheck sanity test.
(cherry picked from commit 72e038e823 )
2 years ago
Matt Clay
04e4280437
[stable-2.15] ansible-test - Fix sanity traceback with `-e` opt ( #81271 ) ( #81272 )
...
Also remove redundant warning about missing programs.
Includes integration tests to verify `-e` does not traceback.
(cherry picked from commit 3f7bf0bcd4 )
2 years ago
Matt Clay
add8a968e8
[stable-2.15] ansible-test - Pre-build PyYAML wheels ( #81300 ) ( #81306 )
...
This works around Cython failures when attempting to install PyYAML >= 5.4 <= 6.0..
(cherry picked from commit e964078a83 )
2 years ago
Matt Clay
30f3fc2335
[stable-2.15] ansible-test - Avoid using atexit module ( #81096 ) ( #81097 )
...
(cherry picked from commit c3926268e2 )
3 years ago
Matt Clay
88042f98d6
[stable-2.15] ansible-test - local change detection without --fork-point ( #79734 ) ( #80899 )
...
(cherry picked from commit a5bb4c7dee )
Co-authored-by: Felix Fontein <felix@fontein.de>
3 years ago
Matt Clay
6b1ba183eb
[stable-2.15] ansible-test - Fix traceback when mixing sources ( #80801 ) ( #80827 )
...
* ansible-test - Fix traceback when mixing sources
* ansible-test - Refactor layout error handling
(cherry picked from commit b16041f1a9 )
3 years ago
Matt Clay
6bce05fd4d
[stable-2.15] ansible-test - Fix handling of long timeouts ( #80769 ) ( #80772 )
...
(cherry picked from commit aacab0633a )
3 years ago
Matt Clay
398841ba0d
[stable-2.15] ansible-test - Fix timeout handling ( #80764 ) ( #80765 )
...
(cherry picked from commit 4c6aa70662 )
3 years ago
Matt Clay
86efb07b59
[stable-2.15] ansible-test - Avoid use of deprecated utcnow ( #80750 ) ( #80757 )
...
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
352127ec2b
[stable-2.15] ansible-test - Add support for argcomplete 3 ( #80482 ) ( #80484 )
...
(cherry picked from commit 0371ea08d6 )
3 years ago
Matt Clay
5d64024f1a
ansible-test - Fix packaging change classification ( #80360 )
3 years ago
Matt Clay
6a6824f570
ansible-test - Update CloudStack test container ( #80278 )
3 years ago
Matt Clay
bad8843124
ansible-test - Update git diff handling ( #80202 )
...
This change allows ansible-test to work with newer versions of git on AZP.
3 years ago
Matt Clay
31658031ed
ansible-test - Remove pointless comparison ( #80168 )
3 years ago
Matt Clay
367d45facd
ansible-test - Fix error with missing pylint home ( #80155 )
3 years ago
Matt Clay
27287b40c0
ansible-test - Fix pylint error with old home dir ( #80151 )
3 years ago
Matt Clay
f47bc03599
Relocate the AZP entry point scripts ( #80114 )
...
Scripts previously under `test/utils/shippable/` are now under `.azure-pipelines/commands/` instead.
3 years ago
Matt Clay
6bfe6b899a
ansible-test - Fix vendoring support ( #80074 )
...
- Support loading of vendored Python packages.
- Exclude vendored Python packages from payloads.
3 years ago
Matt Clay
bca55d945b
ansible-test - Adjust vcenter test plugin behavior ( #80063 )
...
The previous change to the default mode of operation for the plugin is now limited to collections.
This enables easier testing of the plugin in core, so the previously removed tests have been restored.
3 years ago
Matt Clay
5e3db6e441
ansible-test - Show Python version before install ( #80022 )
...
Always indicate the Python version being used before installing requirements.
3 years ago
Matt Clay
e6cffce0eb
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.
3 years ago
Matt Clay
67d49734f7
ansible-test - Support Podman 4.4.0+
3 years ago
Matt Clay
715ab99462
ansible-test - Improve code formatting ( #79983 )
...
* 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
3 years ago
Matt Clay
58d84933fc
ansible-test - Clean up indentation and spaces ( #79980 )
3 years ago
Felix Fontein
0793833847
ansible-test - Fix collection delegation ( #79947 )
3 years ago
Matt Clay
c8c1402ff6
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
3 years ago
Matt Clay
d48d1c23df
ansible-test - Specify config path in plugin error ( #79881 )
3 years ago
Matt Clay
52d3d39ffc
ansible-test - Deprecate the foreman test plugin ( #79821 )
3 years ago
Matt Clay
7e53ec3c01
ansible-test - Update the NIOS test container ( #79820 )
3 years ago
Matt Clay
27cd5e77d8
Update mypy and its dependencies. ( #79812 )
...
* Update mypy and its dependencies.
* Fix requirements.
* Remove unnecessary matching constraints.
3 years ago
Matt Clay
7329ec6936
ansible-test - Update CloudStack plugin container ( #79813 )
3 years ago
Felix Fontein
5fb8bc3ddb
Bump acme test container. ( #79783 )
3 years ago
Matt Clay
c9f20aedc0
ansible-test - Fix various type hinting issues. ( #79798 )
...
* 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.
3 years ago
Matt Clay
5f58015527
ansible-test - Remove obsolete DirectoryTarget.
...
This code has been unused since at least the 2.9 release.
3 years ago
Matt Clay
29b20f68e6
ansible-test - Deprecate the govcsim container.
...
Also remove the integration tests for the `vcenter` test plugin, since the tests relied on using the simulator.
3 years ago
Felix Fontein
1852f9fab4
Support test and filter plugins in ansible-doc sanity test ( #77737 )
...
* Support test and filter plugins in ansible-doc sanity test.
* Move integration target non-filter file check_pylint.py from filter/ to plugin_utils/.
3 years ago