Martin Krizek and Matt Davis
108f349e1d
Integration tests clean up ( #85130 )
...
* Integration tests clean up
* more
* we only test with Ubuntu 24.04 on the controller
(cherry picked from commit 40c919d7bd )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
35a951b611
Expand scope of black sanity test ( #85169 )
...
(cherry picked from commit 97dd5f104c )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
76fa45895d
Code formatting for .azure-pipelines/ ( #85166 )
...
(cherry picked from commit 14bf64ddf8 )
2025-06-03 15:49:22 -07:00
Lee Garrett and Matt Davis
1381fc30a3
Mark integration tests as needs/root ( #84487 )
...
For calling setup_test_user, which adds a user to the system (and thus requiring
root):
- become
- become_su
- become_sudo
- slurp
And also:
- apt, which installs/removes system packages
- deb822_repository, which adds/removes apt repos
- hardware_facts calls losetup, which requires root
- package_facts, which installs/removes system packages
Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu >
(cherry picked from commit ebd022ee42 )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
f771784853
Code formatting for packaging/cli-doc/ ( #85167 )
...
(cherry picked from commit 930ffd1a83 )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
46cc5d6b90
Code formatting for packaging/release.py ( #85168 )
...
(cherry picked from commit ed0e78fd9c )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
0ba6145aa8
Code formatting for test/sanity/code-smell/ ( #85165 )
...
(cherry picked from commit 460343510c )
2025-06-03 15:49:22 -07:00
Jordan Borean and Matt Davis
1bd8ed4437
Fix constructable inventory default keyed group ( #85002 )
...
Fix the logic for a constructable inventory `keyed_groups` entry to use
the `default_value` if the ``key` expression result is `None` or `omit`
and not just an empty string. This bug was introduced with the changes
in data tagging and goes back to the original behaviour.
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com >
(cherry picked from commit fe2d9e316a )
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 Davis and Matt Clay
3a2248a992
recategorize pass over DTFIX-MERGE entries post b4 ( #85155 )
...
(cherry picked from commit f5a85493c1 )
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 Davis and Matt Clay
fddda73042
ensure builtin tests always return bool ( #85149 )
...
* added unit test validation and coverage enforcement
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit e5476972da )
2025-05-14 22:08:42 -07:00
Matt Davis and Matt Clay
60ddb2954b
misc changelog and docstring cleanup ( #85148 )
...
* deferred listify_lookup_plugin_terms deprecation
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit 7be1359841 )
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 Clay and GitHub
5e0733288e
Update Ansible release version to v2.19.0b4.post0. ( #85137 )
2025-05-12 18:03:53 +00:00
Matt Clay and GitHub
731b4d0242
New release v2.19.0b4 ( #85133 )
v2.19.0b4
2025-05-12 10:20:45 -07:00
Matt Davis and Matt Clay
d6a8582da7
fix ensure_type to support vaulted values ( #85129 )
...
* restored parity with 2.18
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit 9a426fe303 )
2025-05-12 09:15:48 -07:00
Matt Davis and Matt Clay
204cdcee67
ensure that all config return values are Origin-tagged ( #85127 )
...
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit fc8a227647 )
2025-05-12 09:15:48 -07:00
Matt Davis and Matt Clay
df214f93a7
apply trust to declarative plugin config ( #85126 )
...
* trust strings in loaded doc fragments
* added tests
* added hard_fail_context test mechanism
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit 9efba4f972 )
2025-05-12 09:15:48 -07:00
Lorenzo Tanganelli and Matt Clay
27aca0abd3
facts: CloudStack KVM Hypervisor to Linux virtual fact ( #85117 )
...
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
(cherry picked from commit 8a4fb78988 )
2025-05-12 09:15:48 -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 Davis and Matt Clay
9fff6d433d
Misc config type coercion fixes ( #85119 )
...
* remove dead config comment noise
* update `list` typed config defaults to be lists
* fix tag preservation/propagation in config
* numerous other ensure_type bugfixes
* 100% unit test coverage of ensure_type
* emit warnings on template_default failures
* fix unhandled exception in convert_bool on unhashable inputs
Co-authored-by: Matt Clay <matt@mystile.com >
---------
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit d33bedc48f )
2025-05-12 09:15:48 -07:00
j-dr3 and Matt Clay
e8d914e992
sysvinit: make examples consistent ( #85108 )
...
(cherry picked from commit dcc5dac184 )
2025-05-12 09:15:48 -07:00
omahs and Matt Clay
121871af86
Fix typos ( #85107 )
...
(cherry picked from commit 471c5229a7 )
2025-05-12 09:15:48 -07:00
Martin Krizek and Matt Davis
f70dbc15e5
Passing warnings to exit/fail_json is deprecated. ( #85109 )
...
(cherry picked from commit 8b9ddf5544 )
2025-05-07 11:08:16 -07:00
Matt Davis and Matt Davis
80af44d822
add fuzzy matching to package_data sanity ( #85103 )
...
* add fuzzy matching to package_data sanity
* relaxes exact directory matches for license files to allow setuptools > 72 to pass
* sanity
(cherry picked from commit 7e00053a30 )
2025-05-07 11:08:16 -07:00
Martin Krizek and Matt Davis
da59710961
dnf5: skip pkgs that don't satisfy bugfix/security when specified ( #85111 )
...
(cherry picked from commit 107842fd7d )
2025-05-07 11:08:16 -07:00
Matt Davis and GitHub
c83b70a04c
Update Ansible release version to v2.19.0b3.post0. ( #85102 )
2025-05-06 19:11:59 +00:00
Matt Davis and GitHub
c742fdc66c
New release v2.19.0b3 ( #85101 )
v2.19.0b3
2025-05-06 11:29:47 -07:00
pollenJP(@'ω'@) and Matt Davis
7a932a93b0
get_url: missing closing brace in docs ( #85096 )
...
(cherry picked from commit 1c29910087 )
2025-05-06 09:49:16 -07:00
Matt Davis and Matt Davis
8c8717a8e4
Switch to stackwalk caller ID ( #85095 )
...
* See changelog fragment for most changes.
* Defer early config warnings until display is functioning, eliminating related fallback display logic.
* Added more type annotations and docstrings.
* ansible-test - pylint sanity for deprecations improved.
* Refactored inline legacy resolutions in PluginLoader.
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit ff6998f2b9 )
2025-05-06 09:49:16 -07:00
Jordan Borean and Matt Martz
6054b29cb7
Add win_script become tests ( #85079 )
...
(cherry picked from commit e4cac2ac33 )
2025-04-30 16:13:50 -05:00
Brian Coca and Matt Martz
131175a5a6
ensure predictable permissions on module artifacts ( #84948 )
...
and test it!
(cherry picked from commit 9f894b81c2 )
2025-04-30 16:13:50 -05:00
Martin Krizek and Matt Martz
0aab250fbc
dnf5: avoid generating excessive history entries ( #85065 )
...
Fixes #85046
(cherry picked from commit cff49a62ec )
2025-04-30 16:13:50 -05:00
Martin Krizek and Matt Martz
dcec78b0f9
async_status: fix example to use finished test ( #85066 )
...
Fixes #85048
(cherry picked from commit dbf131c07d )
2025-04-30 16:13:50 -05:00
Brian Coca and Matt Martz
ea22e5d0dd
show internal but not hidden config options, while still hiding test options ( #84997 )
...
(cherry picked from commit aab732cb82 )
2025-04-30 16:13:50 -05:00
Brian Coca and Matt Martz
867d9d3096
These actions do not support until ( #84847 )
...
(cherry picked from commit 8ab342f8cc )
2025-04-30 16:13:50 -05:00
Matt Clay and GitHub
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 Clay and GitHub
1c1a271b88
Update Ansible release version to v2.19.0b2.post0. ( #85041 )
2025-04-24 02:33:58 +00:00
Matt Clay and GitHub
4e861fa9c8
New release v2.19.0b2 ( #85040 )
...
* New release v2.19.0b2
* Revert setuptools version bump
v2.19.0b2
2025-04-24 01:58:00 +00:00
Matt Davis and Matt Clay
f898f9fec6
Implement TaskResult backward compatibility for callbacks ( #85039 )
...
* Implement TaskResult backward compatibility for callbacks
* general API cleanup
* misc deprecations
Co-authored-by: Matt Clay <matt@mystile.com >
* fix v2_on_any deprecation exclusion for base
---------
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit 03181ac87b )
2025-04-23 18:08:29 -07:00
Matt Davis and Matt Clay
4714194672
restore parsing/utils/jsonify.py ( #85032 )
...
(cherry picked from commit 2033993d89 )
2025-04-23 18:08:29 -07:00
Abhijeet Kasurde and Matt Martz
ffbf121182
comment: raise an exception when an invalid option is provided ( #84984 )
...
Co-authored-by: Matt Clay <matt@mystile.com >
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com >
(cherry picked from commit 1daa8412d5 )
2025-04-21 10:11:08 -05:00
Brian Coca and Matt Martz
89a4900b61
normalize error handler choices ( #84998 )
...
use existing to avoid deprecation cycle
normalize test too
(cherry picked from commit 2cbb721f6f )
2025-04-21 10:11:08 -05:00
Matt Clay and Matt Martz
17d4fdd883
Increase galaxy test publish timeout ( #85016 )
...
(cherry picked from commit e6dc17cda4 )
2025-04-21 10:11:08 -05:00
Lee Garrett and Matt Martz
7fc916361e
Fix test_range_templating on 32-bit architectures ( #85007 )
...
* Fix test_range_templating on 32-bit architectures
32-bit archtectures like i386, armel, armhf will fail with the error
ansible._internal._templating._errors.AnsibleTemplatePluginRuntimeError: The
filter plugin 'ansible.builtin.random' failed: Python int too large to convert
to C ssize_t
So just pick sys.maxsize (2**31 - 1) so it works on 32 bit machines.
---------
Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu >
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit 5f6aef95ac )
2025-04-21 10:11:08 -05:00
Matt Davis and Matt Martz
82ea3addce
Miscellaneous fixes ( #85012 )
...
* Add help_text to play_hosts deprecation
* clean up TaskResult type handling
(cherry picked from commit 1b6b910439 )
2025-04-21 10:11:08 -05:00
Matt Clay and Matt Martz
98009c811b
Disable retries on ansible-galaxy-collection ( #85013 )
...
(cherry picked from commit f7d03474a5 )
2025-04-21 10:11:08 -05:00