Update openstackclient-check-plugins to honor constraints

Congratulations! You're the first customer of our fine new command pbrx
install-siblings!!!

Srrsly though - the job doesn't currently honor upper-constraints, but
doing that is, it turns out, hard when you're also trying to honor
required-projects. The logic that handles doing that for tox jobs got
extracted into a tool. Use that tool here to install the code from the
required-projects repos - and pass in the constraints file so that
constraints are applied appropriately.

Depends-On: https://review.openstack.org/589476
Change-Id: Ic29d2c1bb15479bd0852b74b5d08aac7ef90048e
This commit is contained in:
Monty Taylor 2018-08-07 08:21:16 -05:00
parent aebbade4fd
commit 530e586626
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 9 additions and 11 deletions

View File

@ -6,6 +6,7 @@
timeout: 1800 timeout: 1800
required-projects: required-projects:
- openstack/openstackclient - openstack/openstackclient
- openstack/pbrx
- openstack/python-openstackclient - openstack/python-openstackclient
- openstack/python-barbicanclient - openstack/python-barbicanclient
- openstack/python-cloudkittyclient - openstack/python-cloudkittyclient
@ -29,6 +30,7 @@
- openstack/python-vitrageclient - openstack/python-vitrageclient
- openstack/python-watcherclient - openstack/python-watcherclient
- openstack/python-zaqarclient - openstack/python-zaqarclient
- openstack/requirements
- project-template: - project-template:
name: openstackclient-plugin-jobs name: openstackclient-plugin-jobs

View File

@ -6,18 +6,14 @@
cmd: | cmd: |
echo "------------------------------------------------------------" echo "------------------------------------------------------------"
virtualenv osc_plugins virtualenv osc_plugins
osc_plugins/bin/pip install -e ../pbrx
- shell:
cmd: |
echo "------------------------------------------------------------" echo "------------------------------------------------------------"
osc_plugins/bin/pip install -e src/{{ item.key }} osc_plugins/bin/pip install -c ../requirements/upper-constraints.txt -r requirements.txt
when: item.value.required
with_dict: "{{ zuul.projects }}"
- shell:
cmd: |
echo "------------------------------------------------------------" echo "------------------------------------------------------------"
osc_plugins/bin/pip freeze osc_plugins/bin/pbrx install-siblings -c ../requirements/upper-constraints.txt $(find ../.. -mindepth 2 -maxdepth 2)
echo "------------------------------------------------------------"
osc_plugins/bin/pbr freeze
echo "------------------------------------------------------------" echo "------------------------------------------------------------"
osc_plugins/bin/openstack --version osc_plugins/bin/openstack --version
osc_plugins/bin/python src/git.openstack.org/openstack/openstackclient/tests/check_osc_commands.py osc_plugins/bin/python tests/check_osc_commands.py
chdir: /home/zuul/src/git.openstack.org/openstack/openstackclient