Commit Graph

114 Commits

Author SHA1 Message Date
Arnaud Morin c77a51a05a Fix doc builds
A new release of dnspython has been release, which is breaking the docs
tests. See [1]

dnspython is fixed to <2.3.0 in upper-constraints, so we should rely on
requirements.txt from mistral to trigger the correct build.

[1] https://github.com/eventlet/eventlet/issues/781

Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
Change-Id: I5f86f8264792c8e651c0bb2d2f63151657fea1be
2023-01-18 18:02:03 +01:00
Vasudeo Nimbekar b30ff6f955 Update tox.ini to work with tox 4
This change will allow this repo to pass zuul now
that this has merged:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals
Tox 4 Fail on pass_env/passenv entries containing whitespace.
Updated passenv with comma separated values
Closes-Bug: #2000727

Change-Id: I48859d5a1c8242a6a7d049c96f8dcabbf4c7c044
2023-01-02 13:58:55 +05:30
songwenping b2df56e8f9 Dropping lower constraints testing
We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].

I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html

Change-Id: I95a19854bc55d92b63e1a826daf97e8b58711a07
2021-04-25 03:05:32 +00:00
songwenping b1ee134766 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update this at
each new cycle.

Wallaby support officially the following runtimes [1]:
- Python 3.6
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this
version isn't longer officially supported.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: I4b150e3d4156bbfa272afa7affe8ca967ecdeea0
2021-04-20 03:17:28 +00:00
wu.shiming bce0747663 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://review.opendev.org/#/c/722814/

Change-Id: I8fac507bbe0da44248ed0fa0ba66771c2977831c
2020-11-17 13:57:54 +08:00
Corey Bryant 84041d67b4 Monkey patch original current_thread _active
Monkey patch the original current_thread to use the up-to-date _active
global variable. This solution is based on that documented at:
https://github.com/eventlet/eventlet/issues/592

Change-Id: I98e80bcbc7637bbb6063935043e530718be87f7b
Closes-Bug: #1863021
2020-05-12 06:23:23 +00:00
Sean McGinnis 99cf8cbaeb
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I444260c25615c23644c5c60e0934f6cbbde07b15
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:43 -05:00
Sean McGinnis a7da00d7e4
Use constraints for docs installs
Current docs target is not using upper-constraints. This adds
constraints enforcement to the dependency installation.

Change-Id: Ibb36389563eee09e278066da99a76694216ade7e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-08 07:31:45 -05:00
Andreas Jaeger 2c99ddc3ef Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, they are not
needed in installations.

Change-Id: Ia4740a1dc343d7a4a303674d9377bc64f6df762b
2020-04-01 20:01:29 +02:00
Eyal a0663305e5 Update hacking and fix warnings
Change-Id: I47a17e140f1686e901c67c034105eeec1c421ae7
2020-01-02 17:18:38 +02:00
Ghanshyam Mann fa2042a821 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Mistral is ready with python 3 and ok to drop the
python 2.7 support.

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: Ica51b3b36f3784b4b04731406b6bf8320d5de4b8
2019-11-16 14:07:57 +00:00
Zuul f6c2db1a48 Merge "Add pdf build support" 2019-11-14 13:42:56 +00:00
caoyuan 6e89218125 tox: Keeping going with docs
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.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: Ife98c47af59355540fa30d7ca762f857759c1274
2019-10-24 13:20:19 +00:00
Dharmendra 3bedead733 Add pdf build support
For more details, please refer:
https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html

Change-Id: Id3ee99c8793e53b396b80ad02f8bde69aadddc3c
2019-10-22 12:19:46 +00:00
Zuul 61b20e084c Merge "Add Python 3 Train unit tests" 2019-08-16 05:51:15 +00:00
Eyal d8a127abe2 Upgrade hacking
Added some pep exclusion to tox
Change in test the import from pep8 to pycodestyle
needed by the new version of hacking

