Browse Source

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
Doug Hellmann 8 months ago
parent
commit
264cee3044

+ 30
- 0
.zuul.yaml View File

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

+ 15
- 0
playbooks/legacy/tempest-dsvm-full-kafka/post.yaml View File

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

+ 61
- 0
playbooks/legacy/tempest-dsvm-full-kafka/run.yaml View File

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

Loading…
Cancel
Save