Commit Graph
54231 Commits
Author SHA1 Message Date
Matt ClayandGitHub b00b112bbb [stable-2.16] ansible-test - Upgrade to RHEL 9.7 (#86374) (#86379)
(cherry picked from commit 6c024e24b4)
2026-01-05 18:15:42 -08:00
sivel / Matt MartzandGitHub e24e169dbb Update Ansible release version to v2.16.15.post0. (#86313) 2025-12-09 17:19:22 +00:00
sivel / Matt MartzandGitHub 5df26453a1 New release v2.16.15 (#86309) v2.16.15 2025-12-09 10:23:58 -06:00
sivel / Matt MartzandGitHub 12ef33c586 Update Ansible release version to v2.16.15rc1.post0. (#86287) 2025-12-02 23:38:42 +00:00
sivel / Matt MartzandGitHub 694320a67e New release v2.16.15rc1 (#86283) v2.16.15rc1 2025-12-02 23:08:14 +00:00
Brian CocaandGitHub 1c1e37654a Show file instead of vars on load error (#86282)
(cherry picked from commit 490795770f34120adc02b08fc24fc50be6ac68a2)
(cherry picked from commit 11a2d02bf2)
2025-12-02 16:35:23 -06:00
Matt ClayandGitHub 3c4f0f99bc [stable-2.16] ansible-test - Improve AZP commit API error handling (#86204)
* [stable-2.16] ansible-test - Improve AZP commit API error handling (#86197)

(cherry picked from commit 3d26431e4f)

Co-authored-by: Matt Clay <matt@mystile.com>

* Fix tests on Python 3.10 and earlier
2025-11-14 15:19:30 -08:00
Matt ClayandGitHub 631fac59ed ansible-test - Use latest RHEL minor versions (#86207) 2025-11-14 13:25:54 -08:00
5c06fa5998 [stable-2.16] 🧪 Set timeouts for CI jobs (#86105)
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:12:38 -08:00
3fe2668d12 [stable-2.16] Install xt_comment kernel mod @ iptables test (#86187) (#86191)
This patch fixes integration test jobs running under RHEL 10.0 that don't have this extension pre-installed.

Co-Authored-By: sivel / Matt Martz <matt@sivel.net>

(cherry picked from commit 69c9fbed26)
2025-11-14 10:24:24 -08:00
4afb6417b2 [stable-2.16] 🧪 Pin codecov-cli deptree used in AZP (#85904)
* Use codecov-cli for uploads (#85386)

ci_coverage
ci_complete

(cherry picked from commit 4a03ccbd41)

* 🧪 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

(cherry picked from commit 1e572ba5cc)

---------

Co-authored-by: Matt Clay <matt@mystile.com>
2025-09-29 08:48:50 -07:00
937980fa6c [stable-2.16] Prevent IO capture hang/loss in basic.run_command (#85869) (#85894)
* 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>
2025-09-23 14:59:41 -05:00
Matt ClayandGitHub 5cf9c07608 ansible-test - Update Ansible Core CI auth (#85717) (#85771)
Implement new authentication methods for accessing the Ansible Core CI service.

(cherry picked from commit be9e57366b)
2025-08-29 21:00:47 -07:00
Matt ClayandGitHub bf2db550e9 [stable-2.16] CI - Add missing args to generic.sh (#85737) (#85741)
(cherry picked from commit 7b598f3fc9)
2025-08-25 17:06:23 -07:00
Matt ClayandGitHub 1d1be866f1 [stable-2.16] ansible-test - Limit bootstrap package install retries (#85544) (#85549)
(cherry picked from commit ee297bb7ca)
2025-07-29 15:24:06 -07:00
Matt ClayandGitHub a9663745f5 [stable-2.16] Update azure-pipelines-test-container (#85578) (#85582)
(cherry picked from commit 62dc40ce1c)
2025-07-29 14:23:33 -07:00
Matt ClayandGitHub 91676a9a8f Trim down CI test matrix (#85527)
Now that 2.16 is EOL upstream, the test matrix can be reduced.
2025-07-23 17:00:04 +00:00
Matt ClayandGitHub 64096fc370 [stable-2.16] ansible-test - Fix relative import resolution (#85328) (#85447)
(cherry picked from commit 093ac8df2d)
2025-07-08 14:44:04 -07:00
Matt ClayandGitHub ed807e929f Drop incidental network tests from CI (#85425) (#85431)
(cherry picked from commit 35252fd96c)
2025-07-03 22:10:21 +00:00
4a616ffa64 [stable-2.16] ansible-test - Add RHEL 10.0 remote (#85189) (#85268)
* 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)

* Remove unsupported sub_key tests

* Enable vendored copy of distutils in entry_point test (#82232)

* Enable use of vendored copy of distutils by removing
  the environment variable SETUPTOOLS_USE_DISTUTILS

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 1a759659fe)

* Add RHEL 10 support to dnf test

* Adjust signature check in tests

* use yum

The dnf action plugin is not able to redirect to yum (the value of `pkg_mgr` in RHEL 7) in 2.16 before yum removal.

* Use redhat-*-fonts for yum test

The lohit-*-fonts are not available on RHEL 10.

* yum integration tests fixes

* use fonts package available in "all" RHEL versions
* use dnf Python module to retrieve the releasever value

* fix sanity

* zlib not available on RHEL10

---------

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
2025-06-06 13:25:11 -07:00
Martin KrizekandGitHub 078f350014 [stable-2.16] dnf5 tests: do not remove attr (#85218) (#85272)
On RHEL 10, the attr package is in the dependency tree of dnf itself
and cannot be removed.
(cherry picked from commit a0132fec0b)
2025-06-05 07:43:48 -07:00
df967f21ec [stable-2.16] User: Update prompt for SSH key passphrase prompt (#84521) (#85236)
* [stable-2.16] User: Update prompt for SSH key passphrase prompt (#84521)

* update prompt for SSH key passphrase prompt
* introduce timeout in SSH key passphrase interaction

Fixes: #84484

(cherry picked from commit 8588401387)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>

* Fix Python 2.7 compat

---------

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2025-05-30 09:23:25 -07:00
Matt ClayandGitHub 5814732d2a [stable-2.16] release.py - Remove email announcement support (#85060) (#85141)
Also add missing git and run overloads.

(cherry picked from commit 93aa611435)
2025-05-12 17:41:06 +00:00
Matt DavisandGitHub 878901dd1e add fuzzy matching to package_data sanity (#85103) (#85138)
* 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-12 17:38:46 +00:00
Sloane HertelandGitHub 24b2747b8d Fix old_style_cache_plugins test failure using latest redis (#85092)
Pin last working version instead
2025-05-06 14:41:31 +00:00
Matt ClayandGitHub 80156dc807 [stable-2.16] ansible-test - Use -t for container stop timeout (#85019) (#85058)
(cherry picked from commit 0aa8afbaf4)
2025-04-29 04:54:09 +00:00
Matt ClayandGitHub cd23556e80 [stable-2.16] ansible-test - Replace FreeBSD 13.2 with 13.3 (#85030)
* ansible-test - Replace FreeBSD 13.2 with 13.3

* Fix psutil integration test

* Remove outdated constraint for paramiko setup

(cherry picked from commit 2b1a5dd7a0)
2025-04-23 06:56:08 +00:00
8082fb0424 [stable-2.16] default svn URL to 127.0.0.1 for subversion integration tests (#82551) (#85031)
* default svn URL to 127.0.0.1 for subversion integration tests

* svn client gives up before trying IPv4 addresses when localhost->(::1,127.0.0.1) in dual-stack envs (eg podman, most real hosts)
* svn client also requires legacy CN match on cert
* IPv6 works, but setup playbook would need a bunch more templating exceptions to conditionally manage `[::1]`

* explain IPv4 defaults

(cherry picked from commit 4aa109897f)

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
2025-04-22 09:30:34 -07:00
Brian CocaandGitHub e8bfe2b8cd Fix uninstall tests (#84973) (#84976)
match file name to package_manager detection of dnf5

(cherry picked from commit 6fc592df9b)
2025-04-14 11:11:45 -05:00
Matt ClayandGitHub f4180a6289 [stable-2.16] Pin wheel to resolve build issues (#84943) (#84946)
(cherry picked from commit 8b0c4825ae)
2025-04-09 05:42:23 +00:00
Martin KrizekandGitHub d96d956b1b [stable-2.16] targets/handlers: fix incorrect test cmd (#84567) (#84603)
(cherry picked from commit 3b6d086f5e)
2025-02-12 14:52:01 -06:00
Matt ClayandGitHub 39062af6bf [stable-2.16] ansible-test - Use urllib intead of curl (#84551) (#84631)
Also added automatic retries on HTTP request exceptions, since all currently implemented methods (GET/PUT/DELETE) are idempotent.

(cherry picked from commit 7677bf1c9b)
2025-01-30 09:31:50 -08:00
Matt ClayandGitHub 88a452a601 [stable-2.16] Use separate venvs for each release command (#84641) (#84649)
This avoids requirements conflicts between different commands invoked by the release tool.

(cherry picked from commit 4cc47307ef)
2025-01-30 17:25:37 +00:00
Matt ClayandGitHub aa59ea58c2 release.py - Use changelog requirements (#83920) (#84646)
Use the changelog sanity test requirements instead of the package-data sanity test requirements.

This enables removal of most package-data sanity test requirements, as they are no longer used by the test itself.
The additional requirements were being maintained only to provide pinned requirements for building the changelog during a release.

(cherry picked from commit cd342f76b4)
2025-01-30 09:10:01 -08:00
Jordan BoreanandGitHub c6bb15e7b0 ansible-test - fix coverage for test modules (#84366) (#84399)
Fixes the coverage path translation for modules located in integration
test paths. Instead of trying to match by the unique temporary path name
that the module is executed as, the reporting tool will translate it to
the static path that the module is actually located under.

(cherry picked from commit f9b58fa13f)
2025-01-20 13:41:24 -06:00
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)andGitHub 5541c9df98 [stable-2.16] Bump subversion to latest in its test on openSUSE (#84511)
This is necessary because the openSUSE repo in use [[1]] got package
updates on Dec 17, 2024. Our tests require "any" version of the
`subversion` and `subversion-server` packages. So with `subversion`
being pre-installed, it remained on some older version while the
playbook installed the latest version of `subversion-server`. This
caused Apache to fail loading the corresponding module
`mod_dav_svn.so`. The task invoking `httpd` is asynchronous and no
logic checks that it started correctly before attempting to run the
tests — it only checks for the `svn` binary presence.

This is how the problem manifests itself when the server is spawned
interactively:

```
root@2d3bae23bb22:/$ apachectl -k start -f /tmp/ansible-svn/subversion.conf
which: no w3m in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
which: no lynx in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
httpd-prefork: Syntax error on line 3 of /tmp/ansible-svn/subversion.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/apache2/mod_dav_svn.so: undefined symbol: svn_repos__validate_new_path
```

This patch addresses the issue by setting minimum required version to
install to what's currently the latest.

[1]: http://download.opensuse.org/update/leap/15.5/sle/x86_64/
2025-01-03 12:09:02 -08:00
Matt ClayandGitHub 8cb94e3443 [stable-2.16] Fix result_pickle_error integration test (#84506) (#84509)
The test has been updated to use a custom type which does not support pickling,
instead of relying on Jinja's `Undefined` type. As of Jinja 3.1.5 that type now
supports pickle, which breaks the original implementation of the test.
(cherry picked from commit 5ec236b)
2025-01-02 20:14:02 -08:00
Matt MartzandGitHub 4de4550af1 Update Ansible release version to v2.16.14.post0. (#84416) 2024-12-02 18:35:58 +00:00
Matt MartzandGitHub 92aaf6493f New release v2.16.14 (#84413) v2.16.14 2024-12-02 11:46:35 -06:00
Matt MartzandGitHub a564f15ddf Update Ansible release version to v2.16.14rc1.post0. (#84391) 2024-11-25 19:46:38 +00:00
Matt MartzandGitHub bdd8cbbd46 New release v2.16.14rc1 (#84388) v2.16.14rc1 2024-11-25 12:56:24 -06:00
Brian CocaandGitHub c817156b7c command module, fix docs to reflect reality (#84191) (#84279)
though the previous docs were the 'intended' outcome,
the current behaviour has been active for a long time and should
not be removed due to backward compatibility issues.

One thing we can do going forward is deprecate substitution enabled by default.

(cherry picked from commit bf48b538f8)
2024-11-25 09:17:14 -06:00
Jordan BoreanandGitHub 70e83e72b4 Fix CVE-2024-11079 hostvars unsafe context (#84339) (#84353)
Fix to preserve an unsafe variable when accessing through an
intermediary variable from hostvars.

(cherry picked from commit 2936b80dbb)
2024-11-25 09:15:42 -06:00
Matt ClayandGitHub 12abfb06c2 [stable-2.16] ansible-test - Fix interactive cmd traceback (#84264) (#84267)
(cherry picked from commit 68bfa37838)
2024-11-06 00:52:53 +00:00
Matt MartzandGitHub 2173442ed1 Update Ansible release version to v2.16.13.post0. (#84256) 2024-11-04 20:03:12 +00:00
Matt MartzandGitHub 060d2a8ad8 New release v2.16.13 (#84249) v2.16.13 2024-11-04 12:35:35 -06:00
Matt ClayandGitHub 8ae505fa2c Update Ansible release version to v2.16.13rc1.post0. (#84200) 2024-10-29 19:49:32 +00:00
Matt ClayandGitHub 6d06996ca2 New release v2.16.13rc1 (#84195) v2.16.13rc1 2024-10-29 11:53:55 -07:00
Matt DavisandGitHub 0595e83c22 [stable-2.16] Preserve _ansible_no_log from action result; fix include_vars to set properly (#84143) (#84181)
* fixes for CVE-2024-8775

* propagate truthy `_ansible_no_log` in action result (previously superseded by task-calculated value)
* always mask entire `include_vars` action result if any file loaded had a false `show_content` flag (previously used only the flag value from the last file loaded)

* update no_log tests for CVE-2024-8775
* include validation of _ansible_no_log preservation when set by actions
* replace static values with dynamic for increased robustness to logging/display/callback changes (but still using grep counts :( )

* changelog

* use ternary, coerce to bool explicitly
(cherry picked from commit c9ac477e53)
2024-10-29 10:28:47 -07:00
Martin KrizekandGitHub 94126e4082 Reduce number of implicit meta tasks (#84007) (#84046)
This greatly reduces run time on large inventories since meta tasks are
executed in the main process sequentially and just executing them is expensive.

This change avoids running the following implicit meta tasks:
  * ``flush_handlers`` on hosts where no handlers are notified
  * ``noop`` for the linear strategy's lockstep, instead hosts that are
    not executing the current task are just not part of the current host loop

A playbook consiting of two simple plays both running on ~6000 hosts
runs in:
devel: 37s
this PR: 1.3s

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit d6d2251929)
2024-10-29 09:51:30 -07:00