import zuul job settings from project-config

This is a mostly 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.

The legacy-tempest-dsvm-full-zmq 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-zmq-tempest-full is used to indicate that it is
defined within the repository.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I3d80c8a576fa4cbedffdaaf6cf97a4a61a2dce34
Story: #2003250
This commit is contained in:
Doug Hellmann 2018-08-03 17:43:05 -04:00
parent 4a0498c10b
commit 37b1b5fb92
3 changed files with 99 additions and 0 deletions

23
.zuul.yaml Normal file
View File

@ -0,0 +1,23 @@
- job:
name: devstack-plugin-zmq-tempest-full
parent: legacy-dsvm-base
run: playbooks/legacy/tempest-dsvm-full-zmq/run.yaml
post-run: playbooks/legacy/tempest-dsvm-full-zmq/post.yaml
timeout: 10800
required-projects:
- openstack-infra/devstack-gate
- openstack/devstack-plugin-zmq
- openstack/tempest
- project:
check:
jobs:
- openstack-tox-bashate
- devstack-plugin-zmq-tempest-full:
voting: false
irrelevant-files:
- ^(test-|)requirements.txt$
- ^setup.cfg$
gate:
jobs:
- openstack-tox-bashate

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-zmq from old job gate-tempest-dsvm-full-zmq-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
cat << 'EOF' >>"/tmp/dg-local.conf"
[[local|localrc]]
enable_plugin devstack-plugin-zmq git://git.openstack.org/openstack/devstack-plugin-zmq
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-zmq $PROJECTS"
if [[ "zmq" = "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 }}'