58 Commits

Author SHA1 Message Date
Jenkins
70e15ddf0c Merge "Add Zaqar installation guide" 2016-06-21 02:05:12 +00:00
Andreas Jaeger
d8cde2ae6b Fix post install jobs
The venv environment is used for post install jobs and thus cannot
currently use constraints, use an unconstraint install command for it.

Example failure:
http://logs.openstack.org/b8/b8a70e4aeca83ebefad4b127af71b1bd125efa40/post/zaqar-branch-tarball/d9fe983/

Change-Id: If6e9f85b3a8b15048453bf1177812fb37a8e2d54
2016-06-16 19:50:57 +02:00
Eva Balycheva
5134d3018b Add Zaqar installation guide
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
2016-06-15 03:15:41 +03:00
Jenkins
4c01f71c3e Merge "Always use pip constraints" 2016-05-31 03:48:17 +00:00
Fei Long Wang
437c26aaee Always use pip constraints
Depends-On: Idffbdc9325868a3dcd6a9bd7f90f030fd52ee0dc
Change-Id: I9f86fa6df33003de213edac8f6da5faad674aa54
2016-05-31 02:41:47 +00:00
Fei Long Wang
da4009d8ad Init commit to add API ref in tree
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
2016-05-30 15:40:10 +12:00
ChangBo Guo(gcb)
592304e0d6 Trivial: remove openstack/common in flake8 exclude list
There is no directory openstack/common any more, so ignore
it.

Change-Id: Ia1bb265a34d64be2d3cb31dbf6b0de42e90ec68a
2016-05-11 13:43:50 +08:00
Matthew Treinish
dce51da5b0
Add zaqar tempest plugin
This commit takes the zaqar tests which previously lived in tempest
and creates an in-tree tempest plugin out of them.

Change-Id: I06053d2d0d761c6398708280f3ef38274dec390c
2016-02-18 20:41:07 -05:00
Jenkins
2145c9bf5a Merge "delete python bytecode before every test run" 2016-01-07 21:32:37 +00:00
Jenkins
12bdaf339e Merge "Deprecated tox -downloadcache option removed" 2016-01-05 00:43:43 +00:00
Ondřej Nový
7fa2f934c6 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Ia80e4e66a30a3f120e19fa7f06339b1fc0c2b1c8
2015-12-11 21:30:19 +01:00
zhang.lei
3c464188fd Put py34 first in the env order of tox
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
2015-12-07 18:39:06 +08:00
Md Nadeem
9471fcfdcb delete python bytecode before every test run
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
2015-12-02 13:48:21 +09:00
Jenkins
740aa9f0c6 Merge "Fix tox not performing some tests in some Envs" 2015-11-18 18:09:44 +00:00
Eva Balycheva
bee3926423 Fix tox not performing some tests in some Envs
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
2015-11-12 01:03:22 +00:00
Fei Long Wang
ffc6ee9d1a Add reno for release notes management
Change-Id: I7c2e03af9175b7a519b69a635edaabfa249032c1
2015-11-09 11:26:47 -03:00
Thomas Herve
5e5eea778f WebSocket functional tests
This adds infrastructure for websocket functional tests, and a new tox
target running them.

Change-Id: Ib4ab6cbaaf4a7295e6a6f2f26b2e9e935e3b88ef
2015-10-15 16:29:07 +02:00
Fei Long Wang
3bb13c4c99 Enable tox debug
Change-Id: I15eb882c2b26adeb65fcc61d2b3711d7246fa0d7
2015-07-31 10:08:27 +12:00
OpenStack Proposal Bot
a29166ebb8 Updated from global requirements
Change-Id: Iaeaca2e9eda607290f18fbb805f1cd90c9af0444
2015-07-07 14:25:36 +02:00
Thomas Herve
85a2f8159f Move functional tests out of tests/
This moves functional tests out of the tests directory and removes it.

blueprint tests-refactoring

Change-Id: I0e0fb4e914ede02ea2f02fa19cf898888f38b57d
2015-06-19 09:55:41 +02:00
Thomas Herve
2b1fb26282 Move transport v2 tests out of tests/
This is the first batch of refactoring to move tests in the zaqar
namespace.

blueprint tests-refactoring
Change-Id: I852114a97ace77efc8d8ed2c874af8913b828fc3
2015-06-04 11:07:07 +02:00
Flavio Percoco
ab74a88503 Update oslo-config-generation code
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
2014-11-17 21:49:53 +01:00
Flavio Percoco
f8dd975b96 Put a cap on our cyclomatic complexity
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
2014-10-17 16:12:44 +02:00
Abhishek Chanda
1913aa0ef6 Remove all traces of nose
- No need to comment code, can be removed
- No need to set variables for code coverage in nose

