Commit Graph

53416 Commits

Author SHA1 Message Date
Matt Clay a34d220e03 Update the AZP container (#87042) 2026-05-28 09:49:28 -07:00
Matt Davis ff092c3eb9 Disable ansible-test azure cloud self-test (#86866) (#86887)
* Core CI service principal pool is broken, likely new global policy. This service is not used by core.

(cherry picked from commit 7678502c77)
2026-04-22 22:12:00 +00:00
Matt Clay b7edb1e116 [stable-2.14] ansible-test - Add support for GitHub Actions (#86643) (#86649)
(cherry picked from commit dfdada96d7)
2026-03-16 09:43:22 -05:00
Matt Clay a8b5c6b488 [stable-2.14] ansible-test - Update the Ansible Core CI endpoint (#86455) (#86503)
(cherry picked from commit ade3d2c3ff)
2026-01-30 23:02:46 +00:00
Matt Clay 9bf291c2bd [stable-2.14] Fix direct S3 link in integration tests (#86464) (#86469)
Also add a sanity test to prevent similar issues in the future.

(cherry picked from commit b1bc1e2513)
2026-01-26 16:02:03 -08:00
Matt Clay 95d8fa4f8b ansible-test - Upgrade to RHEL 9.7 (#86374) (#86380)
(cherry picked from commit 6c024e24b4)
2026-01-05 18:17:03 -08:00
Matt Clay d4232988f2 [stable-2.14] ansible-test - Improve AZP commit API error handling (#86205)
* ansible-test - Improve AZP commit API error handling (#86197)

(cherry picked from commit 3d26431e4f)

* Fix tests on Python 3.10 and earlier
2025-11-14 15:19:36 -08:00
Matt Clay 976aee9400 ansible-test - Use latest RHEL minor versions (#86206) 2025-11-14 12:52:52 -08:00
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) 5000f2683d [stable-2.14] 🧪 Set timeouts for CI jobs (#86104)
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:55 -08:00
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) 0feee4824c [stable-2.14] 🧪 Pin codecov-cli deptree used in AZP (#85903)
* 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)

* Unignore `publish-codecov.py` sanity violations

---------

Co-authored-by: Matt Clay <matt@mystile.com>
2025-09-29 08:48:58 -07:00
Matt Clay 22130a2455 ansible-test - Update Ansible Core CI auth (#85717) (#85772)
Implement new authentication methods for accessing the Ansible Core CI service.

(cherry picked from commit be9e57366b)
2025-08-29 21:00:56 -07:00
Matt Clay b2bb502097 [stable-2.14] CI - Add missing args to generic.sh (#85737) (#85742)
(cherry picked from commit 7b598f3fc9)
2025-08-25 17:06:27 -07:00
Matt Clay 5386d6f48c ansible-test - Remove obsolete WinRM setup script (#81249) (#85735)
The WinRM setup is handled internally by ansible-core-ci now.

(cherry picked from commit 08307de366)
2025-08-25 22:36:46 +00:00
Matt Clay 7921b93e90 [stable-2.14] ansible-test - Fix relative import resolution (#85328) (#85448)
(cherry picked from commit 093ac8df2d)
2025-07-08 14:44:07 -07:00
Matt Clay 7e00794b95 Drop incidental network tests from CI (#85425) (#85432)
(cherry picked from commit 35252fd96c)
2025-07-03 21:59:33 +00:00
Matt Clay 60b8821388 [stable-2.14] release.py - Remove email announcement support (#85060) (#85142)
Also add missing git and run overloads.

(cherry picked from commit 93aa611435)
2025-05-12 17:41:13 +00:00
Sloane Hertel 0a4ad7141b Fix old_style_cache_plugins test failure using latest redis (#85093)
Pin last working version instead
2025-05-06 14:39:58 +00:00
Matt Clay 5e2a992fe0 [stable-2.14] ansible-test - Use -t for container stop timeout (#85019) (#85059)
(cherry picked from commit 0aa8afbaf4)
2025-04-29 05:11:32 +00:00
Matt Clay 75e58a1d62 Disable unsupported integration tests (#85018) 2025-04-19 17:12:55 +00:00
Matt Clay 116e94a682 [stable-2.14] Pin wheel to resolve build issues (#84943) (#84947)
(cherry picked from commit 8b0c4825ae)
2025-04-09 05:43:14 +00:00
Matt Clay f5bf430742 [stable-2.14] ansible-test - Use urllib intead of curl (#84551) (#84632)
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:32:33 -08:00
Matt Clay e0aa18e365 [stable-2.14] Use separate venvs for each release command (#84641) (#84650)
This avoids requirements conflicts between different commands invoked by the release tool.

(cherry picked from commit 4cc47307ef)
2025-01-30 17:26:36 +00:00
Matt Clay dbb48e6d13 [stable-2.14] release.py - Use changelog requirements (#83920) (#84647)
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:12:41 -08:00
Matt Clay 3247d0e0a3 [stable-2.14] ansible-test - Fix interactive cmd traceback (#84264) (#84269)
(cherry picked from commit 68bfa37838)
2024-11-06 00:48:29 +00:00
Matt Martz f007ce4aa1 Update Ansible release version to v2.14.18.post0. (#84253) 2024-11-04 19:17:00 +00:00
Matt Martz b670a4ca81 New release v2.14.18 (#84247) v2.14.18 2024-11-04 12:35:24 -06:00
Matt Clay 6ce42f647e Update Ansible release version to v2.14.18rc1.post0. (#84202) 2024-10-29 19:51:33 +00:00
Matt Clay 5082d8aa6f New release v2.14.18rc1 (#84197) v2.14.18rc1 2024-10-29 11:54:25 -07:00
Sloane Hertel 9201aeb6cf Fix ansible-vault integration test for missing vault ids (#83777) (#83785)
* Fix broken, circumvented test for missing vault ids

* verify the command returns a non-zero exit code

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit fe7e68bfcb)
2024-10-29 17:35:04 +00:00
Matt Clay 435dba3c35 [stable-2.14] ansible-test - Improve container probe error handling (#84109) (#84189)
(cherry picked from commit 48be6f8b6f)
2024-10-29 09:53:01 -07:00
Matt Davis 62682c3029 [stable-2.14] Preserve _ansible_no_log from action result; fix include_vars to set properly (#84143) (#84183)
* 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 09:41:27 -07:00
Brian Coca 03daf774d0 [stable-2.14] user action, fix ssh-keygen issues (#84167)
* user module avoid conflicts ssh pub key (#84165)

Remove pub key if we are going to generate private
fix tests for os X

(cherry picked from commit 11e4a6a722)

* old python, no f''

* Restore test import missing from backport

---------

Co-authored-by: Matt Clay <matt@mystile.com>
2024-10-28 09:47:50 -07:00
Sviatoslav Sydorenko (Святослав Сидоренко) 71a2eba2e6 [2.14] Trim selinux_policytype @ integration tests (#84141)
The shell command sometimes prints a trailing whitespace which breaks
the tests on old RHELs. This patch is supposed to fix that.

(cherry picked from commit cd74c4bcd5)
2024-10-18 09:27:02 -07:00
Matt Clay cdd36b908d Reduce CI test matrix (#84003) 2024-09-24 12:19:41 -07:00
Matt Clay dbd928cad9 [stable-2.14] release.py - Auto-update setuptools upper bound (#83713) (#83745)
* [stable-2.14] release.py - Auto-update setuptools upper bound (#83713)

When releases are prepared, the upper bound on setuptools in pyproject.toml will be automatically updated
to the latest version available on PyPI. This version will then be tested by the package-data sanity test
during the release process and will be used to build the release.

This change ensures that a released version of ansible-core can be built in the future if a new setuptools
release includes breaking changes that would prevent building a functional package. If a downstream package
maintainer requires a newer setuptools version than the upper bound permits, they can patch pyproject.toml
as needed. Since ansible-core releases support specific Python versions, lack of support for new setuptools
releases will have no effect on support for future Python versions.

(cherry picked from commit 4e69d83fac)

* release.py - Add missing setuptools arg to prepare (#83887)

* release.py - Add missing setuptools arg to prepare

This allows the prepare command to accept the `--no-setuptools` argument.

It also fixes a traceback when using the `prepare` command.

* Use a more accurate type hint

(cherry picked from commit b544ac13ec)

* release.py - Include pyproject.toml in git add (#83892)

(cherry picked from commit e3ccdaaa2e)
2024-09-17 09:03:17 -07:00
Matt Clay efa49d745b [stable-2.14] tests: use keyserver with keyid while using apt_key (#83694) (#83704)
(cherry picked from commit 3daf01e270)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2024-08-01 10:37:59 -07:00
Matt Clay 3566e742de [stable-2.14] ansible-test - Remove VyOS tests and support files (#83650) (#83654)
The VyOS remote image required for running the tests is no longer functional.
(cherry picked from commit 79f819dc54)
2024-07-22 16:38:53 -07:00
Matt Clay 5800d3bf04 [stable-2.14] Use build instead of pep517 for integration test (#83641)
(cherry picked from commit f261a6142f)
2024-07-19 17:29:21 +00:00
Matt Clay 575a3c3004 [stable-2.14] Quality-of-life improvements for release tool (#83551) (#83561)
* Quality-of-life improvements for release tool

- Default devel releases to b1
- Default non-devel releases to rc1
- Default to release announcement to console
- Avoid auto-links in GH release annoucements for file sizes

(cherry picked from commit 20a815b03f)
2024-07-09 10:36:44 -07:00
Sviatoslav Sydorenko (Святослав Сидоренко) 9bc9f083c8 [2.14] 🧪 Switch CentOS 7 yum repo mirrors to the vault (#83526)
The distro itself reached EoL on June 30, 2024, but these repository
archives live on and should remain usable for testing.

Refs:
* https://www.redhat.com/en/topics/linux/centos-linux-eol
* https://github.com/ansible/pylibssh/commit/01d3442f
* https://gist.github.com/hkneptune/4961532c2df691db79a1c6b72c251b25
* https://vault.centos.org/7.9.2009/

(cherry picked from commit c8c45cdfb4)

(PR #83523)
2024-07-03 11:55:24 -07:00
Matt Clay 57fad4be34 [stable-2.14] ansible-test - Update PyPI test container to 3.1.0 (#83432). (#83443)
(cherry picked from commit 5af5b4b6c8)
2024-06-13 15:02:31 -07:00
Matt Clay 6a89f9b0b2 Update azure-pipelines-test-container (#83378) 2024-06-06 17:20:26 -07:00
Matt Clay a8ceb44a52 ansible-test - Drop Windows 2012/2012-R2 support (#83380) 2024-06-05 17:25:58 -07:00
Sviatoslav Sydorenko (Святослав Сидоренко) d00a739ed9 [stable-2.14] Drop Alpine 3 docker jobs from CI (#83382) 2024-06-05 13:35:39 -07:00
Matt Martz d0c4223a0c Update Ansible release version to v2.14.17.post0. (#83281) 2024-05-20 19:04:37 +00:00
Matt Martz 896eab43ca New release v2.14.17 (#83276) v2.14.17 2024-05-20 13:25:36 -05:00
Matt Martz 7f35a92c80 Update Ansible release version to v2.14.17rc1.post0. (#83243) 2024-05-13 18:07:53 +00:00
Matt Martz 5997075665 New release v2.14.17rc1 (#83239) v2.14.17rc1 2024-05-13 12:19:07 -05:00
Matt Clay 63df21e9cb [stable-2.14] ansible-test - Use PyPI proxy for centos7 (#83226) (#83229)
(cherry picked from commit c0f7e9cc2c)
2024-05-09 22:31:59 +00:00
Sloane Hertel c96341e8e6 Fix installing roles containing symlinks (#82911) (#83139)
* Fix installing roles containing symlinks

Fix sanitizing tarfile symlinks relative to the link directory instead of the archive

For example:

role
├── handlers
│   └── utils.yml -> ../tasks/utils/suite.yml

The link ../tasks/utils/suite.yml will resolve to a path outside of the link's directory, but within the role

role/handlers/../tasks/utils/suite.yml

the resolved path relative to the role is tasks/utils/suite.yml, but if the symlink is set to that value, tarfile would extract it from role/handlers/tasks/utils/suite.yml

* Replace overly forgiving test case with tests for a symlink in a subdirectory of the archive and a symlink in the archive dir when these are not equivalent.

* Build test case from role files to make it easier to add test cases

Fixes #82702
Fixes #81965
Fixes #82051

(cherry picked from commit e84240db84)
2024-05-09 09:34:42 -07:00