Merge "Add gate job for stable/stein"
This commit is contained in:
commit
92ce339cea
28
.zuul.yaml
28
.zuul.yaml
|
@ -11,6 +11,16 @@
|
|||
post-run: playbooks/devstack-gate-hooks/post.yaml
|
||||
timeout: 3900
|
||||
|
||||
- job:
|
||||
name: legacy-tempest-neutron-full-stable
|
||||
parent: legacy-dsvm-base
|
||||
run: playbooks/legacy/tempest-neutron-full/run.yaml
|
||||
post-run: playbooks/legacy/tempest-neutron-full/post.yaml
|
||||
timeout: 10800
|
||||
required-projects:
|
||||
- openstack/devstack-gate
|
||||
- openstack/neutron
|
||||
- openstack/tempest
|
||||
|
||||
- project:
|
||||
check:
|
||||
|
@ -18,21 +28,9 @@
|
|||
- devstack:
|
||||
files:
|
||||
- ^roles/
|
||||
- tempest-full-pike:
|
||||
branches: ^(?!driverfixes/).*$
|
||||
voting: false
|
||||
- tempest-full-queens:
|
||||
branches: ^(?!driverfixes/).*$
|
||||
voting: false
|
||||
- tempest-full-queens-py3:
|
||||
branches: ^(?!driverfixes/).*$
|
||||
voting: false
|
||||
- tempest-full-rocky:
|
||||
branches: ^(?!driverfixes/).*$
|
||||
voting: false
|
||||
- tempest-full-rocky-py3:
|
||||
branches: ^(?!driverfixes/).*$
|
||||
voting: false
|
||||
- neutron-tempest-plugin-api:
|
||||
voting: false
|
||||
- legacy-tempest-neutron-full-stable:
|
||||
branches: ^(?!driverfixes/).*$
|
||||
voting: false
|
||||
- devstack-gate-hooks
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1,63 @@
|
|||
- hosts: all
|
||||
name: legacy-tempest-neutron-full-stable
|
||||
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/devstack-gate
|
||||
dest: devstack-gate
|
||||
EOF
|
||||
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||
https://opendev.org \
|
||||
openstack/devstack-gate
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
set -e
|
||||
set -x
|
||||
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||
[[local|localrc]]
|
||||
ENABLE_FILE_INJECTION=True
|
||||
|
||||
EOF
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
set -e
|
||||
set -x
|
||||
export PYTHONUNBUFFERED=true
|
||||
export DEVSTACK_GATE_TEMPEST=1
|
||||
export DEVSTACK_GATE_TEMPEST_FULL=1
|
||||
export DEVSTACK_GATE_NEUTRON=1
|
||||
export DEVSTACK_GATE_TLSPROXY=1
|
||||
# NOTE(gmann): Overriding the branch to most recent
|
||||
# stable branch. Idea here is to make sure devstack-gate
|
||||
# which is used in legacy jobs for stable branches work
|
||||
# fine. Testing it on most recent stable branch should
|
||||
# be enough to make sure devstack-gate keep working for
|
||||
# stable branch legacy jobs which are not yet migrated
|
||||
# to Zuul v3 native jobs.
|
||||
export BRANCH_OVERRIDE=stable/stein
|
||||
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 }}'
|
Loading…
Reference in New Issue