* 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
The current behavior of 'genconfig' is writing file
'mistral.conf.sample' directly to the '/etc/mistral' directory. This has
two problems: the /etc/mistral directory may and may not exist; we are
supposed to write a usable configuration file into the '/etc/mistral'
directory instead of a sample file.
This patch redirects the output path to the local 'etc' subdirectory.
Developers/users can then tune and install the configuration file based
on the sample.
Change-Id: I0c75ab9ffc9960ba12ce6f5d725c0c7bb78ef238
Adding the _i18n.py file to use oslo.i18n libraries in mistral.
Also updating the requirements to support i18n.
Change-Id: I942a4f1b4a65a4a607b284dd44be547ae41642ce
Partial-Implements: blueprint mistral-i18n
unit-mysql tests fail during CI gate job. This patch adds coverage
for the unit-mysql.
Change-Id: I973991f45863a0465950776d66b717c5e6edfbf8
Closes-Bug: #1644444
According to the habit of openstack project, the project configuration files
are generally placed in a fixed directory(/etc/project/project.conf).
Change-Id: I028a5d31e1879c4257aa523df6f56eafdb664e0d
Many deprecations are triggered early (on imports, for example).
To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.
Change-Id: Ieb68867726f8959ac5dc0f48fa923281cd2134fa
The directory openstack/common was used to keep codes from
oslo-incubator, we have retired oslo-incubator, so don't use
this directory any more
Change-Id: Id1f9c3eda6a13c3db5173c07f75a4833822631c2
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.
Change-Id: Id6080cf39ff5c50bc85b576247822040ccaae445
Closes-Bug: #1614361
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.
Change-Id: I4bc6f28411b4eee1df62a845e70d24c3cfbf500e
* Before this change method acquire_lock() would override all changes
made for an entity by a concurrent transaction when calling
entity.update() although one line before it should have read this
entity from DB and update only a timestamp to acquire the lock.
The solution is just to append "FOR UPDATE" to an SQL statement
when fetching an entity from DB. In this case we don't need to
artificially update a timestamp at all.
* Unit test for MySQL or Postgres is currently impossible, all unit
tests are run against sqlite
* Adding "PYTHONHASHSEED = 0" into "venv" environment in tox.ini to
prevent sphinx from failing. It should be added to "venv" because
docs building run with command "tox -evenv -- python setup.py build_sphinx".
* Fixed minor style issues
Change-Id: Ia749f397e18e927820ff7ae6bac7d28dc2aa2ba4
The pbr section in setup.cfg is not defined, so the module docs are not being
generated. This causes the 404 when clicking on the ‘Module Index’ link under
the 'Indices and Tables’ section in [0].
[0] http://docs.openstack.org/developer/mistral/
Change-Id: I337e9f6e78257a3e8e9222779dfcd600ba6cebd8
Closes-bug: #1558574
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL. https://wiki.openstack.org/wiki/Python3
And already the infra team and the oslo team are dropping py33
support from their projects.
Change-Id: Idecb51c1cfdbfa15729a7a5ccd0a473e9860f1fe
Closes-Bug: #1526170
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.
This patch fixes this problem.
Change-Id: I65b2d9dbc7fbd883a7c90858bb08056da9d5a14f
This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.
Change-Id: Ia6f81dfd1c6487c293012623a165d9dd474b0f4f
Closes-Bug: #1368661
Improved code style, fixed all H405 (Multi line docstring
summary not separated with an empty line) errors.
Change-Id: I6639a2e1a9dc5d3802cb1bda05c5bf9b302bc82f
- access to the "openstack_citest" db under the "openstack_citest" user
in case if tests run on Jenkins gate, do not run commands under the
'sudo' because sudo access is revoked on Jenkins gates
- add one more argument that determines in how many threads tests will be run
(by default tests will be run in 1 thread, otherwise tests fail because of
incorrect cleanup mechanism in unit tests)
Change-Id: If332e8661f9309f71a3a0174144026de99df463e