Commit Graph

43 Commits

Author SHA1 Message Date
Dariusz Smigiel 395d70f086 Revert "cleanup setup.py config"
This reverts commit 6c976e61a9.

Reason for revert:
Removal of setup.py caused problems with installation in tripleo-quickstart:

2022-03-31 16:20:19.128604 | primary | ERROR: openstack-ansible-os_tempest from file:///home/zuul/src/opendev.org//openstack/openstack-ansible-os_tempest/#egg=openstack-ansible-os_tempest (from -r quickstart-extras-requirements.txt (line 5)) does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

Disable setuptools auto discovery

Jobs are broken due to a release of setuptools 61.0 introducing
non-backwards compatible breaking changes [1]

Setting py_modules to an empty string here will disable autodiscovery
and should permit jobs to run as before.

[1] https://github.com/pypa/setuptools/issues/3197

Signed-off-by: Neil Hanlon <neil@shrug.pw>

Change-Id: I8ee5fa36a6b0cbce2d1811d9f40202fd083e4767
2022-03-31 17:07:05 -04:00
Marc Gariepy 6c976e61a9 cleanup setup.py config
Change-Id: I1a857edf7d84f02e440703d3fa5295519661efae
2022-03-31 10:43:20 -04:00
likui 3886d17a9e 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: I4b6a73eb0cacadc291fa272f6e088d6d59914ce9
2021-07-03 21:32:29 +08:00
zhoulinhui 8fc16df8c0 Replace deprecated UPPER_CONSTRAINTS_FILE variable
Change-Id: Ia77ee72f8205b65714f14cf5e0408226a85cdd09
2020-11-10 13:12:08 +08:00
Zuul f5a25a6884 Merge "Enable placeholder openstack-tox-molecule job" 2020-04-23 12:52:59 +00:00
Andreas Jaeger 392552261a 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
- Cleanup doc/source/conf.py to remove now obsolete content.

Change-Id: Id681a9e25b677c687998698c33b4fb0a30d7d202
2020-04-13 20:11:25 +02:00
Sorin Sbarnea 3f4b58bd41 Enable placeholder openstack-tox-molecule job
This sets the molecule framework files and job, so later we can write
tests for the role using it.

