From 264cee304498b432aef14efed750a3a87878c4ef Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 3 Aug 2018 17:42:44 -0400 Subject: [PATCH] import zuul job settings from project-config This is a mechanically generated patch to complete step 1 of moving the zuul job settings out of project-config and into each project repository. Because there will be a separate patch on each branch, the branch specifiers for branch-specific jobs have been removed. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html The legacy-tempest-dsvm-full-kafka job is only used by this plugin, so we move the playbook and job definition here as well. It needs to be renamed in order to be moved and applied to the repository, so the new name devstack-plugin-kafka-tempest-full is used to indicate that it is defined within the repository. Change-Id: Ib043b0789b9f8e87e55799ced0d83b3391d98b72 Story: #2003250 --- .zuul.yaml | 30 +++++++++ .../legacy/tempest-dsvm-full-kafka/post.yaml | 15 +++++ .../legacy/tempest-dsvm-full-kafka/run.yaml | 61 +++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 .zuul.yaml create mode 100644 playbooks/legacy/tempest-dsvm-full-kafka/post.yaml create mode 100644 playbooks/legacy/tempest-dsvm-full-kafka/run.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..fef6163 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,30 @@ +- job: + name: devstack-plugin-kafka-tempest-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-kafka/run.yaml + post-run: playbooks/legacy/tempest-dsvm-full-kafka/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-kafka + - openstack/tempest + +- project: + check: + jobs: + - openstack-tox-bashate + - devstack-plugin-kafka-tempest-full: + irrelevant-files: + - ^(test-|)requirements.txt$ + - ^setup.cfg$ + - oslo.messaging-src-dsvm-full-kafka-default: + voting: false + - oslo.messaging-src-dsvm-full-kafka-default-centos-7: + voting: false + gate: + jobs: + - openstack-tox-bashate + - devstack-plugin-kafka-tempest-full: + irrelevant-files: + - ^(test-|)requirements.txt$ + - ^setup.cfg$ diff --git a/playbooks/legacy/tempest-dsvm-full-kafka/post.yaml b/playbooks/legacy/tempest-dsvm-full-kafka/post.yaml new file mode 100644 index 0000000..e07f551 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-kafka/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/tempest-dsvm-full-kafka/run.yaml b/playbooks/legacy/tempest-dsvm-full-kafka/run.yaml new file mode 100644 index 0000000..5edfaf2 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-kafka/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-kafka from old job gate-tempest-dsvm-full-kafka-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 + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-kafka git://git.openstack.org/openstack/devstack-plugin-kafka + + EOF + 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 PROJECTS="openstack/devstack-plugin-kafka $PROJECTS" + + if [[ "kafka" = "sheepdog" ]]; then + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need + # to add the regex to limit the tests to the same as a tempest + # -efull would run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + else + export DEVSTACK_GATE_TEMPEST_FULL=1 + fi + + 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 }}'