From 849a7ee899259db35996d55d2a033bec5ffa8a18 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 6 Apr 2026 21:51:31 +0200 Subject: [PATCH] Add stable-2.21 to CI (#11743) Add stable-2.21 to CI. --- .azure-pipelines/azure-pipelines.yml | 80 ++++++++++++++++++++++++++++ README.md | 2 +- tests/sanity/ignore-2.22.txt | 19 +++++++ tests/sanity/ignore-2.22.txt.license | 3 ++ 4 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 tests/sanity/ignore-2.22.txt create mode 100644 tests/sanity/ignore-2.22.txt.license diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml index 34855ed6e7..206b7391f9 100644 --- a/.azure-pipelines/azure-pipelines.yml +++ b/.azure-pipelines/azure-pipelines.yml @@ -70,6 +70,19 @@ stages: - test: 2 - test: 3 - test: 4 + - stage: Sanity_2_21 + displayName: Sanity 2.21 + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + nameFormat: Test {0} + testFormat: 2.21/sanity/{0} + targets: + - test: 1 + - test: 2 + - test: 3 + - test: 4 - stage: Sanity_2_20 displayName: Sanity 2.20 dependsOn: [] @@ -125,6 +138,18 @@ stages: - test: '3.12' - test: '3.13' - test: '3.14' + - stage: Units_2_21 + displayName: Units 2.21 + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + nameFormat: Python {0} + testFormat: 2.21/units/{0}/1 + targets: + - test: 3.9 + - test: "3.12" + - test: "3.14" - stage: Units_2_20 displayName: Units 2.20 dependsOn: [] @@ -205,6 +230,24 @@ stages: - 1 - 2 - 3 + - stage: Remote_2_21 + displayName: Remote 2.21 + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + testFormat: 2.21/{0} + targets: + # - name: macOS 26.3 + # test: macos/26.3 + - name: RHEL 10.1 + test: rhel/10.1 + # - name: RHEL 9.7 + # test: rhel/9.7 + groups: + - 1 + - 2 + - 3 - stage: Remote_2_20 displayName: Remote 2.20 dependsOn: [] @@ -277,6 +320,26 @@ stages: - 1 - 2 - 3 + - stage: Docker_2_21 + displayName: Docker 2.21 + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + testFormat: 2.21/linux/{0} + targets: + - name: Fedora 43 + test: fedora43 + # - name: Alpine 3.23 + # test: alpine323 + # - name: Ubuntu 22.04 + # test: ubuntu2204 + - name: Ubuntu 24.04 + test: ubuntu2404 + groups: + - 1 + - 2 + - 3 - stage: Docker_2_20 displayName: Docker 2.20 dependsOn: [] @@ -364,6 +427,18 @@ stages: # - test: '3.9' # - test: '3.12' # - test: '3.14' +# - stage: Generic_2_21 +# displayName: Generic 2.21 +# dependsOn: [] +# jobs: +# - template: templates/matrix.yml +# parameters: +# nameFormat: Python {0} +# testFormat: 2.21/generic/{0}/1 +# targets: +# - test: '3.9' +# - test: '3.12' +# - test: '3.14' # - stage: Generic_2_20 # displayName: Generic 2.20 # dependsOn: [] @@ -402,25 +477,30 @@ stages: condition: succeededOrFailed() dependsOn: - Sanity_devel + - Sanity_2_21 - Sanity_2_20 - Sanity_2_19 - Sanity_2_18 - Units_devel + - Units_2_21 - Units_2_20 - Units_2_19 - Units_2_18 - Remote_devel_extra_vms - Remote_devel + - Remote_2_21 - Remote_2_20 - Remote_2_19 - Remote_2_18 - Docker_devel + - Docker_2_21 - Docker_2_20 - Docker_2_19 - Docker_2_18 - Docker_community_devel # Right now all generic tests are disabled. Uncomment when at least one of them is re-enabled. # - Generic_devel +# - Generic_2_21 # - Generic_2_20 # - Generic_2_19 # - Generic_2_18 diff --git a/README.md b/README.md index 9fca50ab04..d580429189 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ For more information about communication, see the [Ansible communication guide]( ## Tested with Ansible -Tested with the current ansible-core 2.17, ansible-core 2.18, ansible-core 2.19, ansible-core 2.20 releases and the current development version of ansible-core. Ansible-core versions before 2.17.0 are not supported. This includes all ansible-base 2.10 and Ansible 2.9 releases. +Tested with the current ansible-core 2.17, ansible-core 2.18, ansible-core 2.19, ansible-core 2.20, ansible-core 2.21 releases and the current development version of ansible-core. Ansible-core versions before 2.17.0 are not supported. This includes all ansible-base 2.10 and Ansible 2.9 releases. ## External requirements diff --git a/tests/sanity/ignore-2.22.txt b/tests/sanity/ignore-2.22.txt new file mode 100644 index 0000000000..c64e926bca --- /dev/null +++ b/tests/sanity/ignore-2.22.txt @@ -0,0 +1,19 @@ +plugins/module_utils/_lxc.py pylint:ansible-bad-function # needs to use Popen() to stream logs +plugins/modules/ansible_galaxy_install.py validate-modules:bad-return-value-key # TODO: rename offending return values if possible, or adjust this comment in case the name is OK +plugins/modules/consul_session.py validate-modules:parameter-state-invalid-choice +plugins/modules/gandi_livedns.py validate-modules:bad-return-value-key # TODO: rename offending return values if possible, or adjust this comment in case the name is OK +plugins/modules/homectl.py import-3.11 # Uses deprecated stdlib library 'crypt' +plugins/modules/homectl.py import-3.12 # Uses deprecated stdlib library 'crypt' +plugins/modules/interfaces_file.py validate-modules:bad-return-value-key # TODO: rename offending return values if possible, or adjust this comment in case the name is OK +plugins/modules/iptables_state.py validate-modules:undocumented-parameter # params _back and _timeout used by action plugin +plugins/modules/keycloak_realm_info.py validate-modules:bad-return-value-key # TODO: rename offending return values if possible, or adjust this comment in case the name is OK +plugins/modules/keycloak_realm_keys_metadata_info.py validate-modules:bad-return-value-key # TODO: rename offending return values if possible, or adjust this comment in case the name is OK +plugins/modules/nosh.py validate-modules:bad-return-value-key # TODO: rename offending return values if possible, or adjust this comment in case the name is OK +plugins/modules/omapi_host.py validate-modules:bad-return-value-key # TODO: rename offending return values if possible, or adjust this comment in case the name is OK +plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice +plugins/modules/parted.py validate-modules:parameter-state-invalid-choice +plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice +plugins/modules/udm_user.py import-3.11 # Uses deprecated stdlib library 'crypt' +plugins/modules/udm_user.py import-3.12 # Uses deprecated stdlib library 'crypt' +plugins/modules/xfconf.py validate-modules:return-syntax-error +tests/unit/plugins/modules/test_gio_mime.yaml no-smart-quotes diff --git a/tests/sanity/ignore-2.22.txt.license b/tests/sanity/ignore-2.22.txt.license new file mode 100644 index 0000000000..edff8c7685 --- /dev/null +++ b/tests/sanity/ignore-2.22.txt.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project