Start installing DIB from Zuul-cloned sources in the CI

We need to be able to pick up fixes quicker than now and to use
depends-on with DIB changes. This change achieves it.

Change-Id: Ic6ab011370b08d06a5c914736949ead2cb498e56
This commit is contained in:
Dmitry Tantsur 2020-01-20 15:19:32 +01:00
parent d0b88f186e
commit 79f597e183
3 changed files with 17 additions and 7 deletions

View File

@ -23,7 +23,6 @@
name: ironic-python-agent-build-image-dib-centos7
parent: ironic-python-agent-build-image-base
required-projects:
# NOTE(dtantsur): used for bindep only
- openstack/diskimage-builder
vars:
image_type: 'dib'
@ -33,7 +32,6 @@
name: ironic-python-agent-build-image-dib-centos8
parent: ironic-python-agent-build-image-base
required-projects:
# NOTE(dtantsur): used for bindep only
- openstack/diskimage-builder
vars:
image_type: 'dib'
@ -72,7 +70,6 @@
name: ironic-python-agent-check-image-dib-centos7
parent: ironic-python-agent-check-image-base
required-projects:
# NOTE(dtantsur): used for bindep only
- openstack/diskimage-builder
vars:
image_type: 'dib'
@ -82,7 +79,6 @@
name: ironic-python-agent-check-image-dib-centos8
parent: ironic-python-agent-check-image-base
required-projects:
# NOTE(dtantsur): used for bindep only
- openstack/diskimage-builder
vars:
image_type: 'dib'
@ -93,7 +89,6 @@
name: ironic-python-agent-check-image-dib-fedora
parent: ironic-python-agent-check-image-base
required-projects:
# NOTE(dtantsur): used for bindep only
- openstack/diskimage-builder
vars:
image_type: 'dib'
@ -103,7 +98,6 @@
name: ironic-python-agent-check-image-dib-debian
parent: ironic-python-agent-check-image-base
required-projects:
# NOTE(dtantsur): used for bindep only
- openstack/diskimage-builder
vars:
image_type: 'dib'
@ -113,7 +107,6 @@
name: ironic-python-agent-check-image-dib-ubuntu
parent: ironic-python-agent-check-image-base
required-projects:
# NOTE(dtantsur): used for bindep only
- openstack/diskimage-builder
vars:
image_type: 'dib'

View File

@ -7,3 +7,4 @@ requirements_path: '{{ ansible_user_dir }}/src/opendev.org/openstack/requirement
ipa_raw_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_RAW'
ipa_tar_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_TAR'
dib_extra_args:
dib_from_source: true

View File

@ -9,3 +9,19 @@
name: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/ironic-python-agent-builder'].src_dir }}"
extra_args: -c "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
become: true
# NOTE(dtantsur): installing requirements separately since DIB itself is in
# upper-constraints and source installations cannot be constrained.
- name: Install requirements for DIB (if installing from source)
pip:
requirements: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/diskimage-builder'].src_dir }}/requirements.txt"
extra_args: -c "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
become: true
when: dib_from_source
- name: Install DIB (if installing from source)
pip:
name: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/diskimage-builder'].src_dir }}"
become: true
when: dib_from_source