Commit Graph

22 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 2a6c571078 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: I2b9d561d7e7a63c3540197b4ebc58f1e5b8846ec
2022-12-27 17:53:17 +01:00
melissaml b607144325 Cleanup py27 support
This repo is now testing only with Python
3, so let's make
a few cleanups:
- remove setup*, those are not needed for this repo.
- remove install_cmd, the default is fine, move
  constraints into deps, cleanup tox.ini
- Cleanup doc/source/conf.py to remove now
  obsolete content.

Change-Id: I3550a227e0a6a90bc276ed954c58c6fb9a73e4ad
2020-04-27 19:47:46 +02:00
Ghanshyam Mann 0db295913d [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

openstack-ansible repos need few updates on requirements
file.

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: I6fdb4a3498bc1d791d32dc2c11b515f32368e587
2020-03-02 20:32:26 +00:00
jacky06 0b8233bc44 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: I792d057fab99ed6226a10d8912be274a7192c2b1
2019-10-23 15:59:38 +00:00
pengyuesheng 8e64de671a Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I7bdbb962273a821f6a7a944827d67c37b19c4938
2019-09-26 10:45:03 +08:00
melissaml 87cbdd6649 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I790c1876a3e44da8623c74632332f0e453dce1f6
2019-07-09 16:36:22 +00:00
huang.zhiping da254f1845 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: I66c21e3cf648dc5fcb83a9302d235c546d502305
Closes-Bug:  #1801657
2019-04-13 23:35:35 +00:00
Mohammed Naser cc4b993b21 doc: drop release notes + fix sphinxmark
The ops repo isn't really software.   It's a collection of playbooks
that we share between operators, therefore, release notes are a bit
confusing because there are so many playbooks inside of it.

They're also broken because of how we have a few links all over the
place.  There has been no release notes published either.

sphinxmark is no longer compatible with the latest release of Sphinx
which is causing all of our documentation jobs to fail.  This patch
removes it as our current usage of openstacktheme for documentation
already provides watermarks for current branch and notices for which
branch the documentation covers.

Change-Id: I521647c999e7dc17ba27f02bc5bccd422d97ab9a
Closes-Bug: #1824664
2019-04-13 19:34:04 -04:00
Jesse Pretorius f8e94f75c8 Remove non-existant 'functional' test
There is no 'functional' tox env, so the 'functional'
test run by zuul re-runs lint again. Rather than waste
resources we remove the common template and just add
the linters job.

Change-Id: Ibb5152b4d7f731aebbeab46ac4ccd38658cd30a1
2018-11-28 16:44:28 +00:00
Doug Hellmann 4fe837b26c 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: Id8547917da6ffae8b4967ff90d9989f79734ce6f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:42:40 -04:00
Jesse Pretorius a47369fad5 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: I4a101851d656e5dce3a2cc9eb5d5508b46953c4b
Needed-By: https://review.openstack.org/579371
2018-08-16 15:29:27 +01:00
Heba Naser c9a2035972 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: Ib03a2836de7271dcbccab7a0742ed98515de859b
2018-07-02 12:26:40 -04:00
Jesse Pretorius 7ff76c41b4 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: I7e3426e483e0a312ae838155788c1ec4b960559a
2018-03-28 10:28:54 +01:00
Jesse Pretorius ef4b673a84 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: Id6d47779821d101bc504fd9e23e7a7ec29da3f7b
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 17:57:29 +00:00
ZhongShengping 5851ac317f 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: Id5641128e637c2767e1ab8758d31663eaa397c41
2018-03-09 12:01:26 +08:00
Jesse Pretorius f0a94da4d3 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: I93a4c523ef01824733f6a28122a3b6f884adb5a6
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 17:13:15 +01:00
gecong1973 00c1e31805 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: I7e6fa8f08fef2cb474811fe2b48fb8e8e626d1c4
2016-12-04 10:31:02 +08:00
Jesse Pretorius 31773b0736 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: Ic24df14a7011dac134059cf32a3952c948af60dc
2016-09-27 17:18:43 +01:00
Jesse Pretorius d195a081fe 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: I91f314367cacdf7e19905a68f437374705398c6b
2016-08-20 16:04:21 +01:00
Jesse Pretorius c81d41edb1 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: I2c3b2cbf692454159fa7a95792d707bd9ea6391c
Partially-Implements: blueprint osa-install-guide-overhaul
2016-07-13 12:54:36 +01:00
Jesse Pretorius a36f0a1e4e 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 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 test requirements are removed as they are not used for
  this repository at this time.

Change-Id: I338eb58dfebe2ac03f7a81dd9e93b057f7e64f73
2016-07-08 12:40:46 +00:00
Jesse Pretorius 0aeb4dfe39 Add base test scaffolding for repo
Change-Id: Ibe08860b69878b809695a48be4a0937b9c548e47
2016-06-14 15:32:40 +00:00