summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-05-15 23:58:04 +0000
committerGerrit Code Review <review@openstack.org>2018-05-15 23:58:05 +0000
commit1bd1278411c4d1b72724736ed0d16df12a4c62b2 (patch)
tree9a298b968e97c9263e1080aef275da7c11842782
parent6b594d86bafa5d49fb7ca1213d136e02fbd46742 (diff)
parent3242a57a15eadac35201d90616b30de52639aa4a (diff)
Merge "python3: Add experimental jobs for functional and fullstack"
-rw-r--r--.zuul.yaml36
-rw-r--r--playbooks/legacy/neutron-fullstack-python35/post.yaml80
-rw-r--r--playbooks/legacy/neutron-fullstack-python35/run.yaml54
-rw-r--r--playbooks/legacy/neutron-functional-python35/post.yaml80
-rw-r--r--playbooks/legacy/neutron-functional-python35/run.yaml54
5 files changed, 304 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index c510920..7b946ad 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -31,6 +31,10 @@
31 - neutron-functional 31 - neutron-functional
32 - neutron-tempest-postgres-full 32 - neutron-tempest-postgres-full
33 - neutron-tempest-with-ryu-master 33 - neutron-tempest-with-ryu-master
34 experimental:
35 jobs:
36 - neutron-functional-python35
37 - neutron-fullstack-python35
34 38
35- job: 39- job:
36 name: neutron-functional 40 name: neutron-functional
@@ -48,6 +52,22 @@
48 - ^releasenotes/.*$ 52 - ^releasenotes/.*$
49 53
50- job: 54- job:
55 name: neutron-functional-python35
56 parent: legacy-dsvm-base
57 run: playbooks/legacy/neutron-functional-python35/run.yaml
58 post-run: playbooks/legacy/neutron-functional-python35/post.yaml
59 timeout: 7800
60 required-projects:
61 - openstack-infra/devstack-gate
62 - openstack/neutron
63 irrelevant-files:
64 - ^.*\.rst$
65 - ^doc/.*$
66 - ^neutron/locale/.*$
67 - ^releasenotes/.*$
68 voting: false
69
70- job:
51 name: neutron-fullstack 71 name: neutron-fullstack
52 parent: legacy-dsvm-base 72 parent: legacy-dsvm-base
53 run: playbooks/legacy/neutron-fullstack/run.yaml 73 run: playbooks/legacy/neutron-fullstack/run.yaml
@@ -63,6 +83,22 @@
63 - ^releasenotes/.*$ 83 - ^releasenotes/.*$
64 84
65- job: 85- job:
86 name: neutron-fullstack-python35
87 parent: legacy-dsvm-base
88 run: playbooks/legacy/neutron-fullstack-python35/run.yaml
89 post-run: playbooks/legacy/neutron-fullstack-python35/post.yaml
90 timeout: 7800
91 required-projects:
92 - openstack-infra/devstack-gate
93 - openstack/neutron
94 irrelevant-files:
95 - ^.*\.rst$
96 - ^doc/.*$
97 - ^neutron/locale/.*$
98 - ^releasenotes/.*$
99 voting: false
100
101- job:
66 name: neutron-rally-neutron 102 name: neutron-rally-neutron
67 parent: legacy-dsvm-base 103 parent: legacy-dsvm-base
68 run: playbooks/legacy/neutron-rally-neutron/run.yaml 104 run: playbooks/legacy/neutron-rally-neutron/run.yaml
diff --git a/playbooks/legacy/neutron-fullstack-python35/post.yaml b/playbooks/legacy/neutron-fullstack-python35/post.yaml
new file mode 100644
index 0000000..dac8753
--- /dev/null
+++ b/playbooks/legacy/neutron-fullstack-python35/post.yaml
@@ -0,0 +1,80 @@
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=**/*nose_results.html
13 - --include=*/
14 - --exclude=*
15 - --prune-empty-dirs
16
17 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
18 synchronize:
19 src: '{{ ansible_user_dir }}/workspace/'
20 dest: '{{ zuul.executor.log_root }}'
21 mode: pull
22 copy_links: true
23 verify_host: true
24 rsync_opts:
25 - --include=**/*testr_results.html.gz
26 - --include=*/
27 - --exclude=*
28 - --prune-empty-dirs
29
30 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
31 synchronize:
32 src: '{{ ansible_user_dir }}/workspace/'
33 dest: '{{ zuul.executor.log_root }}'
34 mode: pull
35 copy_links: true
36 verify_host: true
37 rsync_opts:
38 - --include=/.testrepository/tmp*
39 - --include=*/
40 - --exclude=*
41 - --prune-empty-dirs
42
43 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
44 synchronize:
45 src: '{{ ansible_user_dir }}/workspace/'
46 dest: '{{ zuul.executor.log_root }}'
47 mode: pull
48 copy_links: true
49 verify_host: true
50 rsync_opts:
51 - --include=**/*testrepository.subunit.gz
52 - --include=*/
53 - --exclude=*
54 - --prune-empty-dirs
55
56 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
57 synchronize:
58 src: '{{ ansible_user_dir }}/workspace/'
59 dest: '{{ zuul.executor.log_root }}/tox'
60 mode: pull
61 copy_links: true
62 verify_host: true
63 rsync_opts:
64 - --include=/.tox/*/log/*
65 - --include=*/
66 - --exclude=*
67 - --prune-empty-dirs
68
69 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
70 synchronize:
71 src: '{{ ansible_user_dir }}/workspace/'
72 dest: '{{ zuul.executor.log_root }}'
73 mode: pull
74 copy_links: true
75 verify_host: true
76 rsync_opts:
77 - --include=/logs/**
78 - --include=*/
79 - --exclude=*
80 - --prune-empty-dirs
diff --git a/playbooks/legacy/neutron-fullstack-python35/run.yaml b/playbooks/legacy/neutron-fullstack-python35/run.yaml
new file mode 100644
index 0000000..e944cbd
--- /dev/null
+++ b/playbooks/legacy/neutron-fullstack-python35/run.yaml
@@ -0,0 +1,54 @@
1- hosts: all
2 name: This is a Neutron Fullstack test suite running with Python 3.5
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 export PYTHONUNBUFFERED=true
31 export DEVSTACK_GATE_TEMPEST=0
32 export DEVSTACK_GATE_EXERCISES=0
33 export DEVSTACK_GATE_NEUTRON=1
34 export DEVSTACK_GATE_INSTALL_TESTONLY=1
35 export BRANCH_OVERRIDE=default
36 if [ "$BRANCH_OVERRIDE" != "default" ] ; then
37 export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
38 fi
39
40 function gate_hook {
41 bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-fullstack-python35
42 }
43 export -f gate_hook
44
45 function post_test_hook {
46 bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-fullstack-python35
47 }
48 export -f post_test_hook
49
50 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
51 ./safe-devstack-vm-gate-wrap.sh
52 executable: /bin/bash
53 chdir: '{{ ansible_user_dir }}/workspace'
54 environment: '{{ zuul | zuul_legacy_vars }}'
diff --git a/playbooks/legacy/neutron-functional-python35/post.yaml b/playbooks/legacy/neutron-functional-python35/post.yaml
new file mode 100644
index 0000000..dac8753
--- /dev/null
+++ b/playbooks/legacy/neutron-functional-python35/post.yaml
@@ -0,0 +1,80 @@
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=**/*nose_results.html
13 - --include=*/
14 - --exclude=*
15 - --prune-empty-dirs
16
17 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
18 synchronize:
19 src: '{{ ansible_user_dir }}/workspace/'
20 dest: '{{ zuul.executor.log_root }}'
21 mode: pull
22 copy_links: true
23 verify_host: true
24 rsync_opts:
25 - --include=**/*testr_results.html.gz
26 - --include=*/
27 - --exclude=*
28 - --prune-empty-dirs
29
30 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
31 synchronize:
32 src: '{{ ansible_user_dir }}/workspace/'
33 dest: '{{ zuul.executor.log_root }}'
34 mode: pull
35 copy_links: true
36 verify_host: true
37 rsync_opts:
38 - --include=/.testrepository/tmp*
39 - --include=*/
40 - --exclude=*
41 - --prune-empty-dirs
42
43 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
44 synchronize:
45 src: '{{ ansible_user_dir }}/workspace/'
46 dest: '{{ zuul.executor.log_root }}'
47 mode: pull
48 copy_links: true
49 verify_host: true
50 rsync_opts:
51 - --include=**/*testrepository.subunit.gz
52 - --include=*/
53 - --exclude=*
54 - --prune-empty-dirs
55
56 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
57 synchronize:
58 src: '{{ ansible_user_dir }}/workspace/'
59 dest: '{{ zuul.executor.log_root }}/tox'
60 mode: pull
61 copy_links: true
62 verify_host: true
63 rsync_opts:
64 - --include=/.tox/*/log/*
65 - --include=*/
66 - --exclude=*
67 - --prune-empty-dirs
68
69 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
70 synchronize:
71 src: '{{ ansible_user_dir }}/workspace/'
72 dest: '{{ zuul.executor.log_root }}'
73 mode: pull
74 copy_links: true
75 verify_host: true
76 rsync_opts:
77 - --include=/logs/**
78 - --include=*/
79 - --exclude=*
80 - --prune-empty-dirs
diff --git a/playbooks/legacy/neutron-functional-python35/run.yaml b/playbooks/legacy/neutron-functional-python35/run.yaml
new file mode 100644
index 0000000..062c19c
--- /dev/null
+++ b/playbooks/legacy/neutron-functional-python35/run.yaml
@@ -0,0 +1,54 @@
1- hosts: all
2 name: Neutron functional test suite running with Python 3.5
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 export PYTHONUNBUFFERED=true
31 export DEVSTACK_GATE_TEMPEST=0
32 export DEVSTACK_GATE_EXERCISES=0
33 export DEVSTACK_GATE_NEUTRON=1
34 export DEVSTACK_GATE_INSTALL_TESTONLY=1
35 export BRANCH_OVERRIDE=default
36 if [ "$BRANCH_OVERRIDE" != "default" ] ; then
37 export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
38 fi
39
40 function gate_hook {
41 bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-functional-python35
42 }
43 export -f gate_hook
44
45 function post_test_hook {
46 bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-functional-python35
47 }
48 export -f post_test_hook
49
50 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
51 ./safe-devstack-vm-gate-wrap.sh
52 executable: /bin/bash
53 chdir: '{{ ansible_user_dir }}/workspace'
54 environment: '{{ zuul | zuul_legacy_vars }}'