Commit Graph

40 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov dcf6aed584 Deprecate rsyslog_client role
Depends-On: https://review.opendev.org/c/openstack/project-config/+/863079
Change-Id: I47bcd43247e0d589932b63cec782567d33d35f28
2022-10-31 16:56:19 +01:00
sonpn13 d4d17d6af2 PDF Documentation Build tox target
Change-Id: Ie55138d08d45945fdc00583dfb53458e6f2e3c48
Signed-off-by: sonpn13 <sonpn13@viettel.com.vn>
Story: 2006105
Task: 35338
2022-04-27 10:21:21 -04:00
melissaml a961588504 Cleanup py27 support
This repo is now testing only with Python
3, so let's make a few cleanups:
- Remove setup.* files, they are not needed
  for this repo
- Cleanup */source/conf.py to remove now
  obsolete content.
- Remove install_command, the default is fine;
  move constraints into deps

Depends-On: https://review.opendev.org/720558
Change-Id: Ic6ea57d750a203b5a8f199b78dd3c0889b849df9
2020-04-28 18:47:42 +00:00
Ghanshyam Mann e97ad05734 [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

Depends-On: https://review.opendev.org/720558
Change-Id: I4994a888c81ad414a95ea4186638ad27a8bb3c71
2020-04-28 18:47:30 +00:00
jacky06 7fd40af13d 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: I5ec211385898d2c8517b1bad9ba523edde00eb05
2019-10-23 17:43:36 +00:00
tonybrad d5f29e6409 Move to opendev
Change-Id: Ib6f203870dc037841992583e667df80d34aa5459
2019-05-21 08:51:49 +00:00
huang.zhiping cbe2113f5d 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: I8e1653369bc106b9d9438d6d5b111c90df74743d
Closes-Bug:  #1801657
2018-11-08 13:37:38 +00:00
Doug Hellmann aad56d7c74 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: I4f1942bd392b60adfde28e7a24004c662fb029af
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:45:05 -04:00
Zuul 1a71f4d467 Merge "fix tox python3 overrides" 2018-08-23 03:29:01 +00:00
Jesse Pretorius 96effb024f 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: I0aec17d90042e148003b181be964dba4f54814c8
Needed-By: https://review.openstack.org/579371
2018-08-16 18:30:33 +01:00
Nguyen Hung Phuong 3fbfd51562 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: I8af41ed45d1014051952a53a73b0c214d1214cd0
2018-07-17 06:30:20 +00:00
Heba Naser 56ced7d97e 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: Ifbd649659d1f6744414660a20874585fddbe22a8
2018-07-02 12:14:24 -04:00
Jesse Pretorius b976e44d88 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: I7bb55444b732def3504f936b83d74d6e90536a32
2018-03-28 10:17:57 +01:00
Jesse Pretorius 65233e689f 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: I91fb814d12b91e954af21def122d35c4001881cf
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 18:03:59 +00:00
ZhongShengping 3f606cf3c1 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: If1c26fba000dcf9cbb51087ff6a75d2dcb59bc09
2018-03-09 12:01:28 +08:00
Jesse Pretorius b0c094a6f1 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: Id5c240ecc512358eec390f265c7e55c2324dd2e5
2017-06-04 11:24:23 +01:00
Jesse Pretorius dbd7913934 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: I578ee9f21693b0f974853f8cc81f7189372020f7
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:54:44 +01:00
ji-xuepeng 4af0e56246 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I5be24680943628b2333270959c83c7588a69de69
2017-02-06 21:50:36 +08:00
gengchc2 efb3630537 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: I86fce494838caa5bb664be7f5d5d078c915228c1
2016-12-06 09:33:55 +08:00
Jesse Pretorius ab1684fc9b 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: I464b7a1bb7fc6bc6e90e03b61e250a8ae622035a
2016-10-19 07:46:15 +01:00
Jesse Pretorius e48c1d82d3 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I50721fa9d7f2586ccb80b7dd7a73734e46d6a946
2016-10-05 12:18:59 +01:00
Jesse Pretorius e233ccb459 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: I267aa0887d37f65cd23329b8c214217dbfd024fb
2016-10-04 11:44:47 +01:00
Jesse Pretorius cb06bb2df7 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: Ida6e525e11fc286d37389b78f755915a2dc29043
2016-09-28 11:58:44 +01:00
Kevin Carter d11071f283 Update testing bits for consistency
Change-Id: I70b28988332a8d2073afbd46960582a5780ae48c
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-17 17:14:43 -04:00
Jesse Pretorius b556bbcac0 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: Idf85508e52056230bdadba8bccda936f192fb37e
Related-Bug: #1620849
2016-09-09 10:56:07 +01:00
Kevin Carter 90130c02df 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: Ieb041e94730789fc4cd691276b8d0d86f15669e2
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:38:27 -05:00
Jesse Pretorius 7754422b5e 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: I4ac11e60a2fa3e572b500333ae88dd0b8157cbc7
2016-08-20 16:07:58 +01:00
Jean-Philippe Evrard f85175e596 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: Ifdc2dfd2a7d8ab65dfc0b76e0995443415110ebd
2016-08-11 18:11:59 +01:00
Jesse Pretorius 05ddc8e6fc 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: I845683e494b5be7d7e514c2ee12a0f9c13ce0713
2016-07-25 14:12:52 +01:00
Jesse Pretorius 9fd93c648f 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: Id49b469fcb706da1181a3b65baa130c88b44fe56
2016-07-15 14:05:03 +01:00
Jesse Pretorius cc6cda990f 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: I69ec054bef619170c0c88a7322dd18a8f3517373
Partially-Implements: blueprint osa-install-guide-overhaul
2016-07-13 12:58:12 +01:00
Jesse Pretorius 187fcb1da8 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: Ibe79bcd9f1f3d4499671bf6aade11439fcbf61b8
2016-07-08 13:00:46 +00:00
Travis Truman 3211016ba7 Add human readable logging callback plugin for func testing
This should make it easier to understand check and gate
failures by analyzing the logs.

Change-Id: If2d73ae6cfcb0234be7d121965f7472b367181e7
2016-06-20 12:06:20 -04:00
Jesse Pretorius 7f07374873 Add reno scaffolding for release notes management
Change-Id: Ibbfbf265cced7f57ff0977af60c14ac4dbcfa77f
2016-04-09 19:22:24 +01:00
Jesse Pretorius 2c4cbc8380 Update tox config and add bashate E006, E040 exceptions
This patch updates the tox.ini the same bashate exceptions as are
currently in the OpenStack-Ansible playbook repo.

It also ensures that the linters and all lint targets work
appropriately and normalises the tox.ini configuration to use
uniform formatting.

The use of ansible.cfg is removed as there is no way of being
certain which paths can be used without reverting to an ugly
sed hack in the commands. This is why it is preferred to make
use of environment variables which make use of tox's default
substitutions instead. It's a more reliable way of achieving
the goal for the purpose of gating and testing.

The switch to using a git clone instead of ansible-galaxy to
download the plugins is due to the path spec not being able to
work in Ansible 2.x. [1]

[1] https://github.com/ansible/ansible/issues/13563

Change-Id: I8609aee114468087fe19328e30e60d26628027dc
2016-02-12 12:00:46 +00:00
Jesse Pretorius 4f148f20f3 Revise all lint tests and add consolidated 'linters' tox environment
OpenStack-Infra has requested that lint tests be pipelined into the 'linters'
tox target in order to make more efficient use of nodepool resources.

This patch:

- Ensures that a complete set of lints tests is available in individual
  tox targets.
- Adds a 'linters' target which executes all the other lints tests.

Change-Id: I72f1511fbaf0d970ee9ecaa66e204bd3d925bc99
2016-02-03 12:58:11 +00:00
Paul Belanger bca7bfb998 Switch to testenv:functional
This brings our tox.ini files inline with other OpenStack projects.

Change-Id: Id60d9bc0d5a3dad4946da1b12721203f20df04d7
Depends-On: I376e51824c46f9b5eb4a4cff01aaa176632087dd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-18 15:43:37 -05:00
Andreas Jaeger a3f43b8747 Merge bashate/pep8 lint jobs in common job
Instead of launching two separate build jobs in our CI infrastructure,
one for bashate and one for pep8, launch a single one. While the jobs
are short, the setup of the images takes a long time, so this is
friendlier to our CI infrastructure.

Use the pep8 environment as common lint target and merge the bashate job
into it.

This patch also renamed dev-requirements to test-requirements to bring it
into line with all other OpenStack projects.

Change-Id: Ib2683cba4c4dafa7f8391c51be1c8c5319e79488
2015-12-15 09:33:26 +00:00
Jesse Pretorius 5c42ba7b64 Update run_tests to be more complete
This patch updates the run_tests convenience script to make it
execute all test environments using tox, but also ensures that
all the correct pre-requisites are in place before doing so.

Change-Id: Ib517dade3cbc9b3cb23010a189d36d0d89f975ee
2015-12-09 13:46:11 +00:00
Kevin Carter ed60bae35a
IRR for rsyslog_client
The change moves the role out from the main repo rsyslog_client
repository and into its own standalone repository.

Items within this change:
  * The role has been updated to ensure it runs standalone.
  * Tests added to the role within tox.
  * Functional tests added to the role that can either be run
    via the run_tests.sh script or using tox.
  * dev requirements have been updated for testing usecases.
  * Docs added to both the README.rst file as well as the docs
    folder.

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-11-03 02:27:54 -06:00