Import legacy playbooks

Import legacy playbooks for zuulv3 transition

Change-Id: I30763af7a4062d3c254a21eda532e3a4e90192da
This commit is contained in:
Ian Wienand 2017-10-16 15:52:12 +11:00
parent 7a76270227
commit cc61e6ac12
24 changed files with 1242 additions and 0 deletions

1
.gitignore vendored
View File

@ -16,6 +16,7 @@ dist
*.vmlinuz
/*-manifests
/*.d
!/.zuul.d
build
AUTHORS
ChangeLog

173
.zuul.d/jobs.yaml Normal file
View File

@ -0,0 +1,173 @@
- project:
name: openstack/diskimage-builder
check:
jobs:
- dib-dsvm-functests-python2-ubuntu-trusty:
branches: (master|feature/v2)
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- dib-dsvm-functests-python2-ubuntu-trusty-extras:
voting: false
branches: (master|feature/v2)
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- dib-dsvm-functests-python2-ubuntu-trusty-image:
voting: false
branches: (master|feature/v2)
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- dib-dsvm-functests-python3:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- dib-dsvm-functests-python3-extras:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- dib-dsvm-functests-python3-image:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- dib-dsvm-functests-python2-centos-7:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- dib-dsvm-functests-python2-centos-7-extras:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- dib-dsvm-functests-python2-centos-7-image:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
gate:
jobs:
- dib-dsvm-functests-python2-ubuntu-trusty:
branches: (master|feature/v2)
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- dib-dsvm-functests-python3:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- dib-dsvm-functests-python2-centos-7:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- job:
name: dib-dsvm-functests-python2-centos-7
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python2-centos-7/run
post-run: playbooks/legacy/dib-dsvm-functests-python2-centos-7/post
timeout: 3600
nodeset: legacy-centos-7
required-projects:
- openstack/diskimage-builder
- job:
name: dib-dsvm-functests-python2-centos-7-extras
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run
post-run: playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post
timeout: 3600
nodeset: legacy-centos-7
required-projects:
- openstack/diskimage-builder
- job:
name: dib-dsvm-functests-python2-centos-7-image
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run
post-run: playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post
timeout: 3600
nodeset: legacy-centos-7
required-projects:
- openstack/diskimage-builder
- job:
name: dib-dsvm-functests-python2-opensuse-423
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run
post-run: playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post
timeout: 3600
nodeset: legacy-opensuse-423
required-projects:
- openstack/diskimage-builder
- job:
name: dib-dsvm-functests-python2-ubuntu-trusty
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run
post-run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post
timeout: 3600
nodeset: legacy-ubuntu-trusty
required-projects:
- openstack/diskimage-builder
- job:
name: dib-dsvm-functests-python2-ubuntu-trusty-extras
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run
post-run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post
timeout: 3600
nodeset: legacy-ubuntu-trusty
required-projects:
- openstack/diskimage-builder
- job:
name: dib-dsvm-functests-python2-ubuntu-trusty-image
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run
post-run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post
timeout: 3600
nodeset: legacy-ubuntu-trusty
required-projects:
- openstack/diskimage-builder
- job:
name: dib-dsvm-functests-python3
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python3/run
post-run: playbooks/legacy/dib-dsvm-functests-python3/post
timeout: 3600
required-projects:
- openstack/diskimage-builder
- job:
name: dib-dsvm-functests-python3-extras
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python3-extras/run
post-run: playbooks/legacy/dib-dsvm-functests-python3-extras/post
timeout: 3600
required-projects:
- openstack/diskimage-builder
- job:
name: dib-dsvm-functests-python3-image
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python3-image/run
post-run: playbooks/legacy/dib-dsvm-functests-python3-image/post
timeout: 3600
required-projects:
- openstack/diskimage-builder
- job:
name: dib-dsvm-functests-python3-opensuse-423
parent: legacy-dsvm-base
run: playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run
post-run: playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post
timeout: 3600
nodeset: legacy-opensuse-423
required-projects:
- openstack/diskimage-builder

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,82 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python2-centos-7-extras from old
job gate-dib-dsvm-functests-python2-centos-7-extras-nv
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python2 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh \
gentoo/build-succeeds \
debian-minimal/stable-vm
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

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,85 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python2-centos-7-image from old
job gate-dib-dsvm-functests-python2-centos-7-image-nv
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python2 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh \
centos7/build-succeeds \
opensuse/build-succeeds \
opensuse/opensuse423-build-succeeds \
fedora/build-succeeds \
ubuntu/trusty-build-succeeds \
ubuntu/xenial-build-succeeds
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

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,78 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python2-centos-7 from old job
gate-dib-dsvm-functests-python2-centos-7
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python2 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

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,81 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python2-opensuse-423 from old
job gate-dib-dsvm-functests-python2-opensuse-423-nv
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python2 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

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,82 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python2-ubuntu-trusty-extras from
old job gate-dib-dsvm-functests-python2-ubuntu-trusty-extras-nv
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python2 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh \
gentoo/build-succeeds \
debian-minimal/stable-vm
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

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,86 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python2-ubuntu-trusty-image from
old job gate-dib-dsvm-functests-python2-ubuntu-trusty-image-nv
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python2 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh \
centos7/build-succeeds \
opensuse/build-succeeds \
opensuse/opensuse423-build-succeeds \
fedora/build-succeeds \
ubuntu/trusty-build-succeeds \
ubuntu/xenial-build-succeeds
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

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,81 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python2-ubuntu-trusty from old
job gate-dib-dsvm-functests-python2-ubuntu-trusty
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python2 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

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,82 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python3-extras from old job gate-dib-dsvm-functests-python3-ubuntu-xenial-extras-nv
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python3 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh \
gentoo/build-succeeds \
debian-minimal/stable-vm \
opensuse-minimal/opensuse423-build-succeeds
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

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,85 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python3-image from old job gate-dib-dsvm-functests-python3-ubuntu-xenial-image-nv
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python3 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh \
centos7/build-succeeds \
opensuse/build-succeeds \
opensuse/opensuse423-build-succeeds \
fedora/build-succeeds \
ubuntu/trusty-build-succeeds \
ubuntu/xenial-build-succeeds
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

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,81 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python3-opensuse-423 from old
job gate-dib-dsvm-functests-python3-opensuse-423-nv
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python2 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

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,80 @@
- hosts: all
name: Autoconverted job legacy-dib-dsvm-functests-python3 from old job gate-dib-dsvm-functests-python3-ubuntu-xenial
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -u
set -e
set -x
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/requirements
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -u
set -e
set -x
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown zuul:zuul /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv -p python2 env
export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt
sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE
./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# This sets up some repo files pointing to the infra mirrors
# which are used during test runs
./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh
# UPPER_CONSTRAINTS_FILE is causing side effects when doing image
# build, unset it
unset UPPER_CONSTRAINTS_FILE
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh
set +u
deactivate
set -u
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'