diff --git a/.azure-pipelines/README.md b/.azure-pipelines/README.md deleted file mode 100644 index 9e8ad741..00000000 --- a/.azure-pipelines/README.md +++ /dev/null @@ -1,9 +0,0 @@ - - -## Azure Pipelines Configuration - -Please see the [Documentation](https://github.com/ansible/community/wiki/Testing:-Azure-Pipelines) for more information. diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml deleted file mode 100644 index cda2b33a..00000000 --- a/.azure-pipelines/azure-pipelines.yml +++ /dev/null @@ -1,292 +0,0 @@ ---- -# Copyright (c) Ansible Project -# 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 - -trigger: - batch: true - branches: - include: - - main - - stable-* - -pr: - autoCancel: true - branches: - include: - - main - - stable-* - -schedules: - - cron: 0 9 * * * - displayName: Nightly - always: true - branches: - include: - - main - - cron: 0 12 * * 0 - displayName: Weekly (old stable branches) - always: true - branches: - include: - - stable-3 - -variables: - - name: checkoutPath - value: ansible_collections/community/docker - - name: coverageBranches - value: main - - name: entryPoint - value: tests/utils/shippable/shippable.sh - - name: fetchDepth - value: 0 - -resources: - containers: - - container: default - image: quay.io/ansible/azure-pipelines-test-container:7.0.0 - -pool: Standard - -stages: - -### Sanity & units - - stage: Ansible_2_19 - displayName: Sanity & Units 2.19 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - targets: - - name: Sanity - test: '2.19/sanity/1' - - name: Units - test: '2.19/units/1' - - stage: Ansible_2_18 - displayName: Sanity & Units 2.18 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - targets: - - name: Sanity - test: '2.18/sanity/1' - - name: Units - test: '2.18/units/1' - - stage: Ansible_2_17 - displayName: Sanity & Units 2.17 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - targets: - - name: Sanity - test: '2.17/sanity/1' - - name: Units - test: '2.17/units/1' - - stage: Ansible_2_16 - displayName: Sanity & Units 2.16 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - targets: - - name: Sanity - test: '2.16/sanity/1' - - name: Units - test: '2.16/units/1' - -### Docker - - stage: Docker_2_19 - displayName: Docker 2.19 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: 2.19/linux/{0} - targets: - - name: Fedora 41 - test: fedora41 - - name: Ubuntu 22.04 - test: ubuntu2204 - - name: Ubuntu 24.04 - test: ubuntu2404 - - name: Alpine 3.21 - test: alpine321 - groups: - - 4 - - 5 - # - 6 -- some images no longer work with docker-compose v1 - - stage: Docker_2_18 - displayName: Docker 2.18 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: 2.18/linux/{0} - targets: - - name: Fedora 40 - test: fedora40 - - name: Ubuntu 22.04 - test: ubuntu2204 - - name: Alpine 3.20 - test: alpine320 - groups: - - 4 - - 5 - # - 6 -- some images no longer work with docker-compose v1 - - stage: Docker_2_17 - displayName: Docker 2.17 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: 2.17/linux/{0} - targets: - - name: Fedora 39 - test: fedora39 - - name: Ubuntu 20.04 - test: ubuntu2004 - - name: Alpine 3.19 - test: alpine319 - groups: - - 4 - - 5 - - 6 - - stage: Docker_2_16 - displayName: Docker 2.16 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: 2.16/linux/{0} - targets: - - name: Fedora 38 - test: fedora38 - - name: CentOS 7 - test: centos7 - - name: openSUSE 15 - test: opensuse15 - - name: Alpine 3 - test: alpine3 - groups: - - 4 - - 5 - - 6 - -### Community Docker - - stage: Docker_community_2_19 - displayName: Docker (community images) 2.19 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: 2.19/linux-community/{0} - targets: - - name: Debian 11 Bullseye - test: debian-bullseye/3.9 - - name: Debian 12 Bookworm - test: debian-bookworm/3.11 - - name: Debian 13 Trixie - test: debian-13-trixie/3.13 - - name: ArchLinux - test: archlinux/3.13 - groups: - - 4 - - 5 - - 6 - -### Remote - - stage: Remote_2_19 - displayName: Remote 2.19 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: 2.19/{0} - targets: - - name: RHEL 9.5 with Docker SDK, urllib3, requests from sources - test: rhel/9.5-dev-latest - groups: - - 1 - - 2 - - 3 - - 4 - - 5 - # - 6 -- Docker 26 no longer works with docker-compose v1 - - stage: Remote_2_18 - displayName: Remote 2.18 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: 2.18/{0} - targets: - - name: RHEL 9.4 - test: rhel/9.4 - groups: - - 1 - - 2 - - 3 - - 4 - - 5 - # - 6 -- Docker 26 no longer works with docker-compose v1 - - stage: Remote_2_17 - displayName: Remote 2.17 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: 2.17/{0} - targets: - - name: RHEL 9.3 - test: rhel/9.3 - groups: - - 1 - - 2 - - 3 - - 4 - - 5 - # - 6 -- Docker 26 no longer works with docker-compose v1 - - stage: Remote_2_16 - displayName: Remote 2.16 - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: 2.16/{0} - targets: - - name: RHEL 9.2 - test: rhel/9.2 - # Currently always hangs in group 2 - # - name: RHEL 8.8 - # test: rhel/8.8 - - name: RHEL 7.9 - test: rhel/7.9 - groups: - - 1 - - 2 - - 3 - - 4 - - 5 - - ## Finally - - - stage: Summary - condition: succeededOrFailed() - dependsOn: - - Ansible_2_19 - - Ansible_2_18 - - Ansible_2_17 - - Ansible_2_16 - - Remote_2_19 - - Remote_2_18 - - Remote_2_17 - - Remote_2_16 - - Docker_2_19 - - Docker_2_18 - - Docker_2_17 - - Docker_2_16 - - Docker_community_2_19 - jobs: - - template: templates/coverage.yml diff --git a/.azure-pipelines/scripts/aggregate-coverage.sh b/.azure-pipelines/scripts/aggregate-coverage.sh deleted file mode 100755 index 0ccef353..00000000 --- a/.azure-pipelines/scripts/aggregate-coverage.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash -# Aggregate code coverage results for later processing. - -# Copyright (c) Ansible Project -# 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 - -set -o pipefail -eu - -agent_temp_directory="$1" - -PATH="${PWD}/bin:${PATH}" - -mkdir "${agent_temp_directory}/coverage/" - -if [[ "$(ansible --version)" =~ \ 2\.9\. ]]; then - exit -fi - -options=(--venv --venv-system-site-packages --color -v) - -ansible-test coverage combine --group-by command --export "${agent_temp_directory}/coverage/" "${options[@]}" - -if ansible-test coverage analyze targets generate --help >/dev/null 2>&1; then - # Only analyze coverage if the installed version of ansible-test supports it. - # Doing so allows this script to work unmodified for multiple Ansible versions. - ansible-test coverage analyze targets generate "${agent_temp_directory}/coverage/coverage-analyze-targets.json" "${options[@]}" -fi diff --git a/.azure-pipelines/scripts/combine-coverage.py b/.azure-pipelines/scripts/combine-coverage.py deleted file mode 100755 index 3b2fd993..00000000 --- a/.azure-pipelines/scripts/combine-coverage.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env python -# Copyright (c) Ansible Project -# 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 - -""" -Combine coverage data from multiple jobs, keeping the data only from the most recent attempt from each job. -Coverage artifacts must be named using the format: "Coverage $(System.JobAttempt) {StableUniqueNameForEachJob}" -The recommended coverage artifact name format is: Coverage $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName) -Keep in mind that Azure Pipelines does not enforce unique job display names (only names). -It is up to pipeline authors to avoid name collisions when deviating from the recommended format. -""" - -from __future__ import (absolute_import, division, print_function) -__metaclass__ = type - -import os -import re -import shutil -import sys - - -def main(): - """Main program entry point.""" - source_directory = sys.argv[1] - - if '/ansible_collections/' in os.getcwd(): - output_path = "tests/output" - else: - output_path = "test/results" - - destination_directory = os.path.join(output_path, 'coverage') - - if not os.path.exists(destination_directory): - os.makedirs(destination_directory) - - jobs = {} - count = 0 - - for name in os.listdir(source_directory): - match = re.search('^Coverage (?P[0-9]+) (?P