From cc61e6ac127b3e9f1c62a7e5382b8b67d42e6600 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Mon, 16 Oct 2017 15:52:12 +1100 Subject: [PATCH] Import legacy playbooks Import legacy playbooks for zuulv3 transition Change-Id: I30763af7a4062d3c254a21eda532e3a4e90192da --- .gitignore | 1 + .zuul.d/jobs.yaml | 173 ++++++++++++++++++ .../post.yaml | 15 ++ .../run.yaml | 82 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 85 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 78 ++++++++ .../post.yaml | 15 ++ .../run.yaml | 81 ++++++++ .../post.yaml | 15 ++ .../run.yaml | 82 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 86 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 81 ++++++++ .../post.yaml | 15 ++ .../run.yaml | 82 +++++++++ .../post.yaml | 15 ++ .../dib-dsvm-functests-python3-image/run.yaml | 85 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 81 ++++++++ .../dib-dsvm-functests-python3/post.yaml | 15 ++ .../dib-dsvm-functests-python3/run.yaml | 80 ++++++++ 24 files changed, 1242 insertions(+) create mode 100644 .zuul.d/jobs.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python3/post.yaml create mode 100644 playbooks/legacy/dib-dsvm-functests-python3/run.yaml diff --git a/.gitignore b/.gitignore index b1e8511ef..439a7194e 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ dist *.vmlinuz /*-manifests /*.d +!/.zuul.d build AUTHORS ChangeLog diff --git a/.zuul.d/jobs.yaml b/.zuul.d/jobs.yaml new file mode 100644 index 000000000..7323aed15 --- /dev/null +++ b/.zuul.d/jobs.yaml @@ -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 + diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml new file mode 100644 index 000000000..2b2a3bc84 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml @@ -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 }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml new file mode 100644 index 000000000..f54176cad --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml @@ -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 }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml new file mode 100644 index 000000000..3ea53443c --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml @@ -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 }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml new file mode 100644 index 000000000..ef67e2a95 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml @@ -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 }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml new file mode 100644 index 000000000..da955d04f --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml @@ -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 }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml new file mode 100644 index 000000000..736179ddd --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml @@ -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 }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml new file mode 100644 index 000000000..5ebe0bcd4 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml @@ -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 }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml new file mode 100644 index 000000000..bb5c122f2 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml @@ -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 }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml new file mode 100644 index 000000000..462b856a0 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml @@ -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 }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml new file mode 100644 index 000000000..1d9de73c2 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml @@ -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 }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3/post.yaml @@ -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 diff --git a/playbooks/legacy/dib-dsvm-functests-python3/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3/run.yaml new file mode 100644 index 000000000..dff4d3386 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3/run.yaml @@ -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 }}'