tox.ini started failing with Tox4 which had some
incompatible changes. One of them is due to the
skipsdist = True.
Fixing tox.ini for tox4 changes.
Additional changes:
* zuul: Declare queue at top level
* fix onflicting with base python error
Change-Id: I9f988e485c1c19eca41175e29fc09c1e28d38b06
Tox trying to install latest versions for building releasenotes,
which may not be supported by stable and lower branches,
so should be restricted by respective version's upper-constraints.txt
Depends-On: I89104a009ad9434e49c77afd32080b79412c467d
Change-Id: I5859198c90f63dd5c5d155c2a04130118960ce84
Tox trying to install latest versions for building docs which may
not be supported by stable and lower branches, so should be
restricted by respective version's upper-constraints.txt
Change-Id: I89104a009ad9434e49c77afd32080b79412c467d
in the setup.cfg, there require python >= 3.6[1], so the debug-py35 should be removed
and in 'victoria' cycle , we should test py38 by default
Change-Id: Ie6ff51962da96c518c848a8213c3f4d3a44a80e3
This commit contains the following fixes that unblock the CI:
* Migrate from testrepository to stestr. Most of the OpenStack
projects has done this migration.
* Sync Sphinx requirement.
* Fix coverage job.
Change-Id: Ic85842035d9e049fd47d4842797f0c37dabaa520
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: If807d4aba6e1dac661f6a380f4309d4563510106
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: I941682ba1eff26bbfcb0c119deb7479c92d35be2
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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: I12fe30e11c7462b6cada89b12946c0cd6fae1607
This makes tox use the latest version of the tool from os-testr repo,
which contains some valuable changes, like the one making the gate
fail if for some reason no tests are executed because all of them are
skipped.
Change-Id: If88be4b310d746ccc885e3d0c1db8a4dfabb2a28
According to [1], we can passing a "-t" argument to
oslo_debug_helper to indicate the directory where tests
are located. This will solves ImportError exception.
[1] https://docs.openstack.org/developer/oslotest/features.html
Change-Id: I2848b8c9bdf94e2f9b645d2785e32d888a84636a
Closes-Bug: #1666560
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: Ibdf002a1f66e1cfabf4f5162ba3edd89b196262d
We use passenv in the file, it's introduced in tox 2.0.
We can bump tox min version to 2.3.1 like other projects.
Change-Id: I8eade4b8be041a18189724c5399ab4faf7fdbef2
Closes-Bug: #1643447
Adding releasenotes support to the kuryr project similar
to other OpenStack services.
Co-Authored-By: Jaivish Kothari(janonymous) <janonymous.codevulture@gmail.com>
Change-Id: Ibdbcdbcc15f1d791976d12ea08eefa8f1fa33eba
Closes-Bug: #1620582
Since the kuryr-lib itself is in upper-constraints.txt now, in CI job,
we should remove it from the constraints file before applying it,
otherwise pip will fail due to kuryr-lib version conflict.
Change-Id: Idf66b41809ca6b8860b68c96faa70021dcc88760
Closes-bug: #1631824
We changed the pypi package name to kuryr-lib so we need to give a hint
to testr so it knows where to find the module for coverage.
Closes-bug: #1628843
Change-Id: Ic1a8576a4ced2615152889b7ab742bb00a4ce565
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
We had tools/tox_install.sh for the case we could depend on neutron
which was not on pypi. In the end, we depend only on
python-neutronclient and as such, this workaround is not necessary and
only makes tox slower.
Change-Id: I2df023d97dfb6bbd4b987e98a42b548fc498b237
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
Many deprecations are triggered early (on imports, for example)
before the warnings are enabled by the WarningsFixture in the
base test class.
To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.
Change-Id: Ibad285e0a4a1b1e1078aa396bce3a6604fcd5734
Currently __pycache__ directory, which also holds
python bytecode is not deleted when running tox.
The following patch proposes this trivial fix
TrivialFix
Depends-On: I5739cc1e3e42b10224c75fc3f936708c87574107
Change-Id: Ia6cd2cfe315a4e536871b355c7e87b03b362c4f5
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: Idfd9818434481ede85ff8e746893ac7e27fcb333
The following patch introduces py34 in tox and updates
the test cases to support py34 related changes.
Change-Id: I5739cc1e3e42b10224c75fc3f936708c87574107
Closes-Bug: #1532141
Once we add debug testenv, we can use "tox -e debug -- --debug"
to debug test cases when tox is running.
Change-Id: I7eb11806c1bf8d2fd1fccf2e84ce92ce197b3842
We bump hacking>=0.10.0, and hacking removed some rules, for
the full list of rules please see [1]. So don't need them any more.
Hacking related commits:
Remove H904 in commit b1fe19ebebe47a36b905d709467f5e82521bbd96
Remove H803 in commit f01ce4fd822546cbd52a0aedc49184bddbfe1b10
Remove H307 in commit ec4833b206c23b0b6f9c6b101c70ab925a5e9c67
Remove H305 in commit 8f1fcbdb9aa4fc61349e5e879153c722195b1233
[1]https://github.com/openstack-dev/hacking/blob/master/setup.cfg#L30
Change-Id: I58939d1887bfdbcd77ede14d02a489376bf6fc62
The comment in tox.ini line 36 use full-width quotes between hashtag(#).
I think should replace them with half-width quotes.
Change-Id: I38b09f5de04add396deb969272657f765aece716
Closes-Bug: #1523795
With this patch the tox command only runs the unit tests
at the ./kuryr/tests/unit lib.
Another test job is added for fullstack which is meant to be
run only with a working devstack setup and will run
at the gate with tempest.
You can run the tests there for debugging with 'tox -e fullstack'
implements blueprint: fullstack-testing
Change-Id: Ia646b3f1a2b25f0a7fd4d01ed72ea1b51bb3b21c
Because python creates pyc files during tox runs, certain
changes in the tree, like deletes of files, or switching
branches, can create spurious errors.
Change-Id: I2d0253b0305792862111db8b1e7adc2289863ee3
Closes-Bug: #1368661
There are H405 violation codes.
We need to fix the code for avoiding more violations.
Change-Id: I8084ae4b91961a302b52dc66c3d342be1b753ecc
Closes-Bug: #1521899
Remove the specification in tox.ini that _ is a builtin so that
it will no longer assume that _ does not need to be imported.
This helps ensure that the _ from i18n is used.
Change-Id: Ib701f92ff9d98dfcc655184caebce27ac4ab7bab