Change-Id: I16a67ff8acbadc7dce3746ca2ffc67aed660ed65
2020-03-30 13:14:10 +01:00
Ghanshyam Mann 719a34a4fe [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: Ie6d4d5d86006dfa39645ff072b33a7471e10fc01
2020-03-01 19:23:49 -06:00
jacky06 3513fa26a4 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: I19f60c960ad25e1d5df75e2bc024389e8d64abe9
2019-12-21 00:38:11 +08:00
Dmitriy Rabotyagov 5e554a3fdf 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: Ie3a57163d8c4fc00f3c677a8f6c198095de23756
Story: 2006105
2019-10-18 18:19:59 +03:00
Chandan Kumar ecdc0eedaf Update openstack.org -> opendev.org
It updates the url from git.openstack.org to opendev.org and
also remove cgit from opendev.org.

Keeping vagrantfile, run_tests.sh and bindep.txt as itis
as these are updated automatically by openstack-ansible-tests.

Change-Id: Ia449079776e0339515ae1a2bca7553b03d9cde1c
Signed-off-by: Chandan Kumar <chkumar@redhat.com>
2019-05-30 15:29:22 +05:30
Logan V 62aa6923e6 Adapt tempestconf job to use integrated repo
Adapt the tempestconf job to use a variant of the integrated repo's
AIO test job.

Change-Id: Ib05c78339c25da8b3510f363e710992fd95bbeee
2019-05-27 17:42:33 +00:00
Arx Cruz 456749ef97 Add centos-7 job with support to python-tempestconf
Since os_tempest already have support to python-tempestconf, adding a
job that test it on check and gate.

Change-Id: I2ae6057d197a7f7f40b2bb544dc2381ab8044aed
2018-11-22 10:27:41 +01:00
Zuul 80c7f032d6 Merge "fix tox python3 overrides" 2018-11-13 18:00:37 +00:00
huang.zhiping c77f4ded2a 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: I8fc994880c7ccbe7356e4c6470d28bb925f8c880
Closes-Bug:  #1801657
2018-11-08 13:32:38 +00:00
Chandan Kumar 7e6e614ff0 Added support for installing tempest from distro
In order to consume os_tempest role across different deployment
tools, following changes are introduced:
- tempest_install_method:distro|source through which user can install
  tempest from source as well as distro
- tempest_workspace directory is added as when tempest is installed
  from distro, we need a place where tempest can be executed. It
  generalised the use of tempest_workspace at each place.
- The default location of the default tempest configuration is now
 /etc/tempest/tempest.conf rather than the previous default of
  $HOME/.tempest/etc.

Change-Id: Ie280cfa6b93fa65c56ed98066deb4f9c82a1a8db
2018-10-26 08:19:51 +00:00
Doug Hellmann cdf7f6864f 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: Ib892603c629c09ae9253a25350328d127acf5148
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:44:31 -04:00
Zuul 378638bb7c Merge "fix tox python3 overrides" 2018-08-28 07:04:27 +00:00
Jesse Pretorius b36c0b9236 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: I19fc2e4ee2b16dd3c9343af9caf8ddd452f11125
Needed-By: https://review.openstack.org/579371
2018-08-16 18:26:00 +01:00
Nguyen Hung Phuong 06afc054dd 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: Id03f88fbfa569bac36e61c457f3b8a17218f0519
2018-07-05 09:21:03 +07:00
Jesse Pretorius 6afe814dbf 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: I479efa5547627f70bc41a30641c7e4afb4568fc1
2018-07-01 17:10:20 +01:00
Jesse Pretorius bfd6f455c5 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: Ibfb1b6266f8014a9ac40576f4182279a88791f46
2018-03-28 10:16:37 +01:00
Jesse Pretorius 1cb11c625a 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: I5e9642c77bdb046ea8ef5b7d4bd69d9fcdb7238d
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 18:02:26 +00:00
ZhongShengping d3b3ee4f8c 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: If9004d7215fde0a188f2a86fedfe3460ef748555
2018-03-09 12:01:27 +08:00
Jesse Pretorius cd23c702d1 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: Idcd72a0204f8a008e25386e30f698195efa7eef8
2017-06-04 11:23:09 +01:00
Jesse Pretorius 53a8cea809 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: If75af45f9ebc17b85bbc8aec019714f4a3625753
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:53:32 +01:00
Cao Xuan Hoang 34823718a7 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: Id966d1935b94b7f19bca4987093314e978e9daca
2017-02-06 17:14:03 +07:00
gecong1973 5ef31ccb98 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: I52a2f13c2337ea8ab3b8e8f8c52a7ee1e9b58229
2016-12-05 09:04:49 +08:00
Jesse Pretorius 586ea5955c 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: Id7b1a20bf3a695fa5a2bcdbb02da5af436718590
2016-10-19 07:44:45 +01:00
Jesse Pretorius 7323a6bec2 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: Iea3a6f853b2347b1463644c89136a313711e7785
2016-10-05 19:00:41 +01:00
Jesse Pretorius 1ef1c9f2e0 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: Ieae12c31ff712b6d4285a3389fe4fd7c2d32e511
2016-10-04 11:43:06 +01:00
Andy McCrae 9b7b6ba267 Move tempest to Ansible 2.1.1 and central testing
Move tempest to use the central test repository as well as Ansible
2.1.1.

This mirrors the change made for the openstack-ansible-os_nova role,
whilst keeping tempest running on it's own container for testing
purposes.

Additionally this moves to use the testing scripts to simplify and make
the tox.ini file more uniform.

Co-Authored-By: Travis Truman <travis_truman@cable.comcast.com>
Change-Id: I06771dba022fa91bb0230a7c0ebe6d7872e80004
2016-09-30 09:32:14 +00:00
Jesse Pretorius 7faecd1d26 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: I815d71b01def2b327e1792cf98e2d336c09a5b2d
Related-Bug: #1620849
2016-09-09 10:49:44 +01:00
Kevin Carter a3b77be727 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: I376b5bf2d395314de5ed22489277eacd2fc32839
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:37:36 -05:00
Jesse Pretorius 24de7b1bd3 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: I29a852f67b1649e0cdca96231add1e69c8e5cb24
2016-08-20 16:07:02 +01:00
Jean-Philippe Evrard ca5cda7214 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: I8bdc2891080630a4039f0abc310df378f0482a30
2016-08-11 18:10:41 +01:00
Jesse Pretorius 93c34c3d56 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: I226bbaae1ea047bacbcd7579314bb1de11709ef3
2016-07-25 14:12:00 +01:00
Jesse Pretorius 137844d82c 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: I57641f6829a573f7010e4e0054ecf8d79611a803
2016-07-15 14:03:59 +01:00
Jesse Pretorius 10427ee371 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: I7a79e760fde2cca9295be1e6dea8575ec2f1fc85
Partially-Implements: blueprint osa-install-guide-overhaul
2016-07-13 12:57:11 +01:00
Jesse Pretorius 35324e003b 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: I0652e77ae0556be0499bc253504eee278870e0e3
2016-07-08 13:36:43 +01:00
Matt Thompson ccc4dc5a51 Fix breaking typo and add functional test
Review [1] added a breaking typo to tasks/tempest_install.yml, which
we correct in this commit.

Additionally, this commit adds a functional test to os_tempest role
which deploys os_tempest itself and then runs some arbitrary keystone
tempest tests.  Having this test in place will prevent basic issues
like the one introduced in [1] from being commited.

Note that we deploy galera into a container, however we can probably
skip that.  Having it in a container gives us the ability to easily add
in more services if necessary.  The installation of rabbitmq has been
excluded since that should not be necessary in the context of this
testing.

[1] https://review.openstack.org/#/c/309034/

Change-Id: I144118b5e70f558554107345088cb36693a85e25
2016-04-27 12:49:08 +01:00
Jesse Pretorius 9b224b22de Add reno scaffolding for release notes management
Change-Id: Ic3b376bc4444ab896a56daab589dfb6f354d0b5c
2016-04-09 19:21:29 +01:00
Kevin Carter 7ee029afe9 Implement base configuration for independent repository
Change-Id: I26cea8bede422a5e91ab3443a69fb77f1a7b0fde
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-03-03 13:02:14 +00:00