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:
Matt Riedemann
2018-11-13 08:54:06 -05:00
parent 8afd7beb07
commit 7bae489f38
3 changed files with 72 additions and 0 deletions

View File

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

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