Commit Graph

35 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 05964887b8 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: I8c1c5c930a72ffd0d79ffeab46421c04b7ced0ca
2023-08-17 16:32:26 +02:00
Marc Gariepy a78e9bcde7 Cleanup setup.py config
Change-Id: I852dfddbf8aac10d31fbaff4561cb159bd6bdc06
2022-03-31 10:40:49 -04:00
likui 717d0eeab9 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: I84c80aa01542eef2904c8a620ed929b13963d7f2
2021-07-03 21:22:42 +08:00
zhoulinhui 1b492b9bfd 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: Iad47cff6b33ccc82bf9c7f23c23c779568951724
2020-11-10 05:14:17 +00:00
Ghanshyam Mann 79736e2994 [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: I8ce157cdf7c36f15ef9a39e98cc609b17b59288a
2020-03-01 19:23:47 -06:00
jacky06 957f1bd305 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: If15c710457611cfeebb5c2ec9f352425c72d6015
2019-12-21 00:36:41 +08:00
Dmitriy Rabotyagov 96821b4ba9 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: Ia7c61e2531721716318b1e1666b33889b6a34808
Story: 2006105
2019-10-18 18:22:56 +03:00
melissaml ae58923306 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ia0d12242accf240149ec1ec1d1be2b685b77b331
2019-07-10 21:19:58 +08:00
huang.zhiping e0314d1339 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: Ibddd61b7a9e9b78905d548b5ab00e64277449114
Closes-Bug:  #1801657
2019-01-12 03:17:33 +00:00
Doug Hellmann 0a3dd49fff 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: I1e3aebc5542bea5cab66aaa2f295099b88928eb1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:44:34 -04:00
Jesse Pretorius f0c0607bc5 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: I2c7c0e1e682e24f15270d4c81b62dc927a766a3f
2018-09-09 11:43:03 +01:00
Zuul e8da8b01a9 Merge "Fix doc8 failure" 2018-08-28 12:12:58 +00:00
Andreas Jaeger abd4d64731 Fix doc8 failure
doc8 is now run as part of the new docs build job, fix failure.

Merge duplicated section.

Remove html_static_path, this is non-existant.

Fix docs environment to enable warnings.

Change-Id: I47b0af6257c0bc96fd23a5bd8620a6e137c77f17
2018-08-28 09:43:40 +02:00
melissaml 7bb7afac8c 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: I0755516a64149f75165ca33fbd6db0a2222027d6
2018-08-28 07:18:35 +02:00
Jesse Pretorius e4cbb21833 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: Iae1951ba7a7d30fc8913ac0b654a789288a98b58
Needed-By: https://review.openstack.org/579371
2018-08-17 13:44:20 +00:00
Heba Naser e64a0253ce 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: Icc31c4913238d3608ff05d54f47099a3377dd32d
2018-07-02 23:20:24 +00:00
Jesse Pretorius e2b238ba33 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: I4c9ca30405735c9a5e237713154c2f127aaec0e2
2018-03-28 09:31:00 +00:00
Jesse Pretorius 2c6fe45abd 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: Ied2b29fd1654dc27f93171884a345ab758e15228
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 18:02:36 +00:00
ZhongShengping 76818b4ef3 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: Ifaa51ce7507912d4ccdf323a3e0b48d40daf74a8
2018-03-09 12:01:27 +08:00
Jimmy McCrory 8be124b8c7 Add MySQL connection SSL support
When 'trove_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: Ia453e842cabbb46e25f9918e88738340ff08f2ab
Partial-Bug: 1667789
2017-12-14 11:27:40 -08:00
loooosy 59a8ec8034 Enable some off-by-default checks
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None

Change-Id: I274a7e35a6d52ed4b1ceb1243e2e4505335d22de
2017-07-21 17:20:34 +08:00
Jesse Pretorius a3d0f65015 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: Ifee6e3aff26d2eae641d1248474b4e55c74c3f94
2017-06-04 11:23:17 +01:00
Jesse Pretorius 46459fd435 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: Idd2c2e750c001a3ece7b778520dd60cf9e649acf
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:53:39 +01:00
Cao Xuan Hoang 02e130c543 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I8b61c02777910c65bd56d608bc9d9141e2a7c2aa
2017-02-06 17:15:48 +07:00
gengchc2 6d060c7ada 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: I743e4873118d9aa682787802578c1b82b58a28bb
2016-12-06 09:14:25 +08:00
Jesse Pretorius b59bf7dd8b 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: I316b0ba9655a80ffad204fc5f146e3a7f0b9b9b2
2016-10-19 07:44:55 +01:00
Jesse Pretorius ae5ab67055 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I86c627f9044fdc78dd2b2abd8c363761dd7bdd2d
2016-10-05 12:17:15 +01:00
Jesse Pretorius 1322975933 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: I9ca25f738045409be30a3381e1038e783474495c
2016-10-04 11:43:19 +01:00
Jesse Pretorius cbf75f98f5 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: Ib26820310d24b3e59777894f588e9874459ece04
2016-09-28 11:32:29 +01:00
Donovan Francesco (drifterza) 767682b6f4 Functional testing for the role gate
Simple REST API based functional testing for trove will now be run during the gate.

Change-Id: Ie8621ebc756a82cb47cef73172881848454dba7e
Closes-Bug: #1624520
2016-09-23 05:56:55 +02:00
Travis Truman 0bac099637 Ansible 2.1.1 role testing
Change-Id: I85bc20f2a52359ae6dab56124d5e6b56dd233c7d
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-19 14:17:04 -04:00
Jesse Pretorius 7a34707fe4 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: I4fe1743d5323ac9cdb70047ae17c4c438d6e4997
Related-Bug: #1620849
2016-09-16 09:15:23 +01:00
Donovan Francesco 3455ec7579 Deploy Openstack-Trove (DBaaS)
This commit allows the deployer to create 3 containers to run
Trove-API, Trove-Conductor and Trove-Taskmanager.

Change-Id: If93330d48f53745d45af351b9de9a4a733af943a
2016-09-01 15:17:08 +02:00
Kevin Carter 45d876d06e 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: I74ad02978ba251953afa4d8b108e6b9c7eb9145e
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:37:41 -05:00
Donovan Francesco f12ecd2e83 Add scaffolding for OpenStack-CI tests
Change-Id: I768a5ece1417933248c76fe7e269b9248d0baed1
2016-08-26 16:26:42 +02:00