Change-Id: I61fca207f375f3d43241da59d7c9213ac9401a21
2019-08-06 15:49:13 +03:00
Andreas Jaeger 2c3c3b1b11 Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: Id5f629085e0ecfb4fc75ff82c1ed0283f3d2c490
2019-07-30 19:50:34 +02:00
Corey Bryant 843717a1d5 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ieb3834672827521d209c5963f2bf1a28c26155d4
Story: #2005924
Task: #34222
2019-07-05 12:02:34 -04:00
tonybrad a0cada98e1 Change mistral opendev.org to releases.openstack.org
Change-Id: Ic5faf47b13f38b54d5c9ae2d8476ba86c664b074
2019-06-11 11:09:53 +08:00
zhulingjie 46fd1b8a75 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I52d44a333d2eaa4a2e65c150e3640a4a84e291aa
2019-04-24 15:44:25 +08:00
Ghanshyam Mann c5808e54e0 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I182dbda3e602e15bac229518e3e0704f7ee6a4c9
2019-04-14 23:32:08 +00:00
Dougal Matthews 218ab5a76e Add Python 3.7 to tox
Change-Id: I612dc2beb9ab14c93e4c0dab775e8868a1bd8c45
2019-03-22 11:11:09 +00:00
Zuul 8059723309 Merge "Update min tox version to 2.0" 2018-11-13 10:05:15 +00:00
Sean McGinnis a82c4918a3 Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: Iab0d2a2086cfecb8cc609c11de67ebbfc9d4d7d5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-11-12 08:56:03 +00:00
akhiljain23 b1dd0613c4 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I0bb160bd02b876ed94a3804c88087289f9c3acc2
2018-11-07 07:07:20 +00:00
visnyei 0aa73edbc1 Mistral install guide
First attempt at creating the mistral install guide

Change-Id: I30142b46e36270b573b9ec10201907811040d94b
Signed-off-by: visnyei <andrea.visnyei@nokia.com>
2018-10-19 10:45:29 +02:00
Nguyen Van Trung 64622cff7b Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I25ebe667cce8a2a35f9b119b76bbed7851e458f5
2018-10-09 10:16:17 +07:00
Bob Haddleton aa60f7c194 Add py36 to tox and default to python3 for pep8 and venv
Change-Id: I3fa2748162b67363b62ca445dc1122ce7bf2bb94
2018-08-23 08:31:50 -05:00
Ha Manh Dong a73fa351c8 Fix testenv cover in tox.ini
In [testenv:cover] section, the setenv need add the {[testenv]setenv}
to inherit from the global setenv configuration, and also the $project
shoud be replace to mistral.

Change-Id: I0fd56730cc921da6d177eaa05070decf264a1f18
2018-07-19 11:43:35 +07:00
Nguyen Van Trung 69d34b2e85 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 details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I4dd494a46011aa8547f52b442f9cba4d402fb91a
2018-07-09 14:54:23 +07:00
Doug Hellmann 60fba7239e 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: I23197a23001cd28f7137fa5741a8a7ddcc05c101
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-28 12:46:57 +00:00
Dougal Matthews 96a1bdd68f Add the restructuredtext check to the flake8 job
This follows a recommendation in this thread on openstack-dev.
http://lists.openstack.org/pipermail/openstack-dev/2018-June/131233.html

Change-Id: I76dc4f9ec1b71a5bd4ce1d551d2c96cb98448c3a
2018-06-07 12:45:40 +00:00
Brad P. Crochet 9883814cdc Switch to using stestr
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that

Change-Id: Icd303c37d2371d44726d55c947bbc8b9e99f2a1c
2018-05-30 14:46:25 -04:00
Vitalii Solodilov 5f89e2e71f Added JavaScript evaluator which doesn't require a compilation
* Added new JavaScript evaluator py_mini_racer. Advantages:
    * is distributed as wheel package
    * supports differences platforms
    * live project
* BUILD_V8EVAL was removed because it was replaced by py_mini_racer in
Mistral Docker image
* Added stevedore integration to javascript evaluators
* Refreshed javascript tests. Add test for py_mini_racer evaluator
* Install py_mini_racer library in during mistral test
* Refreshed javascript action doc

Change-Id: Id9d558b9b8374a2c2639e10cb1868f4e67f96e86
Implements: blueprint mistral-add-py-mini-racer-javascript-evaluator
Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
2018-04-23 17:04:18 +00:00
Doug Hellmann b8db6c6bc4 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

Update the lower-bounds for a few dependencies to make the tests pass,
including eventlet and greenlet.

Remove the duplicate dependency on pecan.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I74c7cae0ceccd5aff77d5955c69ca842c598d633
Depends-On: https://review.openstack.org/555034
Depends-On: https://review.openstack.org/555402
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-18 09:54:55 -04:00
Chandan Kumar 4f57c90d69 Remove intree mistral tempest plugin
* https://review.openstack.org/524869 moves the intree mistral
  tempest plugin to a new home openstack/mistral-tempest-plugin
  let's use it.

* It also removed intree mistral tempest plugin as well as fix the
  jobs to use the same.

