This was taken from the nova project, fast8 will allow running flake8
tests on a subset of changes (only HEAD) which is quicker.
Change-Id: I9069edad75befcd4995a1c23924e2856da56c216
Signed-off-by: Arnaud M <arnaud.morin@gmail.com>
* Upgrade tox to a newer version (a least 3.18.0 like nova)
* Stop using run_tests.sh (use prepare_db.sh and stestr directly)
* Add venv and mistral.log in gitignore
Change-Id: I71c206aadc4133932fb591376b020a39a78d837d
Signed-off-by: Arnaud M <arnaud.morin@gmail.com>
We recently had two issues in CI, this commit tries to fix them.
Closes-Bug: #2051040
Change-Id: I05d850344c653bc858b4565673606531da803342
Signed-off-by: Arnaud M <arnaud.morin@gmail.com>
BonneNuitLesPetits
Change-Id: Ife23f809674dfaaa83fb752c22d77bcc30aa044e
... because these rules are no longer valid since usage of six library
was removed[1].
This also removes the remaining implementations to keep compatibility
with Python 2.
[1] 4bc6162515f352af1fb1060ff337bce206cb2831
Change-Id: If93609a56e341ff313063c0aa069d140528257b0
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
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
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
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