Commit Graph
100 Commits
Author SHA1 Message Date
Matt ClayandGitHub 423032930b [stable-2.19] Move display internals into _internal (#85889) (#85896)
(cherry picked from commit 58bad71859)
2025-09-22 17:56:17 -07:00
Matt ClayandGitHub ca99cc7e55 New release v2.19.2 (#85822) 2025-09-08 18:08:07 +00:00
Matt ClayandGitHub f2a4eb74ec [stable-2.19] ansible-test - Update Ansible Core CI auth (#85717) (#85768)
Implement new authentication methods for accessing the Ansible Core CI service.

(cherry picked from commit be9e57366b)
2025-08-29 21:00:18 -07:00
Matt ClayandGitHub 8203ef0fe0 [stable-2.19] CI - Add missing args to generic.sh (#85737) (#85738)
(cherry picked from commit 7b598f3fc9)
2025-08-25 17:05:54 -07:00
8d26bbf3f7 [stable-2.19] Fix marker handling in templating (#85690) (#85694)
* allow markers to pass through template lookup
* avoid tripping markers within Jinja generated code

(cherry picked from commit 558676fcdc)

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
2025-08-18 21:20:37 +00:00
a00261b0ec [stable-2.19] ensure undefined marker access on Jinja getattr->getitem fallback (#85688) (#85691)
(cherry picked from commit 3518d48146)

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
2025-08-18 20:41:14 +00:00
Matt ClayandGitHub 3c1e46435b [stable-2.19] Fix slicing of tuples in templating (#85608) (#85661)
* Fix slicing of tuples in templating

* Improve lazy container test coverage
(cherry picked from commit 00fe38215c)
2025-08-15 12:24:39 -07:00
Matt ClayandGitHub 0718473815 [stable-2.19] Fix filter plugin result processing (#85653) (#85662)
(cherry picked from commit 76748b8478)
2025-08-15 12:22:27 -07:00
d58c99ddd4 [stable-2.19] Add AnsiballZ debugging support with debugpy (#85476) (#85528)
* Add AnsiballZ debugging support with debugpy

Adds support for debugging AnsiballZ modules with debugpy which is used
by VSCode as its Python debugger DAP. Debugging can either be done
through a manual Debugpy listening server through a launch.json
configuration or through the new ansible-test --dev-debug-on-deman
argument.

* Fix up integration test

* Simplify config option and move mypy ignore

* Use new API if available and fix typo

* Guard the import of debugpy

* Fix sanity import issue

* Minor cosmetic adjustments

* Simplify debugger setup

* ansible-test - Refactor debugging interface

* Add ansible-test debug integration tests

* Fix ansible-test shell when in unsupported dir

---------
(cherry picked from commit 3882366585)

Co-authored-by: Jordan Borean <jborean93@gmail.com>
2025-08-04 10:12:41 -05:00
Matt ClayandGitHub a5cc030818 [stable-2.19] ansible-test - Limit bootstrap package install retries (#85544) (#85546)
(cherry picked from commit ee297bb7ca)
2025-07-29 15:23:56 -07:00
85af5cadf3 [stable-2.19] tqm: Use correct warning methods (#85434) (#85550)
* Use display.error_as_warning instead of self.warning
* Use display.error_as_warning instead of display.warning_as_error.

(cherry picked from commit ea238c9eb5)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2025-07-29 15:23:34 -07:00
Matt ClayandGitHub f28faa7fbf [stable-2.19] ansible-test - Fix coverage config (#85555) (#85559)
(cherry picked from commit 35830cb054)
2025-07-29 15:22:57 -07:00
Matt ClayandGitHub cf6266cc2d [stable-2.19] Fix paramiko deprecation unit test (#85573) (#85574)
The unit test previously assumed paramiko was installed, and would fail if it was not.

(cherry picked from commit 43a20c9f68)
2025-07-29 15:22:23 -07:00
Matt ClayandGitHub 116cc16bc9 [stable-2.19] Update azure-pipelines-test-container (#85578) (#85579)
(cherry picked from commit 62dc40ce1c)
2025-07-29 14:23:23 -07:00
Matt ClayandGitHub 72c3a20e1a [stable-2.19] ansible-test - Use OS packages on FreeBSD 13.5 (#85530) (#85531)
(cherry picked from commit cdb7af094b)
2025-07-23 22:43:22 +00:00
fb09e79b2f [stable-2.19] Fixed string type in tags fieldattribute (#84655) (#85452)
(cherry picked from commit 8207406306)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2025-07-23 09:49:13 -07:00
Matt ClayandGitHub 483b23ce6d [stable-2.19] Ensure config env/ini values are tagged (#85404) (#85414)
* Ensure config env/ini values are tagged

Config env and ini values now have origin and trust tags applied.

* Remove unused import
(cherry picked from commit 6ff6339191)
2025-07-08 14:43:02 -07:00
100b20260a [stable-2.19] Short-circuit legacy network module prefix->action mapping (#85406) (#85413)
* Short-circuit legacy network module prefix->action mapping

* Modified a non-short-circuit compound conditional in a legacy networking path that attempted to resolve an action for any module name containing `_`. The bug was always present, but the typical presentation (an ImportError) was ignored prior to 2.19.
* The legacy networking path should be deprecated and removed in 2.20- a module could still be run under the wrong action if one with a matching prefix is found.

* unit test fix
(cherry picked from commit d6efb7db8a)

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
2025-07-08 14:42:32 -07:00
Matt ClayandGitHub da732a5c3c [stable-2.19] Drop incidental network tests from CI (#85425) (#85428)
(cherry picked from commit 35252fd96c)
2025-07-03 22:06:00 +00:00
Matt ClayandGitHub c8e599b139 Update Ansible release version to v2.19.0rc1.post0. (#85405) 2025-06-30 22:51:10 +00:00
Matt ClayandGitHub 139b567cab New release v2.19.0rc1 (#85403) 2025-06-30 21:59:56 +00:00
Matt Clay d808f11a44 Fix deprecated pylint plugin version parsing (#85402)
(cherry picked from commit 3511299e1e)
2025-06-30 14:26:43 -07:00
Matt Clay 632b87b55c Use codecov-cli for uploads (#85386)
ci_coverage
ci_complete

(cherry picked from commit 4a03ccbd41)
2025-06-30 12:21:09 -07:00
Matt ClayandGitHub 5f39fc05ba Update Ansible release version to v2.19.0b7.post0. (#85384) 2025-06-25 00:51:03 +00:00
Matt ClayandGitHub c0d8306d4e New release v2.19.0b7 (#85383) 2025-06-24 22:57:36 +00:00
Matt Clay 0b772cb892 Add ticket stub for minor changes (#85350)
(cherry picked from commit 3354d0d4e2)
2025-06-24 15:18:17 -07:00
Matt Clay b6ac61b487 Show context for reserved variable warnings (#85324)
* Show context for reserved variable warnings

* Update integration test

* Use var origin not value origin

* Use a list

* Ensure tagged varname is used

(cherry picked from commit d922398c4d)
2025-06-24 15:18:16 -07:00
Matt Clay 0aa8a878cf Spelling fixes (#85345)
A few grammar fixes too.

(cherry picked from commit 83fcaeaa8b)
2025-06-24 15:18:16 -07:00
Matt Clay fd8d22e874 ansible-test - Fix relative import resolution (#85328)
(cherry picked from commit 093ac8df2d)
2025-06-24 15:18:16 -07:00
Matt Clay 69ac7b1278 Add type annotations to set_module_args (#85329)
(cherry picked from commit 025e9cfae6)
2025-06-24 15:18:16 -07:00
Matt Clay b5529ee064 ansible-test - Fix ansible-test debug from remote shell (#85321)
(cherry picked from commit 2991883672)
2025-06-24 15:18:16 -07:00
Matt Clay 865d69dab1 ansible-test - Add remote debugging support (#85317)
(cherry picked from commit 7ef13cb29e)
2025-06-24 15:18:16 -07:00
Matt Clay 3ad711aee4 ansible-test - Relocate internal CLI args (#85308)
This improves consistency by locating them with other global options.

(cherry picked from commit 4b0a5c5c63)
2025-06-24 15:18:16 -07:00
Matt Clay 9d83546b65 ansible-test - Move metadata to environment (#85307)
(cherry picked from commit 76ad0b636f)
2025-06-24 15:18:16 -07:00
Matt ClayandMatt Davis f2a0eef867 Fix bool filter for non-hashable types (#85300)
(cherry picked from commit c8324aa01a)
2025-06-11 14:53:10 -07:00
Matt ClayandMatt Davis 1fe0fb0e7a ansible-test - Code cleanup (#85297)
(cherry picked from commit bdc6c8e16a)
2025-06-11 14:53:10 -07:00
Matt ClayandMatt Davis b5a4fe62ed Fix nested include with templating (#85295)
(cherry picked from commit 714f796384)
2025-06-11 14:53:10 -07:00
Matt ClayandMatt Davis 0cecfd9877 AnsiballZ refactoring and remote debug support (#85289)
(cherry picked from commit 45dd2c0647)
2025-06-11 14:53:10 -07:00
Matt ClayandMatt Davis aae5734e0e Fix deprecation versions in template lookup (#85288)
(cherry picked from commit 4956619ac2)
2025-06-11 14:53:10 -07:00
Matt ClayandMatt Davis 36f322bb2c Add missing docs for sftp_batch_mode (#85270)
(cherry picked from commit 051f7e5944)
2025-06-11 14:53:10 -07:00
Matt ClayandMatt Davis a57229aa8a Fix YAML loading/dumping and filters (#85266)
- from_yaml/from_yaml_all filters now preserve trust
- YAML dumping can once again handle undecryptable vaulted values
- increased test coverage

Co-authored-by: Matt Davis <nitzmahone@redhat.com>
(cherry picked from commit 1c06c46cc1)
2025-06-11 14:53:10 -07:00
Matt ClayandMatt Davis 2eb107fe1f Fix logic error in ansible-galaxy (#85258)
Co-authored-by: OpenRefactory, Inc <56681071+openrefactory@users.noreply.github.com>
Co-authored-by: Munawar <munawar.hafiz@gmail.com>
(cherry picked from commit 7da24ca7b0)
2025-06-11 14:53:10 -07:00
Matt ClayandMatt Davis 0576ff3e65 Add missing warning methods and args (#85225)
(cherry picked from commit eafe5fc739)
2025-06-03 15:49:23 -07:00
Matt ClayandMatt Davis 8b0b54de38 ansible-test - Fix incorrect use of InferenceContext (#85230)
(cherry picked from commit e2a5377b9a)
2025-06-03 15:49:23 -07:00
Matt ClayandMatt Davis 457b40d659 Include message in captured tracebacks (#85196)
This matches the formatting of tracebacks from exceptions.

(cherry picked from commit 359173c006)
2025-06-03 15:49:23 -07:00
Matt ClayandMatt Davis 3207e55ca2 display - Replace CRNL with NL (#85194)
(cherry picked from commit e226294855)
2025-06-03 15:49:23 -07:00
Matt ClayandMatt Davis 424327c293 ansible-test - Add RHEL 10.0 remote (#85189)
* ansible-test - Add RHEL 10.0 remote

* Update tests for RHEL 10
* Fix iptables test
* Rework rpm_key integration test

(cherry picked from commit 53b0f1645b)
2025-06-03 15:49:23 -07:00
Matt ClayandMatt Davis 8bbc43efd0 Limit SSH agent DSA testing to RHEL 9 (#85193)
(cherry picked from commit 6a1c24ca99)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 895af10b99 ansible-test - Improve deprecated checking type inference (#85159)
* ansible-test - Improve deprecated checking type inference

Also disabled the ``bad-super-call`` pylint rule due to false positives.

* Add type comment support

* Try without using register_transform

(cherry picked from commit e82be177cd)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 638d711a72 ansible-test - Fix option filtering (#85182)
(cherry picked from commit feda0a5c6e)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 1441817ffe Remove unnecessary module shebang (#85183)
(cherry picked from commit 1e64707592)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 01e97d7f80 DTFIX recategorization and error/warning refactor (#85181)
Co-authored-by: Matt Davis <nitzmahone@redhat.com>
(cherry picked from commit 242bb9ebab)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 35a951b611 Expand scope of black sanity test (#85169)
(cherry picked from commit 97dd5f104c)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 76fa45895d Code formatting for .azure-pipelines/ (#85166)
(cherry picked from commit 14bf64ddf8)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis f771784853 Code formatting for packaging/cli-doc/ (#85167)
(cherry picked from commit 930ffd1a83)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 46cc5d6b90 Code formatting for packaging/release.py (#85168)
(cherry picked from commit ed0e78fd9c)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 0ba6145aa8 Code formatting for test/sanity/code-smell/ (#85165)
(cherry picked from commit 460343510c)
2025-06-03 15:49:22 -07:00
Matt Clay 33c3844daa ansible-test - Update default containers (#85161)
(cherry picked from commit 7ac74ab591)
2025-05-14 22:08:42 -07:00
Matt Clay b6fad7bbb8 ansible-test - Update sanity requirements (#85160)
(cherry picked from commit 588410fe50)
2025-05-14 22:08:42 -07:00
Matt Clay 134c8ec093 Add missing cache plugin test scenarios (#85154)
(cherry picked from commit 567fda6906)
2025-05-14 22:08:42 -07:00
Matt Clay b2699fade5 release.py - Remove email announcement support (#85060)
Also add missing git and run overloads.

(cherry picked from commit 93aa611435)
2025-05-12 11:06:16 -07:00
Matt ClayandGitHub 5e0733288e Update Ansible release version to v2.19.0b4.post0. (#85137) 2025-05-12 18:03:53 +00:00
Matt ClayandGitHub 731b4d0242 New release v2.19.0b4 (#85133) 2025-05-12 10:20:45 -07:00
Matt Clay 38ef2b8c25 ansible-test - Relax some deprecation checks (#85122)
(cherry picked from commit 7b69cf3266)
2025-05-12 09:15:48 -07:00
Matt Clay 23f935eb0d template module - render None as empty string (#85121)
* template module - render `None` as empty string

* Update changelogs/fragments/template-none.yml

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>

---------

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
(cherry picked from commit 4fe9606530)
2025-05-12 09:15:48 -07:00
Matt ClayandGitHub e0e286c009 [stable-2.19] ansible-test - Use -t for container stop timeout (#85019) (#85055)
(cherry picked from commit 0aa8afbaf4)
2025-04-29 04:48:04 +00:00
Matt ClayandGitHub 1c1a271b88 Update Ansible release version to v2.19.0b2.post0. (#85041) 2025-04-24 02:33:58 +00:00
Matt ClayandGitHub 4e861fa9c8 New release v2.19.0b2 (#85040)
* New release v2.19.0b2

* Revert setuptools version bump
2025-04-24 01:58:00 +00:00
Matt ClayandMatt Martz 17d4fdd883 Increase galaxy test publish timeout (#85016)
(cherry picked from commit e6dc17cda4)
2025-04-21 10:11:08 -05:00
Matt ClayandMatt Martz 98009c811b Disable retries on ansible-galaxy-collection (#85013)
(cherry picked from commit f7d03474a5)
2025-04-21 10:11:08 -05:00
Matt ClayandMatt Martz 80d5f05642 Miscellaneous DT fixes (#84991)
* Use `_UNSET` instead of allowing `ellipsis`

* Fix deprecation warning pre-check

* Deprecation warnings from modules can now be disabled.
* Deprecation warnings from modules get the "can be disabled" notice.

* Include help text in pre-display fatal errors

* Simplify lookup warning/debug messaging

* Fix return type of `timedout` test plugin

* Use `object` for `_UNSET`

* Remove obsolete `convert_data` tests

* Remove unnecessary template from test

* Improve legacy YAML objects backward compat

* Fix templar backward compat for None overrides

(cherry picked from commit 6cc97447aa)
2025-04-16 10:55:21 -05:00
Matt ClayandMatt Martz ec0d8f3278 Disable parallel publish in galaxy test (#85000)
(cherry picked from commit e094d48b1b)
2025-04-16 10:55:21 -05:00
Matt ClayandMatt Martz 6f95a618af Convert DT issue template to pre-release template (#84982)
(cherry picked from commit 9ddfe9db39)
2025-04-16 10:55:20 -05:00
Matt ClayandGitHub 3d30e05bb4 ansible-test - Improve runme.sh error handling (#84972) 2025-04-11 20:56:34 +00:00
Matt ClayandGitHub 8b0c4825ae Pin wheel to resolve build issues (#84943) 2025-04-08 22:31:23 -07:00
Matt ClayandGitHub 462affa7c4 Clean up interpreter discovery (#84394)
* Clean up interpreter discovery

- Deprecated `auto_legacy` and `auto_legacy_silent`
- Removed obsolete platform fallback config and logic
- Replaced unit tests with integration tests
- Increased test coverage
2025-04-03 18:07:36 +00:00
Matt ClayandGitHub 399d2841c8 Add fallible 2025.4.1 to issue template (#84915) 2025-04-01 23:25:59 +00:00
Matt ClayandGitHub b3d21e3ad2 Fix apt and dpkg_selections tests (#84900)
* Fix apt and dpkg_selections tests

The tests now support aarch64.
They also have reduced dependencies on URLs hosted on third-party servers.

* Skip tests on unsupported platforms

* Use same package version for both tests

* Fix multi-arch support for Ubuntu 22.04
2025-03-27 09:05:25 -07:00
Matt ClayandGitHub 87422526f5 Expand tests for apt_repository (#84904) 2025-03-27 04:52:24 +00:00
Matt ClayandGitHub e53c12fe2b ansible-test - Update base/default containers (#84874) 2025-03-20 13:25:55 -07:00
Matt ClayandGitHub f4aafe1a94 ansible-test - Update pylint requirement (#84872) 2025-03-20 17:18:03 +00:00
Matt ClayandGitHub 35665db4ed Miscellaneous integration test fixes (#84871) 2025-03-20 16:48:02 +00:00
Matt ClayandGitHub 091994a477 ansible-test - Update sanity test requirements (#84866) 2025-03-20 01:21:56 +00:00
Matt ClayandGitHub b7a5411d8b ansible-test - Improve pep8 compat with black (#84867) 2025-03-20 01:17:01 +00:00
Matt ClayandGitHub 7e7946b60d Require Jinja2 3.1.0 or later (#84864) 2025-03-20 00:21:26 +00:00
Matt ClayandGitHub ad5cf37625 Add typing_extensions for core unit tests on <3.11 (#84865) 2025-03-20 00:00:07 +00:00
Matt ClayandGitHub 4efb01c2f3 ansible-test - Replace FreeBSD 13.4 with 13.5 (#84812) 2025-03-11 15:21:38 -07:00
Matt ClayandGitHub 44966cb8e2 Update Fallible issue template (#84808) 2025-03-11 16:32:17 +00:00
Matt ClayandGitHub c02ad3516f Adjust fallible issue template (#84776)
This should provide missing details the bot is looking for.
2025-03-04 23:16:45 -08:00
Matt ClayandGitHub 96a8c04207 Add issue template for Fallible Data Tagging (#84766) 2025-03-03 11:47:58 -08:00
Matt ClayandGitHub 9ef623a517 Integration test cleanup (#84763)
This brings in integration test fixes from the data tagging PR which are unrelated to DT changes.
2025-03-01 03:11:46 +00:00
Matt ClayandGitHub 5ff8d093f0 ansible-test - Code style cleanup (#84749)
* ansible-test - Minor style cleanup (add blank lines)

* ansible-test - Use `"""` instead of `'''`
2025-02-25 04:47:45 +00:00
Matt ClayandGitHub bddb9a7490 ansible-test - Support target testing with black (#84744) 2025-02-24 17:09:38 +00:00
Matt ClayandGitHub 989e583356 ansible-test - Initial support for black in core (#84741) 2025-02-24 08:39:59 +00:00
Matt ClayandGitHub f3ccd78cce ansible-test - Update base/default containers (#84670) 2025-02-05 02:09:06 +00:00
Matt ClayandGitHub cd881bf71e ansible-test - Add pytest-mock to mypy sanity test (#84669) 2025-02-05 00:58:48 +00:00
Matt ClayandGitHub 7594243fc0 ansible-test - Update sanity test requirements (#84667) 2025-02-04 15:03:34 -08:00
Matt ClayandGitHub 21bc1d915d ansible-test - Fix warning message grammar (#84666) 2025-02-04 19:58:21 +00:00
Matt ClayandGitHub 4b38456e4f ansible-test - Correct CLI arg type and annotation (#84664) 2025-02-04 17:53:14 +00:00
Matt ClayandGitHub 4cc47307ef Use separate venvs for each release command (#84641)
This avoids requirements conflicts between different commands invoked by the release tool.
2025-01-30 08:31:36 -08:00