Evgeni Golov
a398724a31
[stable-2.14] validate-modules: don't fail on invalid YAML ( #79682 )
...
* validate-modules: don't fail on invalid YAML
When validate-modules encounters invalid YAML (e.g. in the EXAMPLES
section), it tries to reformat the exception to include the line number
in the Python file instead of the line number of the embedded YAML
document. However, PyYAML doesn't allow modification of the Mark object
(anymore) which leads to a new exception being raised, instead of
reporting the original exception.
As the original exception is not needed in other places anymore, we
don't have to modify it at all and can just compute the right line
number when reporting the error via ansible-test.
Fixes : #75837
* Add test for invalid module doc YAML syntax.
Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit a7111c4dbb
)
Co-authored-by: Evgeni Golov <evgeni@golov.de>
2 years ago
Matt Clay
4ff76ffe21
[stable-2.14] Fix link in compile sanity test docs.
...
(cherry picked from commit eae02bf5b8
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Matt Clay
b6ded6209e
[stable-2.14] Fix EPEL setup for integration tests on RHEL 7
...
(cherry picked from commit 1243d2ace0
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Matt Clay
acc8c3ccf8
[stable-2.14] ansible-test - Improve container startup handling.
...
Also improve the ansible-test-container integration test:
- Add coverage for the no-probe code path.
- Add work-arounds for centos6 containers (to support backporting).
- Avoid systemd debug when the container doesn't use cgroup.
(cherry picked from commit 04fc98c794
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Matt Clay
6a07424b36
[stable-2.14] Add more retries to ansible-test-container test.
...
(cherry picked from commit f6c0e22f98
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Matt Clay
6ebb1324d4
[stable-2.14] ansible-test - Support RSA SHA-1 for SSH clients.
...
(cherry picked from commit 75b60b17ee
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Sandra McCann
66889d8a7f
Backportapaloosa 12 08 ( #79565 )
...
* Add Ansible community 6.7.0 porting guide (#79544 )
(cherry picked from commit 3cdf589ca7
)
* Fix hardcoded python call (#79520 )
Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu>
(cherry picked from commit 3fd519de57
)
* Update windows_faq.rst (#79552 )
`python-pip` changes to `python3-pip` for the Ubuntu 20.04 WSL distro
(cherry picked from commit 527abba860
)
* Add Ansible community 7.1.0 porting guide (#79553 )
(cherry picked from commit b1caba8b53
)
* fixed misleading setup example (#79495 )
(cherry picked from commit bc13099e56
)
* Update docs for the `compile` sanity test. (#79562 )
(cherry picked from commit 932a32153a
)
* Remove obsolete legacy integration test docs. (#79563 )
(cherry picked from commit 0f4afd7e6d
)
* fix: broken link (#79461 )
(cherry picked from commit 6a7fb7d2ab
)
Co-authored-by: Anwesha Das <anwesha@das.community>
Co-authored-by: Lee Garrett <leegarrett@users.noreply.github.com>
Co-authored-by: Raymond Yee <raymond.yee@gmail.com>
Co-authored-by: Christian Adams <chadams@redhat.com>
Co-authored-by: zitatorocsik <zita.torocsik@gmail.com>
Co-authored-by: Matt Clay <matt@mystile.com>
Co-authored-by: Thomas Poindessous <thomas@poindessous.com>
2 years ago
Matt Clay
240156ff67
[stable-2.14] ansible-test - Fix `--prime-containers` and `--explain` ( #79581 )
...
* Remove unused code.
* Fix explain errors.
* Fix `--prime-containers` with docker on cgroup v2.
(cherry picked from commit da3b1d3f50
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Matt Clay
578c96b854
[stable-2.14] ansible-test - Fix target PyPI proxy config.
...
(cherry picked from commit dcc08eec35
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Sviatoslav Sydorenko
5685f06189
Set explicit meta `long_description_content_type` ( #79468 ) ( #79486 )
...
This is necessary for `twine check --strict` to pass.
(cherry picked from commit 80551633c7
)
2 years ago
sbettid
066054f1f2
[stable-2.14] Fix file touch check mode result ( #79360 ) ( #79422 ) ( #79525 )
...
* Fix file touch check mode result (#79360 ) (#79422 )
Fixes #79360
(cherry picked from commit 3936b5c471
)
* Rename changelog fragment according to PR number
2 years ago
Brian Coca
d40213c32c
Removed sorting to preserve original order ( #74839 ) ( #79517 )
...
updated tests to reflect new order
(cherry picked from commit 5b51b560d0
)
2 years ago
Brian Coca
fc2670772a
local connection: avoid tb when running in container with invalid user ( #79414 ) ( #79503 )
...
* local connection: avoid tb when running in container with invalid user
* clog
* cannot use uid, leave empty and ~/ will resolve itself
* get back to what it did
(cherry picked from commit 5f3a6b78db
)
2 years ago
Matt Clay
5e2806b502
[stable-2.14] ansible-test - Fix completion error in Python 3.11. ( #79500 )
...
(cherry picked from commit 38fe342
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Sviatoslav Sydorenko
022202056e
[backport][2.14][PRs #78402 #79289 ] Enable the `reboot` integration test in CI ( #79490 )
...
* Enable the `reboot` integration test in CI
Co-Authored-By: Matt Clay <matt@mystile.com>
(cherry picked from commit bb7ad0f0d8
)
* [CI] Move running `reboot` integration test to group 2
PR #79289 , follow-up for #78402 .
It was breaking the integration-aliases sanity test, but only
became apparent post-merge. This patch fixes that.
(cherry picked from commit 26a4775611
)
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
2 years ago
Brian Coca
7337dc978a
rejectlist backportable fix ( #79418 )
2 years ago
Matt Clay
3ae796bdcf
[stable-2.14] ansible-test - Improve container management. ( #78550 ) ( #79507 )
...
* [stable-2.14] ansible-test - Improve container management. (#78550 )
See changelogs/fragments/ansible-test-container-management.yml for details..
(cherry picked from commit cda16cc5e9
)
Co-authored-by: Matt Clay <matt@mystile.com>
* ansible-test - Fix container detection. (#79530 )
(cherry picked from commit 80d2f8da02
)
2 years ago
Sandra McCann
eb940d5ec6
Docs: Update intersphinx links for Ansible 7 ( #79485 ) ( #79515 )
...
(cherry picked from commit 042a55fbe0
)
Co-authored-by: Don Naro <dnaro@redhat.com>
2 years ago
Sandra McCann
53da28da6a
Backportapalooza 12 01 ( #79514 )
...
* docs - make the existence of 'trivial' changelog entries easier to find (#79440 )
(cherry picked from commit 3cc95d1f12
)
* Add comma (#79480 )
(cherry picked from commit 3a6b6370ad
)
* Fix lists styling (#79481 )
(cherry picked from commit 3723c426d2
)
* add ansible-galaxy cli documentation for parallel execution (#79433 )
* add ansible-galaxy cli documentation for parallel execution
Co-authored-by: saranti <tsarantis@proton.me>
* Update lib/ansible/cli/galaxy.py
* Update lib/ansible/cli/galaxy.py
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: saranti <tsarantis@proton.me>
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit 01ff57bdff
)
Co-authored-by: Mark Chappell <mchappel@redhat.com>
Co-authored-by: Waleed Mortaja <27075022+WaleedMortaja@users.noreply.github.com>
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
2 years ago
jamesmarshall24
8befa158d1
Update Ansible release version to v2.14.1.post0. ( #79551 )
2 years ago
jamesmarshall24
ed924d6493
New release v2.14.1 ( #79550 )
2 years ago
Matt Davis
047affbdc5
Prevent stdio deadlock in forked children ( #79522 ) ( #79539 )
...
* background threads writing to stdout/stderr can cause children to deadlock if a thread in the parent holds the internal lock on the BufferedWriter wrapper
* prevent writes to std handles during fork by monkeypatching stdout/stderr during display startup to require a mutex lock with fork(); this ensures no background threads can hold the lock during a fork operation
* add integration test that fails reliably on Linux without this fix
(cherry picked from commit 1424484be0
)
2 years ago
Matt Clay
f240f69508
[stable-2.14] Handle line wraps in jinja_plugins test.
...
(cherry picked from commit 31f95e201a
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Matt Clay
3bcb4f267d
[stable-2.14] Don't use color in jinja_plugins test.
...
This should prevent color codes from interfering with string matches.
(cherry picked from commit 31f9d60b8d
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Ricardo Carrillo Cruz
ab661160cb
Update Ansible release version to v2.14.1rc1.post0. ( #79493 )
2 years ago
Ricardo Carrillo Cruz
28fe140ac9
New release v2.14.1rc1 ( #79476 )
2 years ago
Matt Clay
713f5c5ae8
[stable-2.14] ansible-test - Improve pylint command consistency. ( #78896 )
...
* ansible-test - Improve pylint command consistency.
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit bc274f5
)
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Sandra McCann
33717f3596
Add Ansible community 7.0.0 porting guide ( #79448 ) ( #79449 )
...
(cherry picked from commit 6ea058315f
)
Co-authored-by: Christian Adams <chadams@redhat.com>
2 years ago
Don Naro
c21f3569fc
issue #79378 change devel for ansible 7 ( #79402 )
2 years ago
Sandra McCann
e8093275e7
Docs: Updating the Ansible community changelogs ( #79400 ) ( #79446 )
...
(cherry picked from commit 32c90080e4
)
Co-authored-by: Don Naro <dnaro@redhat.com>
2 years ago
Sandra McCann
f9ea06f9d1
issue #79378 html context in sphinx conf ( #79401 ) ( #79447 )
...
(cherry picked from commit e5399c95d5
)
Co-authored-by: Don Naro <dnaro@redhat.com>
2 years ago
Jordan Borean
035ce0a29b
WinRM - Add doc entry for cert auth over TLS 1.3 ( #79434 ) ( #79435 )
...
(cherry picked from commit 493ef4a559
)
2 years ago
Sandra McCann
548248604d
Backportapalooza 11 18 ( #79416 )
...
* communication.rst: Add IRC channel to Storage WG info (#79374 )
(cherry picked from commit 66cc952b49
)
* [DOCS] collection_release_with_branches.rst: update major releases section (#79335 )
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Don Naro <dnaro@redhat.com>
(cherry picked from commit 6baf25a048
)
* Update pull.py (#79387 )
(cherry picked from commit b7ea661807
)
* iss#55935: Documents missing internal parameters and polishes 'Intern… (#79118 )
Co-authored-by: Jaroslav Klech <jklech@redhat.com>
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit 3ae2f97d4a
)
* Clarify that b64decode does not work with binary output (#79294 )
(cherry picked from commit f089aae5ee
)
* Update fileglob.py (#78887 )
Improve documentation for relative file paths
(cherry picked from commit 6cec31574f
)
* consolidate duplicated test files (#79380 )
(cherry picked from commit a954918b60
)
* communication.rst: add AAP Config As Code WG (#79365 )
(cherry picked from commit 35db7df9ce
)
Co-authored-by: Andrew Klychkov <aklychko@redhat.com>
Co-authored-by: saranti <tsarantis@proton.me>
Co-authored-by: JaroslavKlech <klechh@gmail.com>
Co-authored-by: Joseph Shraibman <josephks@users.noreply.github.com>
Co-authored-by: seachanged <dll@sonic.net>
2 years ago
Sandra McCann
fb00aad414
set antsibull-docs to 1.7.3 ( #79407 )
2 years ago
Brian Coca
217eaf1e68
mention acl in permissions errors ( #79209 ) ( #79250 )
...
as chmod/mode is not the only thing we attempt and Ubuntu not shipping acl
in newer versions can lead to some confusion
fixes #79146
(cherry picked from commit 0f18ddca9f
)
2 years ago
Martin Krizek
c5065264c2
2.14: jinja2_native: preserve quotes in strings ( #79119 ) ( #79144 )
...
* jinja2_native: preserve quotes in strings (#79119 )
Fixes #79083
(cherry picked from commit d34b578685
)
* Fix test for jinja2_native preserve quotes (#79131 )
Fixes https://github.com/ansible/ansible/pull/79119#discussion_r993752129
(cherry picked from commit 3a6eca6670
)
2 years ago
Sloane Hertel
59f3c0238b
[2.14] ansible-galaxy - fix unnecessary api check when installing role ( #79142 )
...
* ansible-galaxy install - fix unnecessary api check when installing a role from git repo (#79090 )
* delay server api evaluation until a GalaxyRole needs to make an api call for info, list, and install
(cherry picked from commit cb2e434dd2
)
* Fix isinstance check (#79159 )
Use GalaxyAPI for isinstance check instead of RoleDistributionServer, since the latter is defined in __main__ sometimes (when running integration tests or ansible-galaxy from source) and importing from ansible.cli.galaxy won't reference the same object.
(cherry picked from commit 89d682464b
)
2 years ago
Brian Coca
ffcdcef21c
copy, avoid moving non temp remote 'non' files ( #79102 ) ( #79154 )
...
* copy, avoid moving non temp remote files that are not dirs/files
fix tests
(cherry picked from commit f66016df0e
)
2 years ago
Sandra McCann
9fdc12cbe9
Add Ansible community 7.0.0rc1 porting guide ( #79382 ) ( #79383 )
...
(cherry picked from commit 5c0b4a3798
)
Co-authored-by: Christian Adams <chadams@redhat.com>
2 years ago
Martin Krizek
7b951e610c
Replace _valid_attrs with fattributes ( #79376 ) ( #79385 )
...
It was missed in one place it seems.
(cherry picked from commit 6059116a64
)
Co-authored-by: Rabi Mishra <ramishra@redhat.com>
2 years ago
Sandra McCann
a46b18e68f
Backportapalooza 11 10 ( #79361 )
...
* update backport instructions to 2.14 (#79354 )
(cherry picked from commit 183c34db65
)
* docfix for ssh_args FAQ (#79308 )
(cherry picked from commit f9451dfaf8
)
* communication.rst: add Storage WG info (#79359 )
(cherry picked from commit 284e642cb9
)
* Add note to command_line_tools.rst (#79351 )
Documentation fix for #69390
(cherry picked from commit d02f96b78c
)
Co-authored-by: prasadpatil49 <51715670+prasadpatil49@users.noreply.github.com>
Co-authored-by: Andrew Klychkov <aklychko@redhat.com>
Co-authored-by: saranti <tsarantis@proton.me>
2 years ago
Jordan Borean
aa43c17a89
Fix up incorrectly quoted doc example ( #79356 ) ( #79357 )
...
(cherry picked from commit e7730f5d6c
)
2 years ago
Felix Fontein
ab8b8ac8e1
Fix typo 'Ansbile'. ( #79318 ) ( #79330 )
...
(cherry picked from commit 2a03c8028e
)
2 years ago
Sandra McCann
a3d26de5c4
Add Ansible community 6.6.0 porting guide ( #79340 ) ( #79348 )
...
(cherry picked from commit d5e90e1737
)
Co-authored-by: Christian Adams <chadams@redhat.com>
2 years ago
Sandra McCann
4ec3cd5a26
Add Ansible community 7.0.0b1 porting guide ( #79341 ) ( #79347 )
...
(cherry picked from commit ef053bbebb
)
Co-authored-by: Christian Adams <chadams@redhat.com>
2 years ago
Sandra McCann
eadfaeb0c4
Japanese version switcher ( #79276 ) ( #79344 )
...
* update japanese version switcher for 2.14
* update latest version
(cherry picked from commit 196084773b
)
2 years ago
Sandra McCann
6068fbddb5
set japanese 2.14 version ( #79278 )
2 years ago
Sandra McCann
6f93710d1f
set docs version in stable-2.14 ( #79275 )
2 years ago
Sandra McCann
175d4becbd
update release table with 2.14 details ( #79272 ) ( #79324 )
...
(cherry picked from commit 657acfb7af
)
2 years ago
Sandra McCann
4af4347ea0
update version switcher to include 2.14 ( #79273 ) ( #79325 )
...
(cherry picked from commit d0b6ce7473
)
2 years ago