Change-Id: I45c7ea488c4c2f70060022944bb4f15e7c7b68e2
2014-10-08 15:05:40 -07:00
Jenkins
a9e6a0ef43 Merge "Add genconfig to tox.ini" 2014-09-29 15:59:00 +00:00
Flavio Percoco
9748a489cb Enable ZAQAR_TEST_SLOW for py27
We're testing Mongodb for py27 jobs, use this same gate to run slow
tests.

Change-Id: I202b3ead24a0ba018fcb70b59318751dc0732515
Closes-bug: #1350069
2014-09-22 22:02:34 +02:00
Jeffrey Zhang
cee50931b8 Add genconfig to tox.ini
Change-Id: Id2ce2a263df321ea7049dda1ee4ad5e499a0638c
2014-09-18 00:20:26 +08:00
Clark Boylan
a72a0bd988 Workaround pypy bug on trusty when running tests
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
2014-09-11 13:40:30 -07:00
Jeremy Stanley
a971427e7d Work toward Python 3.4 support and testing
Change-Id: I9ff54c627308c3f7f864891bb9a068c8b52f955d
2014-09-03 20:06:17 +00:00
kgriffs
8af8395094 Enable MongoDB tests on py27
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
2014-08-05 10:40:00 -05:00
Flavio Percoco
36e63c9a45 Rename Marconi to Zaqar
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
2014-08-04 10:36:50 +02:00
Victoria Martínez de la Cruz
ddabc98a99 Drop pylint due to the huge amount of false positives
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
2014-07-13 20:03:52 -03:00
Flavio Percoco
ef9d5247e9 Switch over oslo.i18n
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
2014-07-09 15:39:54 +02:00
Alex Gaynor
366d9b578d Removed now unnecesary workaround for PyPy
Change-Id: I259d5b779117e22869ea53b4208acc3ac1232689
2014-06-04 13:24:14 +00:00
Nataliia Uvarova
1dce3fe738 Add separate requirements file for Python 3
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
2014-05-21 16:58:14 +02:00
Joe Gordon
da0a33a85a Add specific doc build option and gate on warnings
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
2014-04-02 17:24:38 -07:00
Alejandro Cabrera
dc7adefc82 fix(gate): one for pypy, one for docs
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
2014-03-18 12:50:43 -04:00
kgriffs
e4d0451fb2 chore: Add pylint envs
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
2014-01-23 12:21:07 -06:00
Flavio Percoco
e82e5fe3c0 Use testr instead of nosetest
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
2014-01-17 15:43:49 +01:00
Flavio Percoco
b068ccbf74 Remove __MARCONI_SETUP__
The built-in Marconi used to use to track the service bootstrap process,
is not needed anymore. This patch removes it.

Change-Id: Ia599bd07006306a5b6368d52cd8548cb50b3d01e
2014-01-09 16:43:09 +01:00
Flavio Percoco
eef012d4c4 Remove gettext magic and import _ explicitly
Instead of magically loading `_` into python built-in globals, import it
explicitly where needed.

Partially-implements: py3k-support
Change-Id: Icfedf9f86ead81bbee038506a91c456907af0d05
2013-12-09 17:40:08 +01:00
Monty Taylor
af7c1bc13d Update pbr and requirements to be current
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
2013-09-18 07:55:39 -07:00
Flaper Fesp
0a03263154 Make tox use develop instead of sdist
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
2013-09-05 17:12:13 +02:00
Alex Gaynor
8e43a9adcb Added a PyPy env to tox
Change-Id: I518256f0a8a3e581c3d6f6f065c9b89adc8223f2
2013-08-18 13:07:16 -07:00
Alejandro Cabrera
a04c68f3e7 Gate on Python 3.3
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
2013-08-01 16:17:31 -04:00
Flaper Fesp
1ca46da302 Handle AutoReconnect errors.
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
2013-07-10 19:13:47 +02:00
Flaper Fesp
4af003d8d5 Rename pip-requires / test-requires into (test-)requirements.txt
Change-Id: Ica6e7da1f7ed9f9fd62302d73309630aa536116d
2013-06-14 14:25:18 +02:00
Flaper Fesp
802a37c568 Migrate to pbr
Change-Id: I0d5888f9d58d819ac65561b222cb2e93f260d627
2013-06-14 14:14:42 +02:00
kgriffs
a556f392c5 style: Fix flake8 and hacking errors
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
2013-05-07 09:31:20 -04:00
kgriffs
6ea84355c3 style: Migrate to the new hacking package on pypi
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
2013-05-06 10:44:21 -04:00