summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-08-03 17:42:44 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-08-07 10:25:33 -0400
commit264cee304498b432aef14efed750a3a87878c4ef (patch)
treed092d21152cd831904ec151039ad39832adde804
parent1de701edb6045e788bb4ebb4360a4d3579de58ab (diff)
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
Notes
Notes (review): Code-Review+2: Andy Smith <ansmith@redhat.com> Code-Review+1: Filippo Inzaghi <zhao.daqing@99cloud.net> Code-Review+2: Ken Giusti <kgiusti@gmail.com> Workflow+1: Ken Giusti <kgiusti@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 20 Aug 2018 18:53:30 +0000 Reviewed-on: https://review.openstack.org/588685 Project: openstack/devstack-plugin-kafka Branch: refs/heads/master
-rw-r--r--.zuul.yaml30
-rw-r--r--playbooks/legacy/tempest-dsvm-full-kafka/post.yaml15
-rw-r--r--playbooks/legacy/tempest-dsvm-full-kafka/run.yaml61
3 files changed, 106 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
new file mode 100644
index 0000000..fef6163
--- /dev/null
+++ b/.zuul.yaml
@@ -0,0 +1,30 @@
1- job:
2 name: devstack-plugin-kafka-tempest-full
3 parent: legacy-dsvm-base
4 run: playbooks/legacy/tempest-dsvm-full-kafka/run.yaml
5 post-run: playbooks/legacy/tempest-dsvm-full-kafka/post.yaml
6 timeout: 10800
7 required-projects:
8 - openstack-infra/devstack-gate
9 - openstack/devstack-plugin-kafka
10 - openstack/tempest
11
12- project:
13 check:
14 jobs:
15 - openstack-tox-bashate
16 - devstack-plugin-kafka-tempest-full:
17 irrelevant-files:
18 - ^(test-|)requirements.txt$
19 - ^setup.cfg$
20 - oslo.messaging-src-dsvm-full-kafka-default:
21 voting: false
22 - oslo.messaging-src-dsvm-full-kafka-default-centos-7:
23 voting: false
24 gate:
25 jobs:
26 - openstack-tox-bashate
27 - devstack-plugin-kafka-tempest-full:
28 irrelevant-files:
29 - ^(test-|)requirements.txt$
30 - ^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 @@
1- hosts: primary
2 tasks:
3
4 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5 synchronize:
6 src: '{{ ansible_user_dir }}/workspace/'
7 dest: '{{ zuul.executor.log_root }}'
8 mode: pull
9 copy_links: true
10 verify_host: true
11 rsync_opts:
12 - --include=/logs/**
13 - --include=*/
14 - --exclude=*
15 - --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 @@
1- hosts: all
2 name: Autoconverted job legacy-tempest-dsvm-full-kafka from old job gate-tempest-dsvm-full-kafka-ubuntu-xenial
3 tasks:
4
5 - name: Ensure legacy workspace directory
6 file:
7 path: '{{ ansible_user_dir }}/workspace'
8 state: directory
9
10 - shell:
11 cmd: |
12 set -e
13 set -x
14 cat > clonemap.yaml << EOF
15 clonemap:
16 - name: openstack-infra/devstack-gate
17 dest: devstack-gate
18 EOF
19 /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
20 git://git.openstack.org \
21 openstack-infra/devstack-gate
22 executable: /bin/bash
23 chdir: '{{ ansible_user_dir }}/workspace'
24 environment: '{{ zuul | zuul_legacy_vars }}'
25
26 - shell:
27 cmd: |
28 set -e
29 set -x
30 cat << 'EOF' >>"/tmp/dg-local.conf"
31 [[local|localrc]]
32 enable_plugin devstack-plugin-kafka git://git.openstack.org/openstack/devstack-plugin-kafka
33
34 EOF
35 executable: /bin/bash
36 chdir: '{{ ansible_user_dir }}/workspace'
37 environment: '{{ zuul | zuul_legacy_vars }}'
38
39 - shell:
40 cmd: |
41 set -e
42 set -x
43 export PYTHONUNBUFFERED=true
44 export DEVSTACK_GATE_TEMPEST=1
45 export PROJECTS="openstack/devstack-plugin-kafka $PROJECTS"
46
47 if [[ "kafka" = "sheepdog" ]]; then
48 export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
49 # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need
50 # to add the regex to limit the tests to the same as a tempest
51 # -efull would run.
52 export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))'
53 else
54 export DEVSTACK_GATE_TEMPEST_FULL=1
55 fi
56
57 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
58 ./safe-devstack-vm-gate-wrap.sh
59 executable: /bin/bash
60 chdir: '{{ ansible_user_dir }}/workspace'
61 environment: '{{ zuul | zuul_legacy_vars }}'