Commit Graph

37 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov f98616ebd6 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: I7e1f5009e8fc89036cb8dbf06e558bfb36241de4
2023-08-17 16:32:24 +02:00
Dmitriy Rabotyagov 6deed3ff81 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: I88f881ae0396973f60ea892453933a263b685c88
2022-12-27 17:53:25 +01:00
Marc Gariepy 19041d7365 Cleanup setup.py config
Change-Id: Icb0a8c2005cdfc4d4258695207fc31115e27d5a2
2022-03-31 10:40:39 -04:00
zhoulinhui a0eef75d6e Replace deprecated UPPER_CONSTRAINTS_FILE variable
Change-Id: Iab16e17e153c82865a42fd60ed64b911e07c68af
2020-11-10 13:12:03 +08:00
Andreas Jaeger 8d42533781 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
- Enable warnings for sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.

Change-Id: I9947bc813182bc090d96a911fd5ae2b3b92bb740
2020-04-13 20:18:39 +02:00
Ghanshyam Mann bb246d1535 [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: I246b153036079f32a9a733cca28134d6eb0a2697
2020-03-01 18:54:58 -06:00
jacky06 cb14fe0f01 tox: Keeping going with docs
Change-Id: I897f94e652c50b9eef85478dfa8263ec3ff2bbac
2019-10-24 01:19:13 +08:00
Dmitriy Rabotyagov 1f404d558c 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: Ie14493d5a23bc48a3dc281949df0ba79a5fef31d
Story: 2006105
2019-10-18 18:02:14 +03:00
tonybrad 1982a3ccc9 Update tests git source to opendev
Change-Id: I26408036c67c24631b5afe953283cda5c7cb1750
2019-05-21 08:47:26 +00:00
huang.zhiping f18a851d98 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: I88f8c1c8730d4d8f5100e69e6a670f6ee02a158d
Closes-Bug:  #1801657
2019-01-12 03:25:06 +00:00
Doug Hellmann d0108c1181 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: I2eac2d831af66b0a6be387d2670d1b6e3e86785f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:44:17 -04:00
Jesse Pretorius c3be379f85 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: I2aac4caa7b1d1eb32212b39a973a76681618c555
2018-09-09 11:21:04 +01:00
Jesse Pretorius a3fe6a100c 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: I9339bb985f7246180860e8e1ae4c90a2610b5193
Needed-By: https://review.openstack.org/579371
2018-08-16 18:24:57 +01:00
Zuul 123fc0d630 Merge "fix tox python3 overrides" 2018-07-11 20:27:21 +00:00
Nguyen Hung Phuong e354103ccc 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: I22f8a992540ad192ac8fd67050512f163cc58cb4
2018-07-05 11:08:12 +07:00
Heba Naser b8fe070f8d 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: Ib0fe2f1ce614ef9cbceefe6c8620dc2ddb5445b4
2018-07-02 23:24:59 +00:00
Jesse Pretorius da46d8892e 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: Icd4e288808108b239d1c968c0fdff12e7ed366cc
2018-03-28 10:16:09 +01:00
Jesse Pretorius 4e6cceee86 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: I8b5b4753c141b8802daca75d0bb9d1d75f3d5590
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 18:01:42 +00:00
ZhongShengping 390ab48c20 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: I333d8aa9df22a0e1db9cdfe8155ad032d6ea8814
2018-03-09 12:01:27 +08:00
Jimmy McCrory 3603257d29 Add MySQL connection SSL support
When 'sahara_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: Ie39024c99cad0932f464707adc43019bc1062317
Partial-Bug: 1667789
2017-12-14 11:31:03 -08:00
Jesse Pretorius 96935c7e11 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: Ic1ca5c73c1746e83af5ebaa29a798979d0f12271
2017-06-04 11:22:46 +01:00
Jesse Pretorius 8405fd4369 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: Id74a3c801f369d990516c35473ecf5e6ccc734bf
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:53:08 +01:00
Cao Xuan Hoang a329626985 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I389ea1e185b2ab1c0f4fcb27b67c3c4037c25c64
2017-02-06 17:07:11 +07:00
Jesse Pretorius 8aa7d4cbd8 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: I3fa513fc7f8f3324b6d19cbba4d119f4fa4e5d73
2016-11-04 15:59:31 +00:00
Jesse Pretorius f5240202de Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: Ie61fe6f6e722f4ad0a314af661a036f29bcecffb
2016-10-05 12:16:26 +01:00
Jesse Pretorius d07c9863a6 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: I65b687be61f038e0c4731979c532c84ff1105e33
2016-10-04 11:42:45 +01:00
Travis Truman 76d83ee22e Ansible 2.1.1 role testing
Depends-On: I1c582502c3360fd6c20443faeca84de3900465d1
Change-Id: I5f7aea355e6df97620190c1afde214f191872970
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-03 14:12:51 +01:00
Jesse Pretorius db2407c1d9 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: Ifb0d46c52f0cf34877c3e1961fc73084c6810e49
Related-Bug: #1620849
2016-09-09 10:46:22 +01:00
Kevin Carter a025fa6212 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: Ibef2643532d1adbfed2ce249cdccdee7b7c9dbbc
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:37:21 -05:00
Jesse Pretorius f272acfe88 Make all linting tests use upper-constraints
As per [1] all linting tests can now use upper-constraints. This patch
removes all instances of the install_command override relating to lint
testing which were needed to negate the use of upper-constraints.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: I704c4499076cd5d70f1f5012ecea7ea08d88f8e5
2016-08-20 16:06:45 +01:00
Jean-Philippe Evrard 5d66b0d8b1 Include ansible commands for ansible linting
The plugin repo needs to be cloned for ansible-lint to
understand ansible plugins. The commands currently
reside in tox.ini under the ansible section and are not
currently included. This commit fixes that error.

Change-Id: Ic10fe026a05e53410e94e399175137d129892f3c
2016-08-11 18:10:15 +01:00
Jesse Pretorius bfef87c954 Ensure that doc linting is included in the linters test
The 'docs' tox target executes the doc8 lint test which may result in
failures when testing documentation builds, but OpenStack-CI does not
execute that tox target.

In order to ensure that we catch all standard documentation syntax
errors and prevent them from merging, this patch includes the docs
target in the 'linters' chain of tests.

Fixes for any failures which result from executing this test are also
included in the patch.

Change-Id: Iba9a6d7611354d5734858e9f3771958af1a23a9d
2016-07-26 00:42:33 +01:00
Jesse Pretorius 3cbabaf792 Use plugins repo version of the human_log callback plugin
With the implementation of https://review.openstack.org/321331 the
human_log callback plugin is now part of the plugins repo.

This patch removes the retrofitted version in tox in favor of using
the version from the plugins repo instead.

Change-Id: I3dd564ab10c0c0d35b71f20f5d3b37db03503f8e
2016-07-15 14:03:42 +01:00
Jesse Pretorius 5515ad00d7 Implement doc8 checks for docs
In order to prepare for the move of detailed configuration
content from the install guide to the roles, doc8 checks
are being implemented in the roles to ensure that any new
content submitted is properly checked.

Change-Id: I5cba4c7486738a6588b5ceec24f21b750c71a710
Partially-Implements: blueprint osa-install-guide-overhaul
2016-07-13 12:56:55 +01:00
Jesse Pretorius 1ea1530690 Update tox configuration
In order to prepare for implementing requirements management by the
OpenStack requirements management process, and to improve the
reliability and effectiveness of test execution, this patch implements
some changes to the tox configuration:

- The minimum tox version is increased in order to be able to use
  constraints for the python packages.
- The OpenStack upper-constraints are used when preparing the test
  venv for the linters checks.
- Any proxy environment variables set on the test host are passed
  into the venv to enable testing from behind a proxy.
- The environment variables used by Ansible tests are moved into
  a new venv called 'ansible' and this environment is inherited
  by all Ansible-related tests.
- The docs test will clean-up an existing build directory before
  executing the docs build.
- The releasenotes build cannot use upper-constraints at this point,
  so it doesn't.
- The Ansible role download will no longer ignore errors so that any
  problems discovered will result in a failed test.
- The human readable logging callback plugin is implemented for
  functional testing.
- The ansible test requirements are moved into tox.ini to ensure
  compliance for requirements.txt/test-requirements.txt for the
  global-requirements management contract.
- The ~/.ansible directory as a whole is not deleted. Instead only
  the plugins and roles folders are deleted to ensure that zuul's
  Ansible artifacts are left in-place.
- The ansible-lint version is updated to support execution against a
  folder, and the test now executes against the entire role to ensure
  that it captures all applicable files for lint testing.

This is a combined port of the following:
- https://review.openstack.org/323507
- https://review.openstack.org/338193
- https://review.openstack.org/332443
- https://review.openstack.org/338193
- https://review.openstack.org/339493

Change-Id: Ic8b35f61bfcc8af3b37c895e47dc6fbad063d4b4
2016-07-08 15:43:41 +01:00
Flávio Ramalho 45afc91aaf Test sahara with tempest
This change adds functional tests to the sahara role. It install tempest
and and then runs the data processing scenario tests.

Change-Id: Ie6e606fb2e624fdad57cd06b8ea8a8d8773bf243
Depends-On: I8abc5c567e0d3e5829b9f7da8be5b0d0fc065ea7
2016-06-08 08:32:43 -03:00
Flávio Ramalho 23f25f425e Initial import 2016-05-12 10:28:58 -03:00