Commit Graph

55129 Commits (10d29c3105f39f0b186c771bb2c556da09767392)
 

Author SHA1 Message Date
sivel / Matt Martz 10d29c3105
Update Ansible release version to v2.19.5rc1.post0. (#86289) 21 hours ago
sivel / Matt Martz 4c49d633c2
New release v2.19.5rc1 (#86285) 22 hours ago
Brian Coca 236efefef9
vars loading, show file name instead of vars in error (#86277) (#86281)
* Show file instead of vars on load error

(cherry picked from commit 490795770f34120adc02b08fc24fc50be6ac68a2)
(cherry picked from commit 11a2d02bf2)

* merged

* Update lib/ansible/vars/manager.py



---------


(cherry picked from commit 335db20951)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
23 hours ago
Felix Fontein 55c6f879f7
runtime-metadata sanity test: ignore pre-release and build identifier (#85198) (#86160)
* Ignore pre-release and build identifier.

* Add tests.

* Improve changelog fragment.



* Extend tests.

---------


(cherry picked from commit 89ba882b08)

Co-authored-by: Matt Clay <matt@mystile.com>
1 week ago
Felix Fontein 281e2e6104
Fix AnsibleModule.human_to_bytes (#85259) (#86174)
* Fix AnsibleModule.human_to_bytes.

* Add unit test.

* Fix wrong example in docstring.

* Forgot tests without keyword.



* Apply review suggestions.

* Add type hints.



---------



(cherry picked from commit 13a7393cfe)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: Matt Clay <matt@mystile.com>
1 week ago
Abhijeet Kasurde 876731e6a1
[stable-2.19] get_url: Fix regex for GNU digest line (#86134) (#86216)
* GNU digest line may contain multiple spaces between
  checksum and filename. Fix regex to handle this situation.

Fixes: #86132
(cherry picked from commit af9009b)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
1 week ago
Abhijeet Kasurde b4c6af0ac1
[stable-2.19] Fix first_found example (#86224) (#86226)
(cherry picked from commit ce84d31)

Co-authored-by: Matt Clay <matt@mystile.com>
1 week ago
Matt Clay 9963ec18e8
[stable-2.19] ansible-test - Improve AZP commit API error handling (#86197) (#86202)
(cherry picked from commit 3d26431e4f)
3 weeks ago
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) b2db2a0e00
[stable-2.19] 🧪 Set timeouts for CI jobs (#86108)
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>
3 weeks ago
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) 2657bd7ee5
[stable-2.19] Install `xt_comment` kernel mod @ `iptables` test (#86187) (#86194)
This patch fixes integration test jobs running under RHEL 10.0 that don't have this extension pre-installed.

(cherry picked from commit 69c9fbed26)
3 weeks ago
Matt Clay f5d6ac95c0
[stable-2.19] Fix unit test serialization (#86163) (#86165)
This allows the test to work on pytest 9+

(cherry picked from commit 76f07034b3)
3 weeks ago
Matt Davis 6ae23de585
Update Ansible release version to v2.19.4.post0. (#86130) 4 weeks ago
Matt Davis d0473c98ba
New release v2.19.4 (#86125) 4 weeks ago
Matt Davis bc4905c885
Update Ansible release version to v2.19.4rc1.post0. (#86098) 1 month ago
Matt Davis 735f238853
New release v2.19.4rc1 (#86094) 1 month ago
Sloane Hertel 1cec559552
Task.resolved_action - fix resolving static actions consistently for callback plugins (#85524) (#85646)
* Resolve static actions when the FQCN is already known or demanded by a callback plugin

shorthand syntax (e.g. "- ping:") is resolved by ModuleArgsParser

action/local_action syntax (e.g. "- action: ping") is resolved on demand

* Emit a warning if a callback plugin accesses the property when it's None. This is expected if action/local_action is a template and a callback plugin uses this value too early (like in v2_playbook_on_task_start) or late (like in v2_runner_on_ok for a task with a loop).

(cherry picked from commit 15e9f51e2d)
1 month ago
Brian Coca 0e82bdb5e5
option deprecations show alternatives (#86032) (#86068)
Give users a helpful hint on what to do to address the deprecation

(cherry picked from commit 516a114ef6)
1 month ago
Abhijeet Kasurde 153ecb2b8e
[stable-2.19] package_facts: typecast bytes to string while returning facts (#85939) (#86047)
Fixes: #85937
(cherry picked from commit ef53d63)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
1 month ago
Brian Coca eb67bba287
config lookup, fix 'show_origin' and variables (#85356) (#86042)
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)
1 month ago
Jordan Borean b104a05792
[stable-2.19] Remove AddType warning for cleanup (#86029) (#86038)
* 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>
1 month ago
Martin Krizek 33ee48c590
[stable-2.19] Avoid the ssh-agent exiting before tests end (#85979) (#86007)
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)
1 month ago
Jordan Borean e93bc92d97
Fix psrp - ReadTimeout exceptions now mark host as unreachable (#85974) (#85994)
* 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>
1 month ago
sivel / Matt Martz b09dfd6316
[stable-2.19] Fix signal propagation (#85907) (#85984)
(cherry picked from commit 5a9afe4)
1 month ago
David Shrewsbury 37c3e4243a
Fix flakey get_url test (#85953) (#85958)
(cherry picked from commit feda8fc564)
1 month ago
Martin Krizek 4fd2954337
[stable-2.19] import_tasks processing closer to include_tasks (#85877) (#85933)
Fixes #69882
Closes #83853
Fixes #85855
Fixes #85856
(cherry picked from commit c3f87b31d1)
1 month ago
Martin Krizek a49f7a8fe5
[stable-2.19] Don't special case implicit meta tasks when filtering on tags (#85805) (#85938)
* Don't special case implicit meta tasks when filtering on tags

Fixes #85475
(cherry picked from commit 313c6f6b4d)
1 month ago
Felix Fontein 81d883687e
Make sure ansible-doc doesn't crash when scanning collections whose path contains ansible_collections twice (#85361) (#85930)
Ref: https://github.com/ansible/ansible/issues/84909#issuecomment-2767335761



(cherry picked from commit c6d8d206af)

Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
1 month ago
sivel / Matt Martz 41ac662dec
Update Ansible release version to v2.19.3.post0. (#85952) 2 months ago
sivel / Matt Martz 81b8229057
New release v2.19.3 (#85949) 2 months ago
Matt Davis 73c439cb75
Update Ansible release version to v2.19.3rc1.post0. (#85925) 2 months ago
Matt Davis cd95e0ff4b
New release v2.19.3rc1 (#85923) 2 months ago
Brian Coca 06900bbbac
script inventory plugin correct error message (#85765) (#85868)
type was reflecting 'converted' type, not 'pre conversion' of the data
now message points at specific data keys
add deprecation tests

(cherry picked from commit c87dc6ed7d)
2 months ago
Sloane Hertel 3f7210d00a
Fix ansible-doc -l/-F/--metadata-dump for relative imports in filter/test plugins (#85801) (#85860)
* Add test for sidecar documentation for filter plugin in a subdirectory

Fix ansible-doc --list/--list_files/--metadata-dump for relative imports in nested filter/test plugin files

(cherry picked from commit 5e8815b823)
2 months ago
Jordan Borean 60fe03290f
Windows async - handle trailing junk output (#85820) (#85829)
Add handling for when a PowerShell module emits more than just the
module result JSON. The behaviour reflects the Python async wrapper
where trailing data after the module result will emit a warning.

(cherry picked from commit aad9fbd4f5)
2 months ago
Abhijeet Kasurde d09ee36b8f
[stable-2.19] fetch_file: add ca_path and cookies parameters (#85187) (#85821)
* Added ca_path and cookies parameter arguments to fetch_file method
  to specify CA path and Cookies to fetch file from URL. These parameters
  are already supported by fetch_url.

Fixes: #85172
(cherry picked from commit 1cd4369)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2 months ago
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) 235e6a8cf6
[stable-2.19] 🧪 Pin codecov-cli deptree used in AZP (#85898)
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
(cherry picked from commit 1e572ba5cc)
2 months ago
sivel / Matt Martz a7eee1536f
[stable-2.19] Prevent IO capture hang/loss in `basic.run_command` (#85869) (#85891)
* Prevent run_command output truncation or hang

In cases when the selector used to monitor stdout/stderr activates without
data ready to read (a rare but normal condition), a read from a non-blocking
FD can return `None`, which was being conflated with an empty read (EOF)
condition. This caused the selector to be unregistered prematurely,
sometimes resulting in truncated output or hangs. `None` read results
are now excluded from EOF conditions.

* add changelog

---------
(cherry picked from commit 79ddee1)

Co-authored-by: Chris Meyers <chrismeyersfsu@users.noreply.github.com>
Co-authored-by: Matt Davis <nitzmahone@redhat.com>
2 months ago
Matt Clay 423032930b
[stable-2.19] Move display internals into _internal (#85889) (#85896)
(cherry picked from commit 58bad71859)
2 months ago
Matt Davis 7ff2307dee
Update Ansible release version to v2.19.2.post0. (#85826) 3 months ago
Matt Clay ca99cc7e55
New release v2.19.2 (#85822) 3 months ago
Matt Davis cc342f6f2f
Update Ansible release version to v2.19.2rc1.post0. (#85791) 3 months ago
Matt Davis 24c92b2d24
New release v2.19.2rc1 (#85788) 3 months ago
Martin Krizek 764070de69
[stable-2.19] Expose ansible_failed_task in rescue for explicit flush_handlers (#85687) (#85707)
Fixes #85682

(cherry picked from commit c5ddc93767)
3 months ago
Martin Krizek 9aea625f63
[stable-2.19] ternary: evaluate values lazily (#85752) (#85753)
Fixes #85743
(cherry picked from commit 6976e13075)
3 months ago
Matt Clay 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)
3 months ago
Matt Clay 8203ef0fe0
[stable-2.19] CI - Add missing args to generic.sh (#85737) (#85738)
(cherry picked from commit 7b598f3fc9)
3 months ago
Matt Martz adb3c6fae5
Update Ansible release version to v2.19.1.post0. (#85731) 3 months ago
Matt Martz 43cac0b1d2
New release v2.19.1 (#85730) 3 months ago
Matt Davis 695afe4fe7
Update Ansible release version to v2.19.1rc1.post0. (#85699) 4 months ago
Matt Davis 7fc339e4aa
New release v2.19.1rc1 (#85698) 4 months ago