From b643c52cf29ce5bbab738b43290af3556efa1ca9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 5 Jun 2024 18:18:41 +0200 Subject: Merging upstream version 10.0.0+dfsg. Signed-off-by: Daniel Baumann --- .../community/azure/.azure-pipelines/README.md | 3 - .../azure/.azure-pipelines/azure-pipelines.yml | 61 -- .../.azure-pipelines/scripts/aggregate-coverage.sh | 20 - .../.azure-pipelines/scripts/combine-coverage.py | 60 -- .../.azure-pipelines/scripts/process-results.sh | 24 - .../.azure-pipelines/scripts/publish-codecov.sh | 27 - .../.azure-pipelines/scripts/report-coverage.sh | 15 - .../azure/.azure-pipelines/scripts/run-tests.sh | 34 -- .../azure/.azure-pipelines/scripts/time-command.py | 25 - .../azure/.azure-pipelines/templates/coverage.yml | 39 -- .../azure/.azure-pipelines/templates/matrix.yml | 55 -- .../azure/.azure-pipelines/templates/test.yml | 45 -- ansible_collections/community/azure/CHANGELOG.rst | 108 ---- ansible_collections/community/azure/COPYING | 675 --------------------- ansible_collections/community/azure/FILES.json | 334 ---------- ansible_collections/community/azure/MANIFEST.json | 32 - ansible_collections/community/azure/README.md | 39 -- .../community/azure/changelogs/changelog.yaml | 228 ------- .../community/azure/changelogs/config.yaml | 29 - .../community/azure/changelogs/fragments/.keep | 0 .../community/azure/meta/action_groups.yml | 27 - .../community/azure/meta/runtime.yml | 596 ------------------ ansible_collections/community/azure/shippable.yml | 37 -- .../community/azure/tests/.gitignore | 1 - .../community/azure/tests/sanity/ignore-2.10.txt | 2 - .../community/azure/tests/sanity/ignore-2.11.txt | 2 - .../community/azure/tests/sanity/ignore-2.12.txt | 2 - .../community/azure/tests/sanity/ignore-2.13.txt | 2 - .../community/azure/tests/sanity/ignore-2.14.txt | 2 - .../community/azure/tests/utils/ado/ado.sh | 124 ---- .../community/azure/tests/utils/shippable/azure.sh | 19 - .../azure/tests/utils/shippable/check_matrix.py | 120 ---- .../community/azure/tests/utils/shippable/cloud.sh | 19 - .../azure/tests/utils/shippable/sanity.sh | 27 - .../azure/tests/utils/shippable/shippable.sh | 203 ------- .../azure/tests/utils/shippable/timing.py | 16 - .../azure/tests/utils/shippable/timing.sh | 5 - 37 files changed, 3057 deletions(-) delete mode 100644 ansible_collections/community/azure/.azure-pipelines/README.md delete mode 100644 ansible_collections/community/azure/.azure-pipelines/azure-pipelines.yml delete mode 100755 ansible_collections/community/azure/.azure-pipelines/scripts/aggregate-coverage.sh delete mode 100755 ansible_collections/community/azure/.azure-pipelines/scripts/combine-coverage.py delete mode 100755 ansible_collections/community/azure/.azure-pipelines/scripts/process-results.sh delete mode 100755 ansible_collections/community/azure/.azure-pipelines/scripts/publish-codecov.sh delete mode 100755 ansible_collections/community/azure/.azure-pipelines/scripts/report-coverage.sh delete mode 100755 ansible_collections/community/azure/.azure-pipelines/scripts/run-tests.sh delete mode 100755 ansible_collections/community/azure/.azure-pipelines/scripts/time-command.py delete mode 100644 ansible_collections/community/azure/.azure-pipelines/templates/coverage.yml delete mode 100644 ansible_collections/community/azure/.azure-pipelines/templates/matrix.yml delete mode 100644 ansible_collections/community/azure/.azure-pipelines/templates/test.yml delete mode 100644 ansible_collections/community/azure/CHANGELOG.rst delete mode 100644 ansible_collections/community/azure/COPYING delete mode 100644 ansible_collections/community/azure/FILES.json delete mode 100644 ansible_collections/community/azure/MANIFEST.json delete mode 100644 ansible_collections/community/azure/README.md delete mode 100644 ansible_collections/community/azure/changelogs/changelog.yaml delete mode 100644 ansible_collections/community/azure/changelogs/config.yaml delete mode 100644 ansible_collections/community/azure/changelogs/fragments/.keep delete mode 100644 ansible_collections/community/azure/meta/action_groups.yml delete mode 100644 ansible_collections/community/azure/meta/runtime.yml delete mode 100644 ansible_collections/community/azure/shippable.yml delete mode 100644 ansible_collections/community/azure/tests/.gitignore delete mode 100644 ansible_collections/community/azure/tests/sanity/ignore-2.10.txt delete mode 100644 ansible_collections/community/azure/tests/sanity/ignore-2.11.txt delete mode 100644 ansible_collections/community/azure/tests/sanity/ignore-2.12.txt delete mode 100644 ansible_collections/community/azure/tests/sanity/ignore-2.13.txt delete mode 100644 ansible_collections/community/azure/tests/sanity/ignore-2.14.txt delete mode 100755 ansible_collections/community/azure/tests/utils/ado/ado.sh delete mode 100755 ansible_collections/community/azure/tests/utils/shippable/azure.sh delete mode 100755 ansible_collections/community/azure/tests/utils/shippable/check_matrix.py delete mode 100755 ansible_collections/community/azure/tests/utils/shippable/cloud.sh delete mode 100755 ansible_collections/community/azure/tests/utils/shippable/sanity.sh delete mode 100755 ansible_collections/community/azure/tests/utils/shippable/shippable.sh delete mode 100755 ansible_collections/community/azure/tests/utils/shippable/timing.py delete mode 100755 ansible_collections/community/azure/tests/utils/shippable/timing.sh (limited to 'ansible_collections/community/azure') diff --git a/ansible_collections/community/azure/.azure-pipelines/README.md b/ansible_collections/community/azure/.azure-pipelines/README.md deleted file mode 100644 index 385e70bac..000000000 --- a/ansible_collections/community/azure/.azure-pipelines/README.md +++ /dev/null @@ -1,3 +0,0 @@ -## Azure Pipelines Configuration - -Please see the [Documentation](https://github.com/ansible/community/wiki/Testing:-Azure-Pipelines) for more information. diff --git a/ansible_collections/community/azure/.azure-pipelines/azure-pipelines.yml b/ansible_collections/community/azure/.azure-pipelines/azure-pipelines.yml deleted file mode 100644 index 48658e394..000000000 --- a/ansible_collections/community/azure/.azure-pipelines/azure-pipelines.yml +++ /dev/null @@ -1,61 +0,0 @@ -trigger: - batch: true - branches: - include: - - main - - master - - stable-* - -pr: - autoCancel: true - branches: - include: - - main - - stable-* - -schedules: - - cron: 0 9 * * * - displayName: Nightly - always: true - branches: - include: - - main - - stable-* - -variables: - - name: checkoutPath - value: ansible_collections/community/azure - - name: coverageBranches - value: main - - name: pipelinesCoverage - value: coverage - - name: entryPoint - value: tests/utils/shippable/shippable.sh - - name: fetchDepth - value: 0 - -resources: - containers: - - container: default - image: quay.io/ansible/azure-pipelines-test-container:3.0.0 - -pool: Standard - -stages: - - stage: Sanity_devel - displayName: Sanity devel - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - nameFormat: Test {0} - testFormat: devel/sanity/{0} - targets: - - test: 1 - - test: extra - - stage: Summary - condition: succeededOrFailed() - dependsOn: - - Sanity_devel - jobs: - - template: templates/coverage.yml diff --git a/ansible_collections/community/azure/.azure-pipelines/scripts/aggregate-coverage.sh b/ansible_collections/community/azure/.azure-pipelines/scripts/aggregate-coverage.sh deleted file mode 100755 index f3113dd0a..000000000 --- a/ansible_collections/community/azure/.azure-pipelines/scripts/aggregate-coverage.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash -# Aggregate code coverage results for later processing. - -set -o pipefail -eu - -agent_temp_directory="$1" - -PATH="${PWD}/bin:${PATH}" - -mkdir "${agent_temp_directory}/coverage/" - -options=(--venv --venv-system-site-packages --color -v) - -ansible-test coverage combine --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/ansible_collections/community/azure/.azure-pipelines/scripts/combine-coverage.py b/ansible_collections/community/azure/.azure-pipelines/scripts/combine-coverage.py deleted file mode 100755 index 506ade646..000000000 --- a/ansible_collections/community/azure/.azure-pipelines/scripts/combine-coverage.py +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env python -""" -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