From 8f99e6e3e9c5d5167e8424bc9f339d83fd2cd021 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 22 Mar 2018 08:57:33 -0400 Subject: [PATCH] add lower-constraints job Create a tox environment for running the unit tests against the lower bounds of the dependencies. Create a lower-constraints.txt to be used to enforce the lower bounds in those tests. Add openstack-tox-lower-constraints job to the zuul configuration. See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html for more details. Fix the lower-bound for requests-mock, since 1.1.0 does not actually work. Change-Id: I8740a80c64e24c8339ee9b0992c2f81b1784e672 Depends-On: https://review.openstack.org/555034 Depends-On: https://review.openstack.org/555402 Signed-off-by: Doug Hellmann --- .zuul.yaml | 2 ++ lower-constraints.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ tox.ini | 7 +++++++ 3 files changed, 52 insertions(+) create mode 100644 lower-constraints.txt diff --git a/.zuul.yaml b/.zuul.yaml index 3d7ba060c..9ec920db4 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -230,6 +230,7 @@ - shade-functional-devstack - shade-functional-devstack-magnum - shade-functional-devstack-python3 + - openstack-tox-lower-constraints gate: jobs: - bifrost-integration-tinyipa @@ -237,3 +238,4 @@ - shade-ansible-functional-devstack - shade-functional-devstack - shade-functional-devstack-python3 + - openstack-tox-lower-constraints diff --git a/lower-constraints.txt b/lower-constraints.txt new file mode 100644 index 000000000..02662922a --- /dev/null +++ b/lower-constraints.txt @@ -0,0 +1,43 @@ +appdirs==1.4.3 +certifi==2018.1.18 +chardet==3.0.4 +coverage==4.0 +decorator==4.2.1 +deprecation==2.0 +dogpile.cache==0.6.5 +extras==1.0.0 +fixtures==3.0.0 +future==0.16.0 +idna==2.6 +iso8601==0.1.12 +jmespath==0.9.3 +jsonpatch==1.21 +jsonpointer==2.0 +keystoneauth1==3.4.0 +linecache2==1.0.0 +mock==2.0.0 +mox3==0.20.0 +munch==2.2.0 +netifaces==0.10.6 +openstacksdk==0.11.2 +os-client-config==1.28.0 +os-service-types==1.2.0 +oslotest==3.2.0 +packaging==17.1 +pbr==2.0.0 +pyparsing==2.2.0 +python-mimeparse==1.6.0 +python-subunit==1.0.0 +PyYAML==3.12 +requests-mock==1.2.0 +requests==2.18.4 +requestsexceptions==1.4.0 +six==1.11.0 +stestr==1.0.0 +stevedore==1.28.0 +testrepository==0.0.18 +testscenarios==0.4 +testtools==2.2.0 +traceback2==1.4.0 +unittest2==1.1.0 +urllib3==1.22 diff --git a/tox.ini b/tox.ini index 649b0865a..84502f892 100644 --- a/tox.ini +++ b/tox.ini @@ -92,3 +92,10 @@ ignore = H103,H306,H4 show-source = True builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build + +[testenv:lower-constraints] +basepython = python3 +deps = + -c{toxinidir}/lower-constraints.txt + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/requirements.txt