From 054467e87e56b388d611a8deacdc5c0092d04690 Mon Sep 17 00:00:00 2001 From: "Brad P. Crochet" Date: Thu, 25 Jan 2018 15:51:07 -0500 Subject: [PATCH] Restore devstack job for python-mistralclient This is the legacy job. Will rebase zuulv3 job on top of this. This should also be backported. Change-Id: Ie0dcc20386ee03febfaf4bfad5de7e67225a54d4 --- .zuul.yaml | 24 +++++++ .../post.yaml | 15 +++++ .../run.yaml | 65 +++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 .zuul.yaml create mode 100644 playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml create mode 100644 playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 00000000..94b2f960 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,24 @@ +- job: + name: python-mistralclient-devstack-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml + post-run: playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml + timeout: 4200 + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/heat + - openstack/mistral + - openstack/mistral-dashboard + - openstack/python-mistralclient + +- project: + check: + jobs: + - python-mistralclient-devstack-dsvm + - openstack-tox-cover: + voting: false + gate: + jobs: + - python-mistralclient-devstack-dsvm + diff --git a/playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml b/playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml new file mode 100644 index 00000000..e07f5510 --- /dev/null +++ b/playbooks/legacy/python-mistralclient-devstack-dsvm/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/legacy/python-mistralclient-devstack-dsvm/run.yaml b/playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml new file mode 100644 index 00000000..08ab8dfc --- /dev/null +++ b/playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-python-mistralclient-devstack-dsvm from old job gate-python-mistralclient-devstack-dsvm-ubuntu-xenial + 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_NEUTRON=1 + + if [ "python-mistralclient" = "python-mistralclient" ] ; then + # This puts the repo in PROJECTS + export DEVSTACK_PROJECT_FROM_GIT="python-mistralclient" + else + export PROJECTS="openstack/python-mistralclient $PROJECTS" + fi + + export ENABLED_SERVICES=heat,h-api,h-api-cfn,h-api-cw,h-eng,tempest + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/mistral-dashboard $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin mistral https://git.openstack.org/openstack/mistral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "" == "-non-apache" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_USE_MOD_WSGI=False" + fi + + if [ "" == "-kombu" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_RPC_IMPLEMENTATION=kombu" + fi + + function post_test_hook { + cd /opt/stack/new/python-mistralclient/functionaltests + ./post_test_hook.sh + } + export -f post_test_hook + + 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 }}'