From: David Galloway Date: Wed, 30 Aug 2017 22:42:07 +0000 (-0400) Subject: Deprecate ceph-installer tests X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F853%2Fhead;p=ceph-build.git Deprecate ceph-installer tests Signed-off-by: David Galloway --- diff --git a/ceph-installer-coverage/build/build b/ceph-installer-coverage/build/build deleted file mode 100644 index b867731a..00000000 --- a/ceph-installer-coverage/build/build +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -# the following two methods exist in scripts/build_utils.sh -pkgs=( "pytest" "pytest-coverage" ) -install_python_packages "pkgs[@]" - - -# run py.test, output both junit from unit tests and coverage report (should -# spit out a coverage.xml file) -cd $WORKSPACE -$VENV/python setup.py develop -$VENV/py.test -v --junitxml junit.xml --cov-report xml --cov ceph_installer ceph_installer/tests diff --git a/ceph-installer-coverage/config/definitions/ceph-installer-coverage.yml b/ceph-installer-coverage/config/definitions/ceph-installer-coverage.yml deleted file mode 100644 index dda83e4f..00000000 --- a/ceph-installer-coverage/config/definitions/ceph-installer-coverage.yml +++ /dev/null @@ -1,47 +0,0 @@ -- job: - name: ceph-installer-coverage - node: small && (trusty || centos) - project-type: freestyle - defaults: global - display-name: 'ceph-installer: coverage' - quiet-period: 5 - block-downstream: false - block-upstream: false - retry-count: 3 - properties: - - github: - url: https://github.com/ceph/ceph-installer - logrotate: - daysToKeep: -1 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - - triggers: - - github - - scm: - - git: - url: https://github.com/ceph/ceph-installer - branches: - - master - browser: auto - skip-tag: true - timeout: 20 - - builders: - - shell: - !include-raw: - - ../../../scripts/build_utils.sh - - ../../build/build - - publishers: - - cobertura: - results: coverage.xml - only-stable: "true" - fail-no-reports: "true" - targets: - - method: - healthy: 50 - - junit: - results: junit.xml diff --git a/ceph-installer-docs-pull-requests/build/build b/ceph-installer-docs-pull-requests/build/build deleted file mode 100644 index 818e14a9..00000000 --- a/ceph-installer-docs-pull-requests/build/build +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# the following two methods exist in scripts/build_utils.sh -pkgs=( "tox" ) -install_python_packages "pkgs[@]" - -# create the docs build with tox -$VENV/tox -rv -e docs diff --git a/ceph-installer-docs-pull-requests/config/definitions/ceph-installer-docs-pull-requests.yml b/ceph-installer-docs-pull-requests/config/definitions/ceph-installer-docs-pull-requests.yml deleted file mode 100644 index a0bbc4f4..00000000 --- a/ceph-installer-docs-pull-requests/config/definitions/ceph-installer-docs-pull-requests.yml +++ /dev/null @@ -1,53 +0,0 @@ -- job: - name: ceph-installer-docs-pull-requests - node: small && (centos7 || trusty) - project-type: freestyle - defaults: global - display-name: 'ceph-installer: docs pull requests' - quiet-period: 5 - block-downstream: false - block-upstream: false - retry-count: 3 - properties: - - github: - url: https://github.com/ceph/ceph-installer - logrotate: - daysToKeep: -1 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - - parameters: - - string: - name: sha1 - description: "A pull request ID, like 'origin/pr/72/head'" - - triggers: - - github-pull-request: - allow-whitelist-orgs-as-admins: true - org-list: - - ceph - trigger-phrase: '' - only-trigger-phrase: false - github-hooks: true - permit-all: true - auto-close-on-fail: false - status-context: "Docs" - started-status: "checking if docs build" - success-status: "docs built successfully " - failure-status: "docs could not build correctly" - - scm: - - git: - url: https://github.com/ceph/ceph-installer - branches: - - master - browser: auto - skip-tag: true - timeout: 20 - - builders: - - shell: - !include-raw: - - ../../../scripts/build_utils.sh - - ../../build/build diff --git a/ceph-installer-docs/build/build b/ceph-installer-docs/build/build deleted file mode 100644 index 7d60b07c..00000000 --- a/ceph-installer-docs/build/build +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -# the following two methods exist in scripts/build_utils.sh -pkgs=( "tox" ) -install_python_packages "pkgs[@]" - - -# create the docs build with tox -$VENV/tox -rv -e docs - -# publish docs to http://docs.ceph.com/docs/ceph-installer -rsync -auv --delete .tox/docs/tmp/html/* /var/ceph-installer/docs/ diff --git a/ceph-installer-docs/config/definitions/ceph-installer-docs.yml b/ceph-installer-docs/config/definitions/ceph-installer-docs.yml deleted file mode 100644 index fc7bdb56..00000000 --- a/ceph-installer-docs/config/definitions/ceph-installer-docs.yml +++ /dev/null @@ -1,36 +0,0 @@ -- job: - name: ceph-installer-docs - node: docs - project-type: freestyle - defaults: global - display-name: 'ceph-installer: docs build' - quiet-period: 5 - block-downstream: false - block-upstream: false - retry-count: 3 - properties: - - github: - url: https://github.com/ceph/ceph-installer - logrotate: - daysToKeep: -1 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - - triggers: - - github - - scm: - - git: - url: https://github.com/ceph/ceph-installer - branches: - - master - browser: auto - skip-tag: true - timeout: 20 - - builders: - - shell: - !include-raw: - - ../../../scripts/build_utils.sh - - ../../build/build diff --git a/ceph-installer-pull-requests/build/build b/ceph-installer-pull-requests/build/build deleted file mode 100644 index fda0cd99..00000000 --- a/ceph-installer-pull-requests/build/build +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -# the following two methods exist in scripts/build_utils.sh -pkgs=( "tox" ) -install_python_packages "pkgs[@]" - -$VENV/tox -rv diff --git a/ceph-installer-pull-requests/config/definitions/ceph-installer-pull-requests.yml b/ceph-installer-pull-requests/config/definitions/ceph-installer-pull-requests.yml deleted file mode 100644 index f4363c12..00000000 --- a/ceph-installer-pull-requests/config/definitions/ceph-installer-pull-requests.yml +++ /dev/null @@ -1,57 +0,0 @@ -- job: - name: ceph-installer-pull-requests - description: Unit-test the ceph-installer for each GitHub PR - project-type: freestyle - node: trusty && small - block-downstream: false - block-upstream: false - defaults: global - display-name: 'ceph-installer: Pull Requests' - quiet-period: 5 - retry-count: 3 - - logrotate: - daysToKeep: 15 - numToKeep: 30 - artifactDaysToKeep: 15 - artifactNumToKeep: 15 - - properties: - - github: - url: https://github.com/ceph/ceph-installer/ - - parameters: - - string: - name: sha1 - description: "A pull request ID, like 'origin/pr/72/head'" - - triggers: - - github-pull-request: - admin-list: - - alfredodeza - - dmick - - ktdreyer - - andrewschoen - org-list: - - ceph - only-trigger-phrase: false - github-hooks: true - permit-all: false - auto-close-on-fail: false - - scm: - - git: - url: https://github.com/ceph/ceph-installer - branches: - - ${sha1} - refspec: +refs/pull/*:refs/remotes/origin/pr/* - browser: auto - timeout: 20 - skip-tag: true - wipe-workspace: true - - builders: - - shell: - !include-raw: - - ../../../scripts/build_utils.sh - - ../../build/build diff --git a/ceph-installer-rpm/build/build b/ceph-installer-rpm/build/build deleted file mode 100644 index 1f642545..00000000 --- a/ceph-installer-rpm/build/build +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -set -ex - -# Sanity-check: -[ -z "$GIT_BRANCH" ] && echo Missing GIT_BRANCH variable && exit 1 -[ -z "$JOB_NAME" ] && echo Missing JOB_NAME variable && exit 1 - -# Strip "-rpm" off the job name to get our package's name -PACKAGE=${JOB_NAME%-rpm} - -sudo yum -y install epel-release -sudo yum -y install fedpkg mock - -# Add the Jenkins slave UID to the mock group. -sudo usermod -a -G mock $(whoami) -newgrp mock - -# Attempt the build. If it fails, print the mock logs to STDOUT. -make rpm || ( tail -n +1 {root,build}.log && exit 1 ) - -# Chacra time - -pkgs=( "chacractl>=0.0.4" ) -install_python_packages "pkgs[@]" - -# ask shaman which chacra instance to use -chacra_url=`curl -u $SHAMAN_API_USER:$SHAMAN_API_KEY https://shaman.ceph.com/api/nodes/next/` -# create the .chacractl config file using global variables -make_chacractl_config $chacra_url - -BRANCH=`branch_slash_filter $GIT_BRANCH` - -## Upload the created RPMs to chacra -chacra_endpoint="${PACKAGE}/${BRANCH}/${GIT_COMMIT}/centos/7" - -[ "$FORCE" = true ] && chacra_flags="--force" || chacra_flags="" - -# push binaries to chacra -ls *.rpm | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/noarch/ - -# start repo creation -$VENV/chacractl repo update ${chacra_endpoint} - -echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint} diff --git a/ceph-installer-rpm/config/definitions/ceph-installer-rpm.yml b/ceph-installer-rpm/config/definitions/ceph-installer-rpm.yml deleted file mode 100644 index 601f423d..00000000 --- a/ceph-installer-rpm/config/definitions/ceph-installer-rpm.yml +++ /dev/null @@ -1,44 +0,0 @@ -- job: - name: ceph-installer-rpm - node: 'centos7 && x86_64 && small && !sepia' - project-type: freestyle - defaults: global - disabled: false - display-name: 'ceph-installer: RPMs' - description: 'Build RPMs for every ceph-installer Git branch' - concurrent: true - quiet-period: 5 - block-downstream: false - block-upstream: false - retry-count: 3 - properties: - - github: - url: https://github.com/ceph/ceph-installer - discard-old-builds: true - logrotate: - daysToKeep: 1 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - - triggers: - - github - - scm: - - git: - url: https://github.com/ceph/ceph-installer - browser: auto - skip-tag: true - timeout: 20 - wipe-workspace: true - - builders: - - shell: - !include-raw: - - ../../../scripts/build_utils.sh - - ../../build/build - - wrappers: - - inject-passwords: - global: true - mask-password-params: true diff --git a/ceph-installer-tests/build/build b/ceph-installer-tests/build/build deleted file mode 100644 index 353c7efd..00000000 --- a/ceph-installer-tests/build/build +++ /dev/null @@ -1,13 +0,0 @@ -# the following two methods exist in scripts/build_utils.sh -pkgs=( "tox" ) -install_python_packages "pkgs[@]" - -WORKDIR=$(mktemp -td tox.XXXXXXXXXX) - -cd $WORKSPACE/tests/functional - -delete_libvirt_vms -clear_libvirt_networks -restart_libvirt_services - -INSTALLER_DEV_BRANCH=$INSTALLER_BRANCH CEPH_ANSIBLE_DEV_BRANCH=$CEPH_ANSIBLE_BRANCH $VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR -- --provider=libvirt diff --git a/ceph-installer-tests/config/definitions/ceph-installer-tests.yml b/ceph-installer-tests/config/definitions/ceph-installer-tests.yml deleted file mode 100644 index ddf2fc46..00000000 --- a/ceph-installer-tests/config/definitions/ceph-installer-tests.yml +++ /dev/null @@ -1,61 +0,0 @@ -- project: - name: ceph-installer-tests - scenario: - - ansible2.2-nightly_centos7 - - ansible2.2-nightly_xenial - jobs: - - 'ceph-installer-tests-{scenario}' - -- job-template: - name: 'ceph-installer-tests-{scenario}' - node: vagrant && libvirt - project-type: freestyle - defaults: global - display-name: 'ceph-installer: Tests [{scenario}]' - quiet-period: 5 - block-downstream: false - block-upstream: false - retry-count: 3 - properties: - - github: - url: https://github.com/ceph/ceph-installer - logrotate: - daysToKeep: -1 - numToKeep: -1 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - - parameters: - - string: - name: INSTALLER_BRANCH - description: "The ceph-installer branch (or tag) to test" - default: master - - - string: - name: CEPH_ANSIBLE_BRANCH - description: "The ceph-ansible branch (or tag) to test" - default: master - - triggers: - - timed: '@daily' - - scm: - - git: - url: https://github.com/ceph/ceph-installer.git - branches: - - $INSTALLER_BRANCH - browser: auto - timeout: 20 - - builders: - - inject: - properties-content: | - SCENARIO={scenario} - - shell: - !include-raw-escape: - - ../../../scripts/build_utils.sh - - ../../build/build - - publishers: - - email: - recipients: aschoen@redhat.com adeza@redhat.com