Change-Id: I28ba8408452637aa093b343441f3715dc4754a3f
2017-12-26 07:49:14 +00:00
Andreas Jaeger d018cd7788
Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: I9298add1f77b56f19f355b19da89f9799d2415c9
2017-12-02 10:43:11 -06:00
Dai Dang Van 49ed570cfe Implement policy in code (1)
This commit prepare for implementing policies in code[1].

Like oslo.config, with oslo.policy, we can define all of
default rules in code base and only change some rules
via policy file. Another thing that we should use yaml
format instead of json format.

[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Change-Id: I2051b6c25333c95aa9ea6786964d4ab710ea93e8
2017-11-27 02:46:32 +00:00
junboli 517f1646d0 Remove build files before run tox doc builder
This may cause build failed if the old build file still existed.
This patch is to remove build files before run tox releasenotes
and docs builder.

Change-Id: Ia36abd03727ff3d71c6c24a71dcd4b5f7dbf9f77
2017-08-22 16:13:13 +08:00
Jenkins a240e9921e Merge "Fix the pep8 commands failed" 2017-08-10 21:06:13 +00:00
junboli a2c1db4b14 Add doc8 rule and check doc/source files
doc8 is a linter for documents and used in openstack-manuals. It is better to enforce
document linters for simple checking. This change is to add doc8 in tox file and fix
line too long in some files.

The current rules are as bellow:
- invalid rst format - D000
- lines should not be longer than 79 characters - D001
- no trailing whitespace - D002
- no tabulation for indentation - D003
- no carriage returns (use unix newlines) - D004
- no newline at end of file - D005

Change-Id: Ibba3f0e1c3f724563deb27bbf4f13a8040799687
Closes-bug: #1709571
2017-08-09 16:50:33 +08:00
junboli f64f6c14ed Fix the pep8 commands failed
* Fix the pep8 commands failed and Enable H904 checks in tox.ini.
* Hacking M331 still has Bug and remove it from HACKING, use H904 instead.

Change-Id: Iaf692bc139b309376917832aaa749cc141c11275
2017-07-27 22:15:12 +08:00
junboli 10814703f2 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: I33f4264ddf79067f75cd5ba87ea08286dd957dc2
2017-07-15 05:39:29 +00:00
Mike Fedosin 2cb36cba73 Fix tox
Now 'tox' command fails because it tries to remove
.testrepository as a regular file, but it's a
directory.

Change-Id: I1be468d6074049b7d40610c10904e9795a3759d5
Closes-bug: #1703205
2017-07-09 15:45:20 +00:00
Sharat Sharma 4ccc3aa8a9 Remove .testrepository directory from testenv
Running py2* post py3* tests results in error like:
db type could not be determined
error: testr failed (3)
ERROR: InvocationError: '/home/xxx/xxx/mistral/.tox/py35/bin/python
       setup.py testr --slowest --testr-args='
ERROR:   py35: commands failed

Removing .testrepository from testenv to resolves this.

Change-Id: Icd3e08dc342c2f9c19b39bd7ee9cfbdeff68a370
2017-06-30 13:56:24 +05:30
Dougal Matthews a4a8e96a97 Force Python 2 for pep8 linting
It will otherwise fail with errors in the tempest tests, as they are not
Python 3 compatible.

Change-Id: I1a023cc58672de2b51da8d30ad621e67d6a93093
2017-05-02 09:04:24 +00:00
Dougal Matthews 28ea6be8df Set the basepython for the venv tox environment
CI uses the venv tox environment to build the documentation. We need to
make sure that Python 2 is used until out docs build correctly under
Python 3.

Change-Id: I1a1d3123f22bf89965eb65e48648aae38cbdd254
2017-04-11 16:11:39 +01:00
Jeremy Liu 97ccad154a Add check for idempotent id in tempest tests
Idempotent id for tempest tests must be unique, as it's used to
trace tests even in the event of refactors. This patch adds a new
check using check-uuid tool from tempest to validate id uniqueness.

Change-Id: I415699d2349ee0c4becfb404c60a06f244f78ba0
2017-04-03 09:42:16 +00:00
Dougal Matthews b27e78676f Force Python 2 for documentation builds
The documentation will fail to build under Python 3 as some of the
Sphinx extensions are not compatible.

Change-Id: Ifefa59bf9d06d4aa84c0a440d2458cc297a50ec2
2017-02-17 13:20:54 +00:00
Jenkins b88700cc3f Merge "Remove support for py34" 2017-02-10 13:03:48 +00:00