Commit Graph

22 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 138696d0f5 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: Ia704b63838c8730039e135eb38e170204d5a30e2
2023-08-17 16:32:22 +02:00
Marc Gariepy 4b8ba186f8 Cleanup setup.py config
Change-Id: I5ed9926f8cf40c96c4e377a8592bee475edc871b
2022-03-31 10:40:28 -04:00
likui b37ab7592e 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: Ia48db01f5b013d5e9c59f3736403b1f12df7e761
2021-07-03 21:21:07 +08:00
zhoulinhui c95ac98b92 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: If9b28505e32616663f63cb11f82307e39f8ee86f
2020-12-03 18:19:14 +00:00
melissaml 1532f30128 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

Change-Id: I26ecb693ca3ac35ec3195cac2d1ae9de3fd1b122
2020-04-14 17:56:52 +08:00
Ghanshyam Mann 671cbdcad6 [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: I7bbb5948d3e511cb64d4a1e97b3fb1ab6f21e4d3
2020-03-01 18:55:18 -06:00
jacky06 801be9b852 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: I5fdd0c834e056f9c91ef5819231db20d6d715575
2019-12-21 00:30:10 +08:00
Dmitriy Rabotyagov 942a245af6 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: I8783737c2fdfd625e9f015a3630d664e2e2e0cc6
Story: 2006105
2019-10-18 17:32:17 +03:00
melissaml 98fe25ea6c Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ife9bef4ad60233a45e7761c7c11e4cf6d0e4ab0e
2019-07-10 23:06:23 +08:00
Vadim Kuznetsov 6aa925e792 Add support for using distribution packages for OpenStack services
Distributions provide packages for the OpenStack services so we add
support for using these instead of the pip ones.

Change-Id: I7eb1cbe2c80ee889d2ae08dcfed6a19cc1bd3415
Depends-On: Ide70b5d8f67d8c8a87e3f16671f0f7fb72338b89
Depends-On: I8de48eb1fb4c8d321098ca54b9e21270edc7ac87
Depends-On: Ia5fda5d417b79189d048c8891b84d57331df1404
Implements: blueprint openstack-distribution-packages
2019-06-28 07:11:21 +00:00
huang.zhiping c9864b7b6a switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Fixes tox-docs building:
* wrap overlong lines
* move doc8 to linters target following PTI.

Change-Id: I54bde3820722bf981913ff8816fd1670f9d3c17a
Story: #2002586
Task: #24319
2018-09-21 10:06:27 +02:00
Jesse Pretorius 873b7585a5 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.

Depends-On: https://review.openstack.org/600906
Change-Id: I2ce20adf933e050e7429d6876fa1f0049db4183d
2018-09-09 11:12:04 +00:00
Jesse Pretorius 421dd456d7 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: I7da45b9c775fc905e820d86baadb1cd9d98a16d2
Needed-By: https://review.openstack.org/579371
2018-08-19 19:32:44 +00:00
Jesse Pretorius 7330ceafa0 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: I5b4cccc8c158df07bde5bcaa50546a5ffef94886
2018-07-01 17:09:08 +01:00
melissaml 3f8b2809e8 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: I5f7093b6b8a7c10e519d5b56a168f4ac4fb2560e
2018-06-18 16:43:10 +08:00
Jesse Pretorius e3611bb437 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: Icc9ef674918babd49b7992c3a60c0a6bf4e2cde7
2018-03-28 10:15:43 +01:00
Jesse Pretorius e37b81cb05 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: I74925105a4549f434ee44c4ac478d349fadc9f13
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 18:01:13 +00:00
ZhongShengping fe98b558dc 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: Ic0e99e0419ac43c42a6cea2664306239c9490862
2018-03-09 12:01:27 +08:00
Jimmy McCrory 8cc05a3d00 Add MySQL connection SSL support
When 'octavia_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: I7a43d313474e17d7e968a5a9510368e3abdf6682
Partial-Bug: 1667789
2017-12-15 08:11:34 -08:00
Jesse Pretorius 366570f6f0 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: I349a4db0f8e91c1eff41e78a9efb9363e54125dc
2017-06-04 11:22:27 +01:00
Jesse Pretorius 2fbc0da8b7 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: I9986cec53d7a921e03baa91d62b830a3ef825b20
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:52:52 +01:00
Major Hayden f510d6561c Octavia role hacking
- installs Octavia service in OSA
- adds a test which installs Octavia (but uses noop
  to work around gate limitations)

Co-Authored-By: German Eichberger <German.eichberger@rackspace.com>

Change-Id: Idb419a4ca5daa311d39c90eda5f83412ccf576ad
2017-03-01 12:48:12 -05:00