Add grenade-py3 job
This adds a grenade job which uses python3 on both the old and new side of the upgrade run. This is part of the python3-first community wide goal for the Stein release. The exact version of python3 used depends on the version of the underlying distro used in devstack on both sides of the upgrade run. Change-Id: Icc37e24c5910f189d09bcfed6cfbd348f6c24ab2
This commit is contained in:
13
.zuul.yaml
13
.zuul.yaml
@@ -11,6 +11,17 @@
|
||||
- ^.*\.rst$
|
||||
- ^doc/.*$
|
||||
|
||||
- job:
|
||||
name: grenade-py3
|
||||
parent: legacy-dsvm-base
|
||||
run: playbooks/legacy/grenade-py3/run.yaml
|
||||
post-run: playbooks/legacy/grenade-py3/post.yaml
|
||||
timeout: 10800
|
||||
required-projects:
|
||||
- openstack-dev/grenade
|
||||
- openstack-infra/devstack-gate
|
||||
irrelevant-files: *grenade-irrelevant-files
|
||||
|
||||
- project:
|
||||
check:
|
||||
jobs:
|
||||
@@ -19,6 +30,7 @@
|
||||
- grenade-heat:
|
||||
voting: false
|
||||
irrelevant-files: *grenade-irrelevant-files
|
||||
- grenade-py3
|
||||
- neutron-grenade-multinode:
|
||||
irrelevant-files: *grenade-irrelevant-files
|
||||
- tox-docs
|
||||
@@ -27,6 +39,7 @@
|
||||
irrelevant-files: *grenade-irrelevant-files
|
||||
gate:
|
||||
jobs:
|
||||
- grenade-py3
|
||||
- neutron-grenade:
|
||||
irrelevant-files: *grenade-irrelevant-files
|
||||
- neutron-grenade-multinode:
|
||||
|
||||
15
playbooks/legacy/grenade-py3/post.yaml
Normal file
15
playbooks/legacy/grenade-py3/post.yaml
Normal 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
|
||||
44
playbooks/legacy/grenade-py3/run.yaml
Normal file
44
playbooks/legacy/grenade-py3/run.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
- hosts: all
|
||||
name: Copy of the neutron-grenade job using python3.
|
||||
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
|
||||
export PROJECTS="openstack-dev/grenade $PROJECTS"
|
||||
export PYTHONUNBUFFERED=true
|
||||
export DEVSTACK_GATE_TEMPEST=1
|
||||
export DEVSTACK_GATE_GRENADE=pullup
|
||||
export DEVSTACK_GATE_NEUTRON=1
|
||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||
export BRANCH_OVERRIDE=default
|
||||
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||
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 }}'
|
||||
Reference in New Issue
Block a user