From 3e48576bc010fbd9472cadf1703ddde93ffced60 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 25 Jan 2023 21:16:37 +0100 Subject: [PATCH] ceph-ansible: drop nightly jobs ceph-ansible is receiving less and less engineering efforts so it is now unnecessary to run nightly jobs. Signed-off-by: Guillaume Abrioux --- ceph-ansible-nightly/build/build | 66 ---------- ceph-ansible-nightly/build/teardown | 8 -- ceph-ansible-nightly/config/JENKINS_URL | 1 - .../definitions/ceph-ansible-nightly.yml | 113 ------------------ 4 files changed, 188 deletions(-) delete mode 100644 ceph-ansible-nightly/build/build delete mode 100644 ceph-ansible-nightly/build/teardown delete mode 100644 ceph-ansible-nightly/config/JENKINS_URL delete mode 100644 ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.yml diff --git a/ceph-ansible-nightly/build/build b/ceph-ansible-nightly/build/build deleted file mode 100644 index 918e20d9..00000000 --- a/ceph-ansible-nightly/build/build +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash - -# the following two methods exist in scripts/build_utils.sh -pkgs=( "tox" ) -TEMPVENV=$(create_venv_dir) -VENV=${TEMPVENV}/bin -set_centos_python3_version "python3.9" -install_python_packages $TEMPVENV "pkgs[@]" "pip==22.0.4" - -# XXX this might not be needed -source $VENV/activate - -WORKDIR=$(mktemp -td tox.XXXXXXXXXX) -page_size=100 - -############# -# FUNCTIONS # -############# -function find_latest_tag { - release="$1" - el="7" - if [[ "${release}" =~ octopus|pacific ]]; then - el="8" - fi - page=1 - while response=$(curl -s "https://quay.ceph.io/api/v1/repository/ceph-ci/daemon/tag/?page=${page}&limit=${page_size}"); do - tag=$(echo "${response}" | jq -r ".tags[] | select((.name | contains(\"stable\")) and (.name | contains(\"${release}-centos-${el}-x86_64\"))) | .name") - local code=$? - if [ $code != 0 ]; then - echo "Error listing tags!" >&2 - exit $code - fi - if [ -n "${tag}" ]; then - echo "${tag}" | head -n 1 | cut -d '"' -f 2 - return - fi - if [ $(echo "${response}" | jq -r .has_additional) == "false" ]; then - break - else - let page++ - fi - done -} - -function run_tox { - case "$CEPH_ANSIBLE_BRANCH" in - stable-*) - CEPH_DOCKER_IMAGE_TAG=$(find_latest_tag "$RELEASE") - ;; - main) - CEPH_DOCKER_IMAGE_TAG="latest-main" - ;; - esac - - [ -n "$CEPH_DOCKER_IMAGE_TAG" ] && start_tox $TEMPVENV CEPH_DOCKER_IMAGE_TAG="$CEPH_DOCKER_IMAGE_TAG" -} - -######## -# MAIN # -######## -prune_stale_vagrant_running_vms -delete_libvirt_vms -clear_libvirt_networks -restart_libvirt_services -update_vagrant_boxes -run_tox diff --git a/ceph-ansible-nightly/build/teardown b/ceph-ansible-nightly/build/teardown deleted file mode 100644 index 2090dfc7..00000000 --- a/ceph-ansible-nightly/build/teardown +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -cd $WORKSPACE/tests - -TEMPVENV=$(create_venv_dir) -VENV=${TEMPVENV}/bin -# the method exists in scripts/build_utils.sh -teardown_vagrant_tests $VENV diff --git a/ceph-ansible-nightly/config/JENKINS_URL b/ceph-ansible-nightly/config/JENKINS_URL deleted file mode 100644 index e97cf671..00000000 --- a/ceph-ansible-nightly/config/JENKINS_URL +++ /dev/null @@ -1 +0,0 @@ -2.jenkins.ceph.com diff --git a/ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.yml b/ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.yml deleted file mode 100644 index 657e9236..00000000 --- a/ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.yml +++ /dev/null @@ -1,113 +0,0 @@ -- project: - name: ceph-ansible-nightly-stable6.0 - release: - - pacific - distribution: - - centos - deployment: - - container - - non_container - scenario: - - all_daemons - - collocation - - update - - lvm_osds - - shrink_mon - - shrink_osd_multiple - - shrink_osd_single - - lvm_batch - - rgw_multisite - - purge - - lvm_auto_discovery - - switch_to_containers - - filestore_to_bluestore - ceph_ansible_branch: - - stable-6.0 - jobs: - - 'ceph-ansible-nightly-{release}-{distribution}-{deployment}-{ceph_ansible_branch}-{scenario}' - exclude: - - deployment: container - scenario: switch_to_containers - -- job-template: - name: 'ceph-ansible-nightly-{release}-{distribution}-{deployment}-{ceph_ansible_branch}-{scenario}' - node: vagrant&&libvirt&¢os8 - concurrent: true - defaults: global - display-name: 'ceph-ansible: Nightly [{release}-{distribution}-{deployment}-{ceph_ansible_branch}-{scenario}]' - quiet-period: 5 - block-downstream: false - block-upstream: false - retry-count: 3 - properties: - - github: - url: https://github.com/ceph/ceph-ansible - - build-discarder: - days-to-keep: 90 - num-to-keep: -1 - artifact-days-to-keep: -1 - artifact-num-to-keep: -1 - - parameters: - - string: - name: CEPH_ANSIBLE_BRANCH - description: "The ceph-ansible branch (or tag) to test" - default: "{ceph_ansible_branch}" - - string: - name: CEPH_DOCKER_IMAGE_TAG - description: "The ceph-container image tag to use" - default: "" - - triggers: - - timed: '@daily' - - scm: - - git: - url: https://github.com/ceph/ceph-ansible.git - branches: - - $CEPH_ANSIBLE_BRANCH - browser: auto - timeout: 20 - skip-tag: true - wipe-workspace: true - - builders: - - inject: - properties-content: | - RELEASE={release} - DISTRIBUTION={distribution} - DEPLOYMENT={deployment} - CEPH_ANSIBLE_BRANCH={ceph_ansible_branch} - SCENARIO={scenario} - - shell: - !include-raw-escape: - - ../../../scripts/build_utils.sh - - ../../build/build - - publishers: - - postbuildscript: - builders: - - role: SLAVE - build-on: - - FAILURE - - ABORTED - build-steps: - - shell: - !include-raw-escape: - - ../../../scripts/build_utils.sh - - ../../build/teardown - - - archive: - artifacts: 'logs/**' - allow-empty: true - latest-only: false - - wrappers: - - inject-passwords: - global: true - mask-password-params: true - - credentials-binding: - - username-password-separated: - credential-id: ceph-ansible-upstream-ci - username: DOCKER_HUB_USERNAME - password: DOCKER_HUB_PASSWORD -- 2.39.5