From a1669d490fbb2b931beb9344e29fbeccd37069e1 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 12 Mar 2025 07:24:02 +0100 Subject: [PATCH] CI: Remove usage of ubuntu-20.04, add FreeBSD 13.5 (#853) * Switch from ubuntu-20.04 to ubuntu-latest for old Ansible versions. * [TEMP] Change to trigger full CI. * Add FreeBSD 13.5. --- .azure-pipelines/azure-pipelines.yml | 4 ++-- .github/workflows/ansible-test.yml | 30 +++----------------------- plugins/module_utils/crypto/basic.py | 2 +- plugins/module_utils/crypto/support.py | 2 +- plugins/module_utils/io.py | 2 +- plugins/module_utils/version.py | 2 +- 6 files changed, 9 insertions(+), 33 deletions(-) diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml index dae1c5c1..88e3d74d 100644 --- a/.azure-pipelines/azure-pipelines.yml +++ b/.azure-pipelines/azure-pipelines.yml @@ -218,8 +218,8 @@ stages: test: rhel/9.5 - name: FreeBSD 14.2 test: freebsd/14.2 - - name: FreeBSD 13.4 - test: freebsd/13.4 + - name: FreeBSD 13.5 + test: freebsd/13.5 groups: - 1 - 2 diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 65bb9172..c8f3ba2c 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -36,15 +36,7 @@ jobs: - '2.13' - '2.14' - '2.15' - # Ansible-test on various stable branches does not yet work well with cgroups v2. - # Since ubuntu-latest now uses Ubuntu 22.04, we need to fall back to the ubuntu-20.04 - # image for these stable branches. The list of branches where this is necessary will - # shrink over time, check out https://github.com/ansible-collections/news-for-maintainers/issues/28 - # for the latest list. - runs-on: >- - ${{ contains(fromJson( - '["2.9", "2.10", "2.11"]' - ), matrix.ansible) && 'ubuntu-20.04' || 'ubuntu-latest' }} + runs-on: ubuntu-latest steps: - name: Perform sanity testing uses: felixfontein/ansible-test-gh-action@main @@ -57,15 +49,7 @@ jobs: testing-type: sanity units: - # Ansible-test on various stable branches does not yet work well with cgroups v2. - # Since ubuntu-latest now uses Ubuntu 22.04, we need to fall back to the ubuntu-20.04 - # image for these stable branches. The list of branches where this is necessary will - # shrink over time, check out https://github.com/ansible-collections/news-for-maintainers/issues/28 - # for the latest list. - runs-on: >- - ${{ contains(fromJson( - '["2.9", "2.10", "2.11"]' - ), matrix.ansible) && 'ubuntu-20.04' || 'ubuntu-latest' }} + runs-on: ubuntu-latest name: EOL Units (Ⓐ${{ matrix.ansible }}) strategy: # As soon as the first unit test fails, cancel the others to free up the CI queue @@ -94,15 +78,7 @@ jobs: testing-type: units integration: - # Ansible-test on various stable branches does not yet work well with cgroups v2. - # Since ubuntu-latest now uses Ubuntu 22.04, we need to fall back to the ubuntu-20.04 - # image for these stable branches. The list of branches where this is necessary will - # shrink over time, check out https://github.com/ansible-collections/news-for-maintainers/issues/28 - # for the latest list. - runs-on: >- - ${{ contains(fromJson( - '["2.9", "2.10", "2.11"]' - ), matrix.ansible) && 'ubuntu-20.04' || 'ubuntu-latest' }} + runs-on: ubuntu-latest name: EOL I (Ⓐ${{ matrix.ansible }}+${{ matrix.docker }}+py${{ matrix.python }}:${{ matrix.target }}) strategy: fail-fast: false diff --git a/plugins/module_utils/crypto/basic.py b/plugins/module_utils/crypto/basic.py index 11c688d2..65345129 100644 --- a/plugins/module_utils/crypto/basic.py +++ b/plugins/module_utils/crypto/basic.py @@ -5,7 +5,7 @@ # 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 -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/crypto/support.py b/plugins/module_utils/crypto/support.py index d10ef1c8..dc292701 100644 --- a/plugins/module_utils/crypto/support.py +++ b/plugins/module_utils/crypto/support.py @@ -4,7 +4,7 @@ # 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 -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/io.py b/plugins/module_utils/io.py index 1386c776..2ef6bf2a 100644 --- a/plugins/module_utils/io.py +++ b/plugins/module_utils/io.py @@ -4,7 +4,7 @@ # 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 -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/version.py b/plugins/module_utils/version.py index dc01ffe8..b029b51b 100644 --- a/plugins/module_utils/version.py +++ b/plugins/module_utils/version.py @@ -6,7 +6,7 @@ """Provide version object to compare version numbers.""" -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type