The TESTING_BRANCH environment variable is provided by the
run_tests.sh script and is derived from the .gitreview file.
This ensures that once the master branch becomes a stable
branch, the constraints from the stable branch in the
integrated repository will automatically get used once the
.gitreview file is updated.
To ensure that the required environment variables are present
we export them appropriately in run_tests.sh and modify the
tox configuration to pass them into the tox test.
Change-Id: I219a7890ff7bfd62820ecd454644cfb80461a03f
Needed-By: https://review.openstack.org/579371
Using tox for requirements management requires in-repo
requirements files for all our repositories. Rather than
do that, we make use of the tests repo to capture our
common requirements and use this to install them.
This reduces our review requirement rate and simplifies
maintenance for us for the tox config. It also makes it
usable with 'Depends-On', which is marvellous!
The tox requirements definitions for docs/releasenotes
builds are left in-place as those are standard entries
across the community. If that changes at some point, we
can re-assess those entries too.
Depends-On: https://review.openstack.org/579208
Change-Id: I3b31d345041ae1221ec22fc703fae7f96d5fbf4d
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I9569c3b17e8688f828b2f7bfc3f84852c9d437a3
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.
Change-Id: I13963ba367a0835a01a61a1cef0207dc737f2b0d
In order to allow the use of the environment variable which informs
Ansible which user executed the playbook, we pass the USER env var
into the environment that tox builds.
Change-Id: Ia2cbd75b20de38a7d37a97c56cb3fbc1364579ea
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
Currently the role tests use whatever versions of pip,
setuptools and wheel are already installed on the host.
When a version of these tools changes it often causes
problems for our testing.
This will ensure that we use a known good set of pins
which is maintained in the general SHA bumping process.
Change-Id: I60c75e5a5f189301d6ed9978fb268d0e6f092b30
When executing the tests repo clone in OpenStack-CI,
use zuul-cloner instead of git to enable cross-repo
testing. This ensures that if a dependent patch from
the tests repo is noted using 'Depends-On: <change-id>'
in the commit message, that patch will be included.
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
Depends-On: I5da7802d61d2ab6b03908138e3a3ed2db22e3d29
Change-Id: I007306c47f9cc526b163c2e659baa67769affd84
With the implementation of https://review.openstack.org/388087 all
tox targets may now use upper constraints.
Change-Id: I9f247a79bf89bc55d063bbe2aad4c9e5344480c5
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853
Change-Id: I0a7eb08b0c040d6de40eee36f5aaad9d56da025c
With https://review.openstack.org/381479 merged, setting this
variable in tox.ini via an extra var is unnecessary.
Change-Id: Idf76e76c0f481dccfc8f5de9b729bd1c7e89a611
This patch consumes the test scripts implemented by
https://review.openstack.org/375061 to ensure that
the tests and test preparation is consistent and
more maintainable.
Change-Id: I15440dfae38ad9f1f6f44c5115cb08adda57e453
Co-Authored-By: Major Hayden <major@mhtx.net>
Change-Id: I850e7573a279ea317ee6743eae03e23940163453
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
The volume of logs we collect in CI jobs are extensive. This
patch ensures that the logs collected are compressed to reduce
the space taken in CI systems.
PYTHONUNBUFFERED is also set to ensure that the console log
from the CI jobs is recorded in the exact order of execution.
Change-Id: I518a677dff2722c2fd9f343fa67a801252edea1d
Related-Bug: #1620849
This change enables log collection within the gate so that further analysis
on gate tasks can be performed post build. This is very useful when
debugging problems.
Change-Id: I93d849ad20517ae09f0b01bb6d3721d498b155cd
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>