13 Commits

Author SHA1 Message Date
Doug Hellmann
4fe837b26c 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: Id8547917da6ffae8b4967ff90d9989f79734ce6f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:42:40 -04:00
Jesse Pretorius
a47369fad5 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: I4a101851d656e5dce3a2cc9eb5d5508b46953c4b
Needed-By: https://review.openstack.org/579371
2018-08-16 15:29:27 +01:00
Heba Naser
c9a2035972 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: Ib03a2836de7271dcbccab7a0742ed98515de859b
2018-07-02 12:26:40 -04:00
Jesse Pretorius
7ff76c41b4 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: I7e3426e483e0a312ae838155788c1ec4b960559a
2018-03-28 10:28:54 +01:00
Jesse Pretorius
ef4b673a84 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: Id6d47779821d101bc504fd9e23e7a7ec29da3f7b
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 17:57:29 +00:00
ZhongShengping
5851ac317f 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: Id5641128e637c2767e1ab8758d31663eaa397c41
2018-03-09 12:01:26 +08:00
Jesse Pretorius
f0a94da4d3 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.

Change-Id: I93a4c523ef01824733f6a28122a3b6f884adb5a6
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 17:13:15 +01:00
gecong1973
00c1e31805 Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:
     https://github.com/openstack-dev/hacking/blob/master/setup.cfg

Change-Id: I7e6fa8f08fef2cb474811fe2b48fb8e8e626d1c4
2016-12-04 10:31:02 +08:00
Jesse Pretorius
31773b0736 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: Ic24df14a7011dac134059cf32a3952c948af60dc
2016-09-27 17:18:43 +01:00
Jesse Pretorius
d195a081fe Make all linting tests use upper-constraints
As per [1] all linting tests can now use upper-constraints. This patch
removes all instances of the install_command override relating to lint
testing which were needed to negate the use of upper-constraints.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: I91f314367cacdf7e19905a68f437374705398c6b
2016-08-20 16:04:21 +01:00
Jesse Pretorius
c81d41edb1 Implement doc8 checks for docs
In order to prepare for the move of detailed configuration
content from the install guide to the roles, doc8 checks
are being implemented in the roles to ensure that any new
content submitted is properly checked.

Change-Id: I2c3b2cbf692454159fa7a95792d707bd9ea6391c
Partially-Implements: blueprint osa-install-guide-overhaul
2016-07-13 12:54:36 +01:00
Jesse Pretorius
a36f0a1e4e Update tox configuration
In order to prepare for implementing requirements management by the
OpenStack requirements management process, and to improve the
reliability and effectiveness of test execution, this patch implements
some changes to the tox configuration:

- The minimum tox version is increased in order to be able to use
  constraints for the python packages.
- The OpenStack upper-constraints are used when preparing the test
  venv for the linters checks.
- Any proxy environment variables set on the test host are passed
  into the venv to enable testing from behind a proxy.
- The docs test will clean-up an existing build directory before
  executing the docs build.
- The releasenotes build cannot use upper-constraints at this point,
  so it doesn't.
- The ansible test requirements are removed as they are not used for
  this repository at this time.

Change-Id: I338eb58dfebe2ac03f7a81dd9e93b057f7e64f73
2016-07-08 12:40:46 +00:00
Jesse Pretorius
0aeb4dfe39 Add base test scaffolding for repo
Change-Id: Ibe08860b69878b809695a48be4a0937b9c548e47
2016-06-14 15:32:40 +00:00