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
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>
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>
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
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
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
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
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>
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
First attempt at creating the mistral install guide
Change-Id: I30142b46e36270b573b9ec10201907811040d94b
Signed-off-by: visnyei <andrea.visnyei@nokia.com>
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
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
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>
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that
Change-Id: Icd303c37d2371d44726d55c947bbc8b9e99f2a1c
* 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>
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>
* 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
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
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
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
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
* 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
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
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
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
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
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
The documentation will fail to build under Python 3 as some of the
Sphinx extensions are not compatible.
Change-Id: Ifefa59bf9d06d4aa84c0a440d2458cc297a50ec2
The gating on python 3.4 is restricted to <= Mitaka. This is due
to the change from Ubuntu Trusty to Xenial, where only python3.5
is available. There is no need to continue to keep these settings.
Change-Id: Ic498801532227421c3247ef66eff11377df47795
We were launching the tests using run_tests.sh
with flag 'V' set, which makes the tests beeing run
in the virtualenv. However, the tests are already beeing run
in virtualenv since they are beeing run by tox. So we
basically made virtualenv inside the virtualenv.
Closes-bug: 1659819
Change-Id: If647e44a43e730f00b01c597cde0c2345f8b780f
This commit will add script and coverage config file that will allow to run
non voting coverage job which will detect any changes in the code coverage
for each commit on review.
Change-Id: I624d1228df0adf1f34a498e5e86b6b092e667f5f
This adds the repo for api-ref for mistral api reference. The api
can be documented in the files added.
Change-Id: I624abe6caee01e577ff8cda1660cbd8722856135
Partial-Implements: blueprint mistral-api-ref