From c17e7e87034e5945e8a35843f190b46d8d294260 Mon Sep 17 00:00:00 2001 From: Kenneth Giusti Date: Wed, 1 Nov 2017 15:30:16 -0400 Subject: [PATCH] Move project specific tests in repo Change-Id: I4d08f6e30b542c1943a1c57f058d3695b082a8f0 --- .zuul.yaml | 26 ++++++++++++ .../post.yaml | 15 +++++++ .../run.yaml | 41 +++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 .zuul.yaml create mode 100644 playbooks/devstack-plugin-amqp1-tempest-dsvm-full/post.yaml create mode 100644 playbooks/devstack-plugin-amqp1-tempest-dsvm-full/run.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..dda77b9 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,26 @@ +- job: + # TODO(kgiusti) this old test can be removed once ocata is no + # longer supported At that point we only need the -hybrid and + # -dual test cases + name: devstack-plugin-amqp1-tempest-dsvm-full + parent: legacy-dsvm-base + run: playbooks/devstack-plugin-amqp1-tempest-dsvm-full/run.yaml + post-run: playbooks/devstack-plugin-amqp1-tempest-dsvm-full/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-amqp1 + - openstack/tempest + +- project: + name: openstack/devstack-plugin-amqp1 + check: + jobs: + - devstack-plugin-amqp1-tempest-dsvm-full: + voting: false + - oslo.messaging-src-dsvm-full-amqp1-hybrid: + voting: false + branches: ^(?!stable/ocata).*$ + - oslo.messaging-src-dsvm-full-amqp1-dual-centos-7: + voting: false + branches: ^(?!stable/ocata).*$ diff --git a/playbooks/devstack-plugin-amqp1-tempest-dsvm-full/post.yaml b/playbooks/devstack-plugin-amqp1-tempest-dsvm-full/post.yaml new file mode 100644 index 0000000..e07f551 --- /dev/null +++ b/playbooks/devstack-plugin-amqp1-tempest-dsvm-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/devstack-plugin-amqp1-tempest-dsvm-full/run.yaml b/playbooks/devstack-plugin-amqp1-tempest-dsvm-full/run.yaml new file mode 100644 index 0000000..fd1a1fe --- /dev/null +++ b/playbooks/devstack-plugin-amqp1-tempest-dsvm-full/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-amqp1 from old job gate-tempest-dsvm-full-amqp1-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}'