This patch adds Zaqar-specific contents of the OpenStack Installation
Guide in the Zaqar repository per [1]. It only covers installation on
Red Hat-based systems.
Also this patch adds tox.ini environment for install-guide and adds
openstackdocs-theme to test-requirements.txt.
The Zaqar Installation Guide structure is based on Install Guide
Cookiecutter: https://review.openstack.org/#/c/314229/.
[1] http://specs.openstack.org/openstack/docs-specs/specs/newton/project-specific-installguides.html
Change-Id: I72300c146b22511da4432775fc84e8c821a3fd12
Implements: blueprint install-guide-in-tree
Partially-Implements: blueprint projectspecificinstallguides
This patches adds the basic architecture to adopt api ref in tree
and a new tox command to build api ref for testing.
A new api ref gate job will be added to verify the format which
will be tracked by another commit against project-config.
blueprint: api-ref-in-tree
Change-Id: Idffbdc9325868a3dcd6a9bd7f90f030fd52ee0dc
This commit takes the zaqar tests which previously lived in tempest
and creates an in-tree tempest plugin out of them.
Change-Id: I06053d2d0d761c6398708280f3ef38274dec390c
To solve the problem of "db type could not be determined" on py34
we have to run first the py34 env to, then, run py27. This patch
puts py34 first on the tox.ini list of envs to avoid this problem
to happen.
Change-Id: Iabc31bfa508fbf4fad19bd0f09f389a8d3f52865
Closes-bug: #1489059
Bring over the cleaning line from run_tests.sh for the pyc files to
all the tox runs.
This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.
Change-Id: I62b9029b984300194a00318de9a0111791bab07e
Closes-Bug: #1368661
Many tests are being skipped while testing using tox in some
environments.
That's because some important environment variables are not defined for
these environments:
pypy, py34.
The variables are:
ZAQAR_TEST_MONGODB=1
ZAQAR_TEST_SLOW=1
This change defines these environment variables in tox.ini. And not only
for the few environments that need such variables, but for all
environments. Because it's the most simple way to do it in which I see
no harm.
Also this change deletes deprecated python environments (py26 and py33)
from the list of environments.
Depends-On: I37937ffe9b71323a92880f678e84c7c24e6872d6
Change-Id: I3a8cef038ed9a37c8dc29850dfdda31b72c05883
Closes-Bug: 1508519
This moves functional tests out of the tests directory and removes it.
blueprint tests-refactoring
Change-Id: I0e0fb4e914ede02ea2f02fa19cf898888f38b57d
This is the first batch of refactoring to move tests in the zaqar
namespace.
blueprint tests-refactoring
Change-Id: I852114a97ace77efc8d8ed2c874af8913b828fc3
Oslo's config generator has been moved under oslo.config, which doesn't
require using a bash script anymore.
The patch removes the old scripts and updates the generation task in
tox.ini
Closes-bug: #1373800
Change-Id: Ia757b0d141f8557144108d386496d1e9bfc7333f
flake8 has support for cyclomatic complexity (Mccabe) currently our
worst offender has a complexity of 15 (25 is considered very bad). So
set our max-complexity to 16 so we at least don't make things any worse.
https://github.com/flintwork/mccabe
Change-Id: Ied156f42aaee351f0023ea7dc38bb307ccdbf098
https://bitbucket.org/pypy/pypy/issue/1694/ affects zaqar when running
pypy tests on trusty slave nodes. We can work around that bug by setting
--jit off when running the pypy interpreter. Do this until the upstream
bug fix is backported into trusty.
Change-Id: Iebaa167e9e12bbc1017371929ca8c182bacc2aad
Related-Bug: 1368418
This patch sets the ZAQAR_TEST_MONGODB env variable just for
the py27 test. We would enable it for all envs, but only the
py27 gate has a recent enough version of MongoDB available.
We considered automatically detecting the mongo version in
code and skipping tests if the version was incompatible, but
that proved to be problematic since stevedore masks
exceptions that get raised by a driver class' __init__
method.
Change-Id: Ib751048a9ed1d7bb33ef80a5ed9e9cf7bdf71d57
This patch renames every package, file, match of Marconi in the codebase
to Zaqar *except* for the .gitreview file, which will have to be updated
*after* I8e587af588d9be0b5ebbab4b0f729b106a2ae537 lands.
Implements blueprint: project-rename
Change-Id: I63cf2c680cead4641f3e430af379452058bce5b3
Given that pylint is raising a lot of false positives
and that we have alternative static code checkers,
we decided to remove pylint from the tox envlist.
This patch also fix some pylint true positives
and cleans up the disabled pylint tests in the codebase.
Change-Id: I6fb4b9b4c80af452796032736e39ef064b9bcd03
Closes-Bug: #1297994
oslo.i18n has recently been released. This patch switches marconi over
oslo.i18n. As per oslo.i18n's instructions, a new i18n module has been
added under marconi. This module defines the translation globals and
imports the necessary functions from oslo.i18n.
The patch doesn't change the way Marconi does translation, this means
that a `_` function is still being injected to the builtins.
Note that the gettextutils module is still a required module from
oslo-inc because there are oslo-inc modules that depend on the old
gettextutils module.
Closes-bug: #1314300
Change-Id: Ifb8f3296d1a0e2483ebd1c8d868b7359ecc99fb5
Separate requirements-py3.txt file allows to specify different
dependency list for python 3. For example, now python-memcached doesn't
support py3k and some other dependencies may appear later. Also tox.ini
was changed to use proper requirements file for py33 testenv.
Partially-implements: blueprint py3k-support
Change-Id: I55aa0e3364124f27532465fcaa0b9316c7dc67e6
Add doc venv to align with other OpenStack projejcts (such as keystone,
heat and nova-specs) who are using 'docs' for there doc builds. Also
enable warnerrors in pbr to raise an error if there are any docs
formatting warnings.
Change-Id: Ifa31edf3c3392106a8aa1352bdd557bde2f1b9a1
Drop the version requirement for setuptools w/ tox:pypy to workaround:
https://bugs.launchpad.net/openstack-ci/+bug/1290562
Also add in sphinx-reqs to make the docs gate happy.
Change-Id: I5ac510373809733129401b51ad39579d2963fab2
This patch adds lint2 and lint3 testenvs to tox.ini for running pylint
under Python 2.7 and Python 3.3, respectively.
Change-Id: Ia73ce61fc19b0e30a6de5ad90236d41dbbf33125
This patch removes the dependency on nosetest and uses testrepository as
a test runner. There are some advantages behind this change:
- Better tests execution
- Better tests concurrency
- Less dependencies
Change-Id: I1985bdf03137d32a0774321d8dec5cb015dc9d2f
The built-in Marconi used to use to track the service bootstrap process,
is not needed anymore. This patch removes it.
Change-Id: Ia599bd07006306a5b6368d52cd8548cb50b3d01e
Instead of magically loading `_` into python built-in globals, import it
explicitly where needed.
Partially-implements: py3k-support
Change-Id: Icfedf9f86ead81bbee038506a91c456907af0d05
The usage of pbr and the rest of the requirements need to be update to
be up to date with modern usage.
Change-Id: I7dd4c6d6f6721205a293d427851733a0391ea72e
tox 1.6 was released, which means that we can now take advantage of the
feature we added to it - which is using setup.py develop to install the
code into the virtualenv. The logic was taken from run_tests.sh - so the
performance issues around using tox vs. using install_venv should now be
gone.
This patch requires tox >=1.6.
Change-Id: I505fb530e8047f478e98ce2fd6c01776b147d87f
This makes OS-jenkins run our tests in Python 3.3 mode in addition to
Python 2.6 and Python 2.7.
Rationale: keep our Python 3 compatibility high
Change-Id: Ia4c2964f7cc2a8e5ec0b47818698a96ec93fc892
AutoReconnect errors are not being handled and so, propagated to the client.
This patch adds a safe_call decorator. The purpose of safe_call is to catch
ConnectionFailure and raise a ConnectionError instead. Future patches will make
the transport catch ConnectionError and handle it correctly instead of
propagating it to the client.
All storage back-end should support this.
Fixes bug: #1169821
Change-Id: I523232a7cefbd00082447403ceb3abada9af6db3
In the interest of conforming to the de-facto coding standard for
OpenStack projects, this patch enables all checks for flake8 and
hacking, plus fixes everything reported.
Also, several docstrings were edited for clarity and grammar.
Change-Id: If85c4e420811b6df8eb55de1b5f07a0a8acfceff
Implements: blueprint grizzly-debt
This removes the cloned Nova hacking.py in favor of the new OpenStack
hacking package on pypi. The new hacking module is a flake8 extension,
so running pep8 separately is no longer needed, and has been removed.
Note that some errors are currently being ignored; those will be fixed
in a followup patch.
Implements: blueprint grizzly-debt
Change-Id: I9d34b21d872a872b8c927717367023d3214ff38d