Commit Graph

29 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 8d4a5ec633 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: I6c0e5e73d0c1842432e506eb8fa9e002f3b9a24a
2023-08-17 16:32:26 +02:00
Marc Gariepy 7cc68553d6 Cleanup setup.py config
Change-Id: I10f5342bdf17926f4e5665a7d1982158b671772f
2022-03-31 10:17:19 -04:00
likui e89cbd2f4f Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I561d6dfe70b956ce9c67aa3277b7968dcae6e487
2021-07-03 21:35:00 +08:00
zhoulinhui e971939b55 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].

This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/#/c/722814/

Change-Id: If72cc1e0b6ac3374eabb3309a793478d4fd1d6ec
2020-11-10 05:15:07 +00:00
Andreas Jaeger 6e6d81e47d 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
- Use warnings for sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.

Change-Id: Ida783dbc8649b8b5175bb254c00a67f533a29554
2020-04-13 20:14:39 +02:00
Ghanshyam Mann c16b84b127 [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: Ic9587fda5e2ba04ef151c32706b8da04a04096d4
2020-03-01 19:23:44 -06:00
Zuul ae3ed5c99a Merge "tox: Keeping going with docs" 2019-12-12 20:56:23 +00:00
Dmitriy Rabotyagov 292df1e012 Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.
Also we change upper constraints url due to [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Id6fc2021367bda6650b419e7855c99b4e795720d
2019-11-14 18:57:00 +02:00
jacky06 7f7b3da513 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: I667b620d16da28cf63c1ffd771406422c20509a3
2019-10-23 17:40:49 +00:00
Dmitriy Rabotyagov fbb709dc96 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: I8b8d50dbf2329f8f972a0d9d734d788009dbc852
Story: 2006105
2019-10-18 15:31:59 +00:00
Zuul 18c1edd88a Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-08-15 02:08:07 +00:00
Andreas Jaeger 318617e012 Remove docs from linters
The openstack-ansible-linters job runs the linters tox environment - and
the docs jobs runs the docs environment.

Remove the docs jobs from the linters environment, there's no need to
run the docs jobs in both linters and docs environment, it just wastes
testing resources.

Change-Id: Ibfae0a0e639ad13c7e547a815c2bf2c43a5b1673
2019-05-18 11:20:04 +02:00
melissaml e3ab210e51 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ie3f8c4f844df0d67486d47d15320c327e938f20c
2019-05-06 19:31:55 +08:00
huang.zhiping b7c4039f13 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: I02275ae673bf6f1664b22012d076db4011634553
Closes-Bug:  #1801657
2019-03-28 17:34:40 +00:00
Doug Hellmann 746b1dc5fa 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: Iabbfb2f22ba874a5e3a196e28c97a42dc626f4f4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:44:27 -04:00
Jesse Pretorius 8b9b70845f Clean up role tests
Now that we're using the general templates, we can slim down
the role test definitions. We can also remove tests which are
not being watched, or which are fundamentally broken. With
this we can also remove unused scripts/plays.

We do the following:

1. We remove the 'ssl' job, given that the person working on
   that is no longer doing so, and no-one else has picked up
   the work.

Change-Id: I944a8163a34b51258a4f0da92cfcd6f046fd1961
2018-09-16 05:03:31 +00:00
Zuul beb745ab20 Merge "fix tox python3 overrides" 2018-08-28 05:50:12 +00:00
Jesse Pretorius 589747b67e 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: Ie5efecb7b5114e82592499bb364772e5fff0563c
Needed-By: https://review.openstack.org/579371
2018-08-16 18:25:42 +01:00
melissaml 1800bb066b 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: Ib796d78fe15f4706dae98dabdae3b1ff5a6d318d
2018-07-23 19:23:39 +08:00
Heba Naser 408a62c5a8 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.

Also, a bunch of outdated tox configuration was updated
to match other repositories.

Depends-On: https://review.openstack.org/579208
Change-Id: Iab894de117a3d84b78246d09d343dc0a85335f28
2018-07-13 16:31:26 +01:00
Jesse Pretorius e041c22d5d 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 details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

In order to pass the requirements check, a new lower bound is set for the
'pyasn1' and 'requests' packages.

Change-Id: I9e8a0454eda8af88eeb690f75107d001e7d3a8b8
2018-07-13 16:00:06 +01:00
Jesse Pretorius 5e622b95bc 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: I2bfe5bd4b5c61aaf30f77618c3364d87f7fab386
2018-03-28 10:16:28 +01:00
Jesse Pretorius 6ea722520b 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: I2055bfdba3d6c7558c3ea5566ff52976f51d683e
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 18:02:16 +00:00
Jimmy McCrory edc9c555b3 Add MySQL connection SSL support
When 'tacker_galera_use_ssl' is True, use an encrypted connection to
the database using either a self-signed or user-provided CA certificate.

A new non-voting test has been added to verify that the role remains
functional when enabling SSL features.

Change-Id: I9165a04de869197ac05e60be799f59a263e98a7b
Partial-Bug: 1667789
2017-12-14 11:42:20 -08:00
Andy McCrae f1e8533a91 Revert "Update roles & vars for stable/pike"
This was meant for stable/pike branch and has now been properly PR'd
against stable/pike:

https://review.openstack.org/#/c/499955/

This reverts commit cff34226fe.

Change-Id: Ia8e04bfa674ef3beb4910666b59568d6cd1b83e3
2017-09-01 11:17:31 +01:00
Andy McCrae cff34226fe Update roles & vars for stable/pike
Change-Id: I1483889e01b994a77e6d101cdf0f435fae457ae9
2017-08-30 15:58:21 +01:00
Manuel Buil b873fcd409 Fill the tests directory
The tests directory is needed to pass the gates

Change-Id: I647d7487177a046120e5f7f43adf48e2aa821f8a
Signed-off-by: Manuel Buil <mbuil@suse.com>
2017-08-09 10:30:28 +02:00
Jean-Philippe Evrard 27991691da Bootstrap tacker role
- Make possible to use gerrit with tacker role
- Introduced Vagrant file like the other roles
- Introduced gating files
- Introduced basic docs

Change-Id: I632010fe7de9a91614bc8088fa7321847f3aa9c1
2017-07-20 15:41:58 +02:00
root d7002e46e5 minor updates 2016-10-03 09:19:22 +00:00