Commit Graph

28 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov a5daa83172 Update tox.ini to work with 4.0
With tox release of 4.0, some parameters were deprecated and are ignored now
which causes tox failures. One of the most spread issues we have is using
`whitelist_externals` isntead of `allowlist_externals`


Change-Id: I73cad1846dd3fbcbf9e3317227c472d769d1e7b6
2022-12-27 17:53:11 +01:00
Jonathan Rosser d339d576b0 Cleanup setup.py config
Change-Id: Idea36d3b3fd8cdeb04e76f9b3ec7da24eac99b83
2022-04-04 10:39:41 +01:00
zhoulinhui 7f15ec569f Replace deprecated UPPER_CONSTRAINTS_FILE variable
Change-Id: Id4c2b579bc0c9737d5353c992484f2c872b94151
2020-11-10 13:11:23 +08:00
melissaml 55838c7aac Cleanup py27 support
This repo is now testing only with Python
3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Cleanup doc/source/conf.py to remove noww
 obsolete content.

Change-Id: Ie2d4e75ba3f81445fe9bcaf46e39d5f4110b350e
2020-04-14 20:50:38 +08:00
Ghanshyam Mann 7ddff19aa5 [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

Only update required is in tox to define common baspython as py3 os that
all tox env including [testenv:functional] will use py3 instead of py2.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: Iebe9f4a0e2eb63078bb29b78933d09d142dab8c8
2020-03-01 16:06:12 +00:00
jacky06 b717728e22 tox: Keeping going with docs
1. Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
2. Remove the unnecessary blank line for tox.ini

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Depends-On: Ie837d376bb1a1d93367369d25140dd8a9d5ac14e
Change-Id: Ifa42c8e5d0300804adaa18e2f5fe5fc3d5c5179f
2019-10-23 17:43:15 +00:00
Dmitriy Rabotyagov 500398b819 PDF Documentation Build tox target
This patch adds a `pdf-docs` tox target that will build
PDF versions of our docs. As per the Train community goal:

  https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html

Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt
to convert our SVGs.

Change-Id: I5d6f04dfc81897029200ac67c574af07c28d564f
Story: 2006105
2019-10-18 20:35:02 +03:00
liuwei 806a2ce9ad update git.openstack.org to opendev
Change-Id: I33e06926970d543f3f2df190c3346f8a7b51765e
2019-09-26 08:36:44 +00:00
huang.zhiping 0b372f9111 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: I1d9a985c6c81f7ee789daa4c8529d33635503787
Closes-Bug:  #1801657
2018-12-24 07:48:50 +00:00
Doug Hellmann db93eed386 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: Iee7722a0ef9d7adacc666b51989373a01248cbcd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:42:09 -04:00
Jesse Pretorius 4843a9cc3d 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: Id1dc554c375f499c365e05017f6617e5e905a855
Needed-By: https://review.openstack.org/579371
2018-08-16 15:24:58 +01:00
Heba Naser fb2f188182 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: I30a58fbb5b47685ddb6a6490a234b0c0b3085044
2018-07-01 16:57:04 -04:00
Jesse Pretorius 010fd6b3c6 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: Ib72103c370b55b840d440fce4db475df9c31160d
2018-03-28 10:11:26 +01:00
Jesse Pretorius 2bf964fe35 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: Ibce22d95dfda01ec82fea3f52bca696205c083f6
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 17:56:09 +00:00
ZhongShengping 20f24a3c91 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: I66d05fbddf6bea8e5e390f109c4e7792b14b87a9
2018-03-09 12:01:25 +08:00
Jesse Pretorius 0f7a6d4885 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: I25b36a624158287d13530bab31035b300f10d29d
2017-06-04 11:18:23 +01:00
Jesse Pretorius e0bea33ddd 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: If670c16726d8a2758dcae4b3097571dd2449418f
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:49:23 +01:00
Jimmy McCrory 49da8afb89 Improve role idempotency
Add a 'creates' argument to the task installing HATop so that the task
is skipped if it's already installed. Remove 'changed_when' from slurp
tasks. Break the 'Test for log directory or link' shell task into a
couple tasks which use the stat and file module. Remove 'changed_when'
from slurp tasks. Also enable the idempotence test for the gate.

Partial-Bug: 1640144
Change-Id: Id7fe24c9c1ae416abab69d4f42b65c9594805e10
2017-04-11 11:14:28 -07:00
gecong1973 72fe9bca01 Use https instead of http for git.openstack.org
TrivialFix

Change-Id: I0cedec6f9a558cb6379527e8b28175ac96ef31b2
2017-02-06 12:13:55 +08:00
gecong1973 761ff084a9 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: Ic10b8ada80a279a6c33cbeebb95e1c6329340fc7
2016-12-02 13:51:44 +08:00
Jesse Pretorius 615427d3ff 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: I7d6a0fb122dcc81ae5ef7a8e8628eaf8cdaf25fb
2016-10-19 07:40:25 +01:00
Jesse Pretorius 85576e2f63 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I10ec22bdd71d08ab6420ba3aa59baca720b6ff18
2016-10-05 12:11:58 +01:00
Jesse Pretorius 49a4fc2151 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: I4e5cf44b3d4a857538918503ab42a20b80e4df6c
2016-10-04 11:39:18 +01:00
Jesse Pretorius 951136201f 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: Ifae123b7cdf44b5ad166ca7d229fd5c3b3d71882
2016-09-27 16:02:41 +00:00
Kevin Carter 775e6126c1 Update testing bits for consistency
Change-Id: I11b886bb4de3fba2d7c3c3248c50eb6809f61901
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-17 16:59:41 -04:00
Jesse Pretorius 9714f8e5f3 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: Ie1d80b2d5dfeee40f417917bf2ad3bca85ec52cc
Related-Bug: #1620849
2016-09-09 10:12:17 +01:00
Kevin Carter 0b64c3aa58 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: I76f771e8ca3a434fc3fd710a9ff035cb2bfad182
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:33:48 -05:00
Jesse Pretorius 0b06f3fbbf Add scaffolding for OpenStack-CI tests 2016-08-21 17:00:50 +01:00