Commit Graph

18 Commits

Author SHA1 Message Date
Guilherme Steinmüller 1f61130240 Retire openstack-ansible-os_watcher
Change-Id: I0dfd5318a7b953618673eb4ffd17f89a1cf900c4
2019-04-24 16:51:54 -04:00
Jesse Pretorius b3200b7388 Use the TESTING_BRANCH env var for constraints
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
2018-08-16 18:28:17 +01:00
Heba Naser 4cb23c78ad Use tests repo for common role test requirements
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
2018-07-02 13:03:50 -04:00
zhulingjie c614ca0b92 fix tox python3 overrides
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
2018-06-09 04:14:07 -04:00
Jesse Pretorius 2551756e56 Remove tests-repo-clone.sh
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
2018-03-28 10:16:54 +01:00
Jesse Pretorius d988ee2d4c tox.ini: Expose USER environment variable to execution environment
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>
2018-03-15 18:02:46 +00:00
ZhongShengping 4829ea6fec Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I6999716675cee6488360876edfdfe1cbfe5d2f25
2018-03-09 12:01:27 +08:00
Jesse Pretorius c731684a09 Ensure that role tests pin pip/setuptools/wheel
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
2017-06-04 11:23:28 +01:00
Jesse Pretorius dd906fbbaf Use zuul-cloner for tests repo in OpenStack-CI
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
2017-05-16 11:44:48 +00:00
Cao Xuan Hoang 48fe4b2f5e Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I2d515e089c79c28680c122de59b54c4cf1da133c
2017-02-06 17:17:19 +07:00
Jesse Pretorius 1f36f696e8 Use upper constraints for all tox targets
With the implementation of https://review.openstack.org/388087 all
tox targets may now use upper constraints.

Change-Id: I9f247a79bf89bc55d063bbe2aad4c9e5344480c5
2016-10-19 07:45:08 +01:00
Jesse Pretorius 9cdd0ca5b5 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I0a7eb08b0c040d6de40eee36f5aaad9d56da025c
2016-10-05 12:17:27 +01:00
Jesse Pretorius 4c8764ff89 Remove install_test_packages variable
With https://review.openstack.org/381479 merged, setting this
variable in tox.ini via an extra var is unnecessary.

Change-Id: Idf76e76c0f481dccfc8f5de9b729bd1c7e89a611
2016-10-04 11:43:29 +01:00
Jesse Pretorius 00f1555bbb Use centralised test scripts
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
2016-09-28 11:38:40 +01:00
Major Hayden 3992b860e1 Ansible 2.1.1 role testing
Co-Authored-By: Major Hayden <major@mhtx.net>
Change-Id: I850e7573a279ea317ee6743eae03e23940163453
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-19 15:31:35 -04:00
Jesse Pretorius 968bcf84eb Compress test execution logs
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
2016-09-09 10:50:24 +01:00
Kevin Carter 330430c3f9 Enable log collection after functional testing
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>
2016-08-29 21:37:45 -05:00
Michael Gugino 76a013f814 Initial commit
This is the initial commit for the watcher role.
2016-08-22 13:37:00 -04:00