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
This commit is contained in:
Doug Hellmann 2018-08-03 17:42:44 -04:00
parent 1de701edb6
commit 264cee3044
3 changed files with 106 additions and 0 deletions

30
.zuul.yaml Normal file
View File

@ -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$

View File

@ -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

View File

@ -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 }}'