Commit Graph

26 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov d086041842 Define constraints file for docs and renos
Right now we are not using any constraints for docs and releasenotes builds.
This has resulted in docs job failures once Sphinx 7.2.0 has been released.

The patch will ensure that constraints are used an we should not face
simmilar issue again.

TOX_CONSTRAINTS_FILE is updated by Release bot once new branch is created,
so it should always track relevant constraints.

Some extra syntax-related changes can apply, since patch is being passed
through ConfigParser, that does not preserve comments and align indenting.


Change-Id: Ic3ca23b672414d1944069b274d709e3a3d94de43
2023-08-17 16:32:00 +02:00
Dmitriy Rabotyagov b1dff02847 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: If194947d7929dd251113a0384a3bda3e5fde8915
2022-12-27 17:53:11 +01:00
Marc Gariepy d8fc0388af Cleanup setup.py config
Change-Id: I6a304677ec2d84be6298cdce952517eec8e6fcb0
2022-03-31 10:36:22 -04:00
zhoulinhui f0c208fcb2 Replace deprecated UPPER_CONSTRAINTS_FILE variable
Change-Id: I9d7d7d24fdf5a552ed4622d42ede90fbf712ff5f
2020-11-10 13:11:23 +08:00
Ghanshyam Mann aa358264f6 [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

openstack-ansible repos only need updates on requirements
and tox file.

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: Icd7542d4fd9d2c5636d55ac633e4422db15e48e9
2020-03-02 21:00:21 +00:00
jacky06 79d47c1da2 tox: Keeping going with docs
Change-Id: Iba63fe7399d67267c3914df1cf98e3d8eccc83a4
2019-10-24 01:18:48 +08:00
Dmitriy Rabotyagov 21f85fae9a 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: I7c74939162e03b9ca08aeaf83893c51d0328dc61
Story: 2006105
2019-10-17 19:41:22 +03:00
melissaml d3c96a98c4 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I0ec434dfd6a1608a8556b0d2a8fdcb1266fd7adf
2019-07-10 21:31:39 +08:00
huang.zhiping 0d2862cbfc 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: Ia6bc30a733b61af8f30eb22f59bb499da76e54cb
Closes-Bug:  #1801657
2018-12-24 07:47:10 +00:00
Doug Hellmann a87543fe1b 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: I41767a419670a39cd73185c74b67f30e36eef5c4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:41:58 -04:00
Jesse Pretorius 34523de7fe 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: I656f3ff5ad6016bec6f8f52399522e56b0253045
Needed-By: https://review.openstack.org/579371
2018-08-16 15:22:03 +01:00
Heba Naser f110ab3b3d 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: I8fad55193b2d30fca77f30825306240351b84506
2018-07-01 16:41:26 -04:00
Jesse Pretorius 89208ea9ab 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: I6d81caffcae4f284524bc3e017140a833a2e1524
2018-03-28 10:10:54 +01:00
Jesse Pretorius 9f0f42b43b 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: Ic6145374b98a4eb3ee247315b24d9d91d6a53086
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 17:55:36 +00:00
ZhongShengping 54aebdb81f 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: I1a69c2a655ba8b393eb79180cfe35b1107280506
2018-03-09 12:01:25 +08:00
Jesse Pretorius 565576a6f6 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: Iace6f886834fe0704d8cc69cdf4b7d453f8bff3d
2017-06-04 11:17:52 +01:00
Jesse Pretorius e124242a96 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: Ifbaac6d110c3ceb4ea97097f5c4c8f79dc9cb64c
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:49:00 +01:00
gecong1973 e41fc2a18c Use https instead of http for git.openstack.org
TrivialFix

Change-Id: Ic7a88d01cdc37543fd51ed1a941e55b002d7c28a
2017-02-06 12:03:21 +08:00
gecong1973 df63bf22b6 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: I5d1b80e09ed77d915c27c926e7dbaa7a82185314
2016-12-06 09:02:12 +08:00
Jesse Pretorius 15b9d99739 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: I367f3c7d6d85c9b15ad3a9caa9c66a04aaedcf00
2016-10-19 07:39:53 +01:00
Jesse Pretorius 6e2afcec90 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: Ifa513198efedb119a49074be1a31b87830677638
2016-10-05 12:10:17 +01:00
Jesse Pretorius 2f250f0f26 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: Ic25156039545c276144ea56f5c8f428f4ab5f756
2016-09-27 15:36:13 +01:00
Kevin Carter 4886213c8d Update testing bits for consistency
Change-Id: Id9392317f5946c49822e973a9954823468b54c08
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-17 16:57:15 -04:00
Jesse Pretorius b6e5451dd4 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.

Related-Bug: #1620849
Change-Id: I5fdcaa98e78848f4b6e34ea1ffa3de7ab1bcc4a8
2016-09-09 09:07:48 +00:00
Kevin Carter d3a0ac205a 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: I892091e65bf2e88746fbad1475159c7db6afe971
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:33:34 -05:00
Jesse Pretorius b17bda5e26 Add scaffolding for OpenStack-CI tests 2016-08-21 16:59:34 +01:00