Commit Graph
55257 Commits
Author SHA1 Message Date
Matt ClayandGitHub 0feb43a333 [stable-2.20] ansible-test - Improve AZP commit API error handling (#86197) (#86201)
(cherry picked from commit 3d26431e4f)
2025-11-14 12:49:00 -08:00
9d38ce7007 [stable-2.20] 🧪 Set timeouts for CI jobs (#86109)
Sometimes, AZP would mark steps in jobs as cancelled when they've
actually exited successfully but on the boundary of the default
60-minute timeout. Such logs might be difficult to reason about.

Additionally, `entry-point.sh` sets a 60-minute timeout for the main
test invocation but it would never trigger earlier that AZP would kill
such a job as the job-global timeout was 60 minutes already and it'd
always be hit earlier than the test runner one.

The patch sets maximum observable job timeouts with extra buffer to
account for flakiness.

PR #86073
(cherry picked from commit 730af32)

Co-authored-by: Matt Clay <matt@mystile.com>
2025-11-14 11:11:35 -08:00
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)andGitHub f5fc17ad39 [stable-2.20] Install xt_comment kernel mod @ iptables test (#86187) (#86195)
This patch fixes integration test jobs running under RHEL 10.0 that don't have this extension pre-installed.

(cherry picked from commit 69c9fbed26)
2025-11-14 10:21:47 -08:00
Matt ClayandGitHub 9db2cae072 [stable-2.20] Fix unit test serialization (#86163) (#86164)
This allows the test to work on pytest 9+

(cherry picked from commit 76f07034b3)
2025-11-10 18:36:25 -08:00
Matt DavisandGitHub bc15b10d18 Update Ansible release version to v2.20.0.post0. (#86131) 2025-11-05 00:21:29 +00:00
Matt DavisandGitHub 85a7a5ae15 New release v2.20.0 (#86126) v2.20.0 2025-11-04 15:27:13 -08:00
Matt ClayandGitHub ba5ba3ccfc Update Ansible release version to v2.20.0rc3.post0. (#86097) 2025-10-29 20:56:48 +00:00
Matt ClayandGitHub 560b1af96d New release v2.20.0rc3 (#86093) v2.20.0rc3 2025-10-29 19:59:16 +00:00
Brian CocaandGitHub 8a85ee8363 option deprecations show alternatives (#86032) (#86069)
Give users a helpful hint on what to do to address the deprecation

(cherry picked from commit 516a114ef6)
2025-10-29 11:23:04 -07:00
Abhijeet KasurdeandGitHub 032d91897b [stable-2.20] package_facts: typecast bytes to string while returning facts (#85939) (#86046)
Fixes: #85937
(cherry picked from commit ef53d63)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-10-29 11:20:42 -07:00
2721b0d50a config lookup, fix 'show_origin' and variables (#85356) (#86041)
show_origin and variable sources were broken for base config when 'forked' from plugins
---------
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>

(cherry picked from commit 1cb2932c95)
2025-10-29 11:18:30 -07:00
2ca84eea86 [stable-2.20] Remove AddType warning for cleanup (#86029) (#86039)
* Remove AddType warning for cleanup (#86029)

Removes the warning emitted when using Add-Type and the cleanup of temp
files fails due to a file still being in use. The cleanup should be
handled by AnsibleModule on exit giving it more time to wait for any
open file handles to close. The exception is still present if calling
`Add-CSharpType` without an `AnsibleModule` object.

(cherry picked from commit 99bb587906)

* Update win_exec_wrapper integration test to match #86029 (#86052)

* Remove assertion now that there is no warning

(cherry picked from commit df34bf9e70)

---------

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
2025-10-29 11:14:45 -07:00
Matt ClayandGitHub 549a6acac8 ansible-test - Update default containers (#86088) 2025-10-28 14:02:11 -07:00
Matt ClayandGitHub 453a706c85 [stable-2.20] ansible-test - Update sanity requirements (#86083) (#86084)
(cherry picked from commit 12acd5c18f)
2025-10-28 18:12:59 +00:00
sivel / Matt MartzandGitHub 3e33dc5cbf Update Ansible release version to v2.20.0rc2.post0. (#86037) 2025-10-20 21:09:42 +00:00
sivel / Matt MartzandGitHub f83bccc457 New release v2.20.0rc2 (#86034) v2.20.0rc2 2025-10-20 15:32:45 -05:00
fb61d54216 Fix psrp - ReadTimeout exceptions now mark host as unreachable (#85974) (#85993)
* psrp - ReadTimeout exceptions now mark host as unreachable

* add try to _exec_psrp_script

* fix indent E111

* update raise format

switch to raise Exception from e



---------


(cherry picked from commit 9fcf1f7c58)

Co-authored-by: Michał Gąsior <rogacz@gmail.com>
2025-10-20 09:55:27 -05:00
Martin KrizekandGitHub 061c504e98 [stable-2.20] Avoid the ssh-agent exiting before tests end (#85979) (#86008)
There were couple of occurrences where the hard 30 seconds limit on
running ssh-agent was not enough for the test to run and the ssh-agent
was killed resulting in the test failing with "Connection refused". This
change just lets the agent run in the background and kills it
manually after the tests finish.
(cherry picked from commit 05d5b0f168)
2025-10-20 09:55:12 -05:00
sivel / Matt MartzandGitHub 48789c4efc [stable-2.20] Don't deprecate six yet (#86020) (#86021)
* [stable-2.20] Don't deprecate six yet (#86020)
(cherry picked from commit 1a3e63c)
2025-10-16 13:02:05 -05:00
sivel / Matt MartzandGitHub f14923276c Update Ansible release version to v2.20.0rc1.post0. (#85991) 2025-10-14 20:25:18 +00:00
sivel / Matt MartzandGitHub 5431f258b8 New release v2.20.0rc1 (#85989) v2.20.0rc1 2025-10-14 14:48:36 -05:00
sivel / Matt Martz 163a6ec526 fix urls in additional ansible-doc test (#85988)
(cherry picked from commit c02f59ca3a)
2025-10-14 13:06:35 -05:00
Matt ClayandMatt Martz 110993bbfd ansible-test - Update base/default/distro containers (#85985)
(cherry picked from commit 83c79240ec)
2025-10-14 11:52:40 -05:00
Matt ClayandMatt Martz bdba82ff07 ansible-test - Upgrade coverage to 7.10.7 (#85981)
(cherry picked from commit 7c2311d547)
2025-10-14 11:52:40 -05:00
Matt ClayandMatt Martz 405e2bf2bf ansible-test - Update pinned pip to 25.2 (#85982)
(cherry picked from commit de7dd5bbb2)
2025-10-14 11:52:40 -05:00
Matt ClayandMatt Martz ed60501603 ansible-test - Update sanity test requirements (#85980)
(cherry picked from commit 9ee667030f)
2025-10-14 11:52:40 -05:00
Matt ClayandMatt Martz d0552b56ef ansible-test - Update base/default containers (#85967)
(cherry picked from commit 82b64d4b69)
2025-10-14 11:52:40 -05:00
Matt ClayandMatt Martz ab4d37a803 Use bcrypt < 5 for unit tests (#85969)
(cherry picked from commit 06456c68ec)
2025-10-14 11:52:40 -05:00
Sviatoslav SydorenkoandMatt Martz 1b6bcc53b1 Mention pkg name in package-data sanity output
The logs were displaying a series of numbers in parens like `(66.1.0)`
at the end of each error line. its unintuitive what that means. I had
to look into the source code to confirm my suspicion of it being the
version of `setuptools`. This patch spells it out.

(cherry picked from commit 53afc6f203)
2025-10-14 11:52:40 -05:00
Sviatoslav SydorenkoandMatt Martz 3f7cfd961c Use strict_optional @ ansible.galaxy.dependency_resolution
This patch drops unnecessary default for
`CollectionDependencyProvider`'s `concrete_artifacts_manager` argument
as it is always passed, in every place across the code base where the
provider is constructed.

It was also causing MyPy violations on calls to
`_ComputedReqKindsMixin.from_requirement_dict()` in the "strict
optional" mode which is now enforced for $sbj, while remaining
disabled globally.

It is a #85545 follow-up.

(cherry picked from commit 0cd36ce6d0)
2025-10-14 11:52:40 -05:00
Sviatoslav SydorenkoandMatt Martz bef8eece4b Type-annotate ansible.galaxy.dependency_resolution
This patch is a combination of `pyrefly autotype` and manual
post-processing. Parts of it migrate pre-existing comment-based
annotations, fixing incorrect ones where applicable.

The change also configures MyPy to run checks against actual
`resolvelib` annotations and includes a small tweak of
`ansible.galaxy.collection._resolve_depenency_map` to make it
compatible with those.

Co-Authored-By: Jordan Borean <jborean93@gmail.com>
Co-Authored-By: Matt Clay <matt@mystile.com>
Co-Authored-By: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit c9131aa847)
2025-10-14 11:52:40 -05:00
David ShrewsburyandMatt Martz cc6a93f23e Fix flakey get_url test (#85953)
(cherry picked from commit feda8fc564)
2025-10-14 11:52:40 -05:00
sivel / Matt MartzandGitHub 59dc766d7d [stable-2.20] Fix signal propagation (#85907) (#85983)
(cherry picked from commit 5a9afe4)
2025-10-14 09:24:14 -05:00
sivel / Matt MartzandGitHub a4776f850c Update Ansible release version to v2.20.0b2.post0. (#85954) 2025-10-06 21:45:41 +00:00
sivel / Matt MartzandGitHub 4f1fe10921 New release v2.20.0b2 (#85950) v2.20.0b2 2025-10-06 16:13:24 -05:00
sivel / Matt Martz ff29cd4ff0 Update DataLoader.get_basedir to be an abspath (#85940)
(cherry picked from commit 6673a14a9e)
2025-10-06 11:58:06 -05:00
s-hamannandMatt Martz 06f272129c fetch - return file in result when changed is true (#85729)
Set the (source) file attribute in the return value if the file changed
(e.g. on initial fetch). The attribute is already set in all other
cases.

(cherry picked from commit 0c7dcb65cf)
2025-10-06 11:58:06 -05:00
Martin KrizekandMatt Martz 0f079fd23f Deprecate ansible.module_utils.six (#85934)
* Deprecate `ansible.module_utils.six`

Fixes #85920

(cherry picked from commit 686c3658ae)
2025-10-06 11:58:06 -05:00
Sloane HertelandMatt Martz cbeb1da98b Remove support for resolvelib < 0.8.0 (#85936)
* Remove support for resolvelib < 0.8.0

Remove code handling differences between resolvelib 0.5.3 and 0.8.0

Drop some versions from the test to reduce the time it takes to run

Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* Remove type annotation

---------

Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
(cherry picked from commit cb2ecda514)
2025-10-06 11:58:06 -05:00
Martin KrizekandMatt Martz 7db5959813 Don't special case implicit meta tasks when filtering on tags (#85805)
* Don't special case implicit meta tasks when filtering on tags

Fixes #85475

(cherry picked from commit 313c6f6b4d)
2025-10-06 11:58:05 -05:00
Abhijeet KasurdeandMatt Martz 40b11f86fb known_hosts: return rc and stderr in fail_json (#85871)
* When ssh-keygen fails, return rc and stderr in fail_json
  in order to help debugging.

Fixes: #85850

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
(cherry picked from commit 6bee84318d)
2025-10-06 11:58:05 -05:00
Martin KrizekandMatt Martz 580eb781dc import_tasks processing closer to include_tasks (#85877)
Fixes #69882
Closes #83853
Fixes #85855
Fixes #85856

(cherry picked from commit c3f87b31d1)
2025-10-06 11:58:05 -05:00
Abhijeet KasurdeandMatt Martz f23224d7b4 falsy: Update doc (#85913)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
(cherry picked from commit c5e6227bdb)
2025-10-06 11:58:05 -05:00
Luca SteinkeandMatt Martz 418746dcfc fix description of truthy test (#85911)
There's a "not" too much here.

Maybe further examples can be found.

(cherry picked from commit eafa139f77)
2025-10-06 11:58:05 -05:00
Felix FonteinandMatt Martz 48ef23fe4f Make sure ansible-doc doesn't crash when scanning collections whose path contains ansible_collections twice (#85361)
Ref: https://github.com/ansible/ansible/issues/84909#issuecomment-2767335761

Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
(cherry picked from commit c6d8d206af)
2025-10-06 11:58:05 -05:00
Matt DavisandGitHub 00ee6040b6 Update Ansible release version to v2.20.0b1.post0. (#85902) 2025-09-23 18:59:34 +00:00
Matt DavisandGitHub 21de43ab65 New release v2.20.0b1 (#85901) v2.20.0b1 2025-09-23 18:18:11 +00:00
Matt DavisandGitHub 5125ec797c update 2.20 release codename (#85900) 2025-09-23 17:34:21 +00:00
Abhijeet KasurdeandGitHub 5fc4b8c106 action: more debugging information (#85839)
* action: more debugging information

* Allow user to identify underlying problem with chmod, setfacl
  command.

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>

* Review requests

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>

* Review requests

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>

* Review requests

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>

---------

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-09-23 17:07:00 +02:00
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)andGitHub 1e572ba5cc 🧪 Pin codecov-cli deptree used in AZP
PR #85888

`codecov-cli == 11.0.3` allows `click == 8.3.0` in its deps but the latter causes commit auto-discovery breakage in the former. With https://github.com/getsentry/prevent-cli/pull/95, `codecov-cli == 11.2.3` excludes this version so this patch updates the requirement to that.

To prevent this from happening again, the change also makes use of a pip constraint file that pins the entire dependency tree to concrete versions. The constraint file is managed by `pip-tools`.

Refs:
* https://github.com/getsentry/prevent-cli/pull/95
* https://github.com/pallets/click/issues/3066

ci_coverage
ci_complete
2025-09-23 15:07:00 +02:00