tox.ini started failing with Tox4 which had some
incompatible changes.
Fixing tox.ini for tox4 changes.
The latest version of docker broke kuryr-libnetwork since
it removes external k/v support. We have to hardcode
to an older version of docker to workaround.
The CI failed to delete subnetpool since the subnet haven't
been deleted yet. This commit also fixed it.
Depends-On: https://review.opendev.org/c/openstack/devstack-plugin-container/+/875113
Change-Id: Id48bb7d92f2f5d9d08b44acf651dbba3bf2e924e
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.
Change-Id: I0be74cd810fce7ac98d97a4d362fc92190721bb5
This commit upgrades versions of kuryr-lib, MarkupSafe and
pyroute, which were required for the new pip resolver.
Change-Id: I214bcb70d05c871dc7e35ce1d0d861911f728650
fullstack jobs via tox env are hardcoded to run on python3.6 which
is not available on all the etsting runtime distro version for example
Ubuntu Focal.
Story: #2007865
Task: #40192
Depends-On: https://review.opendev.org/#/c/734700/
Change-Id: I7dd539f4723983c7a7ddf54f2c3010713d84f257
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: I71b869fc509cb46b55b1e88fae20422bcba085f7
Use sphinx-build, this fixes doc building so that the generated content
is available for publishing again.
(change I0dbb13d555eb473916ba585c62a0f7433d15afed broke this)
Change-Id: Ib7c6b7437abc0b5c500a5afdaaf79a045f7df9fe
It broke after the switching to stestr [1] since stestr doesn't
have the --regex arguments.
[1] https://review.openstack.org/#/c/571471/
Change-Id: Ied13d3c370bba2a18cd54edae0dc80050e87f07e
Closes-Bug: #1800387
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: I78cd11a853bff71e22727561a79b17d3520bd5d6
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: I235adfdf373e3693dc5a83a35ae037e157eca6d2
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
File .testr.conf was removed in patch [1]. It will make the
coverage ci job failed (and tox -ecover also).
This patch will change cover command in tox.ini to fix coverage
test without bring .testr.conf back.
[1] https://review.openstack.org/#/c/504342/
Change-Id: Id9635a42255272396c1a5f45105360325fc74d2e
Closes-Bug: #1719083
This commit removes almost all the pep8 rules from ignore list. Most of
these rules only required minor changes or were redundant and could be
enabled without any changes.
The only rule exclusion left active is E128 to keep the commit small
enough.
Change-Id: Iec4f00cff9e023515082caae525207054341b94b
recent discussions on the ML have led to the decision to eliminate all
translations for messages that are destined for log files but retain
them for messages that are going to be returned as exceptions and
potentially shown to end users via an API. see [1], [2].
This change does that as follows.
1. If a string is being used to generate an exception, it will still be translated.
Still kuryr_libnetwork used _LE, _LW, _LI for these translations
2. If a string is used for a logging message, remove the use of _LE, _LW, _LI.
[1] http://lists.openstack.org/pipermail/openstack-operators/2017-March/012887.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html
Change-Id: Ic2efcea9a1e2e785a8678c86a0b1209d68bb2a1c
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
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: Ia91c276327b09f0448384b1adfcf001b698d87c8
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: Id57f5c09e12410accd72d05250faeb8dd5da7117
Closes-Bug: #1666560
Adding releasenotes support to the kuryr-libnetwork project
similar to other OpenStack services.
Co-Authored-By: Jaivish Kothari(janonymous) <janonymous.codevulture@gmail.com>
Change-Id: I7867456820267f9fa839064533a8f27f165d44a4
Closes-Bug: #1620582
H402 hacking have been removed since hacking 0.10.
https://github.com/openstack-dev/hacking/blob/master/setup.cfg
test-requirements of kuryr-libnetwork require hacking <0.11,>=0.10.0.
So remove H402 ignore statement
Closes-Bug: #1654117
Change-Id: I72c8321c62692d86c8a4b1b3b705440d97d124ef
Add getting credentials from ENV, this requires us source
openrc file in our DevStack or production environment.
Also removing get_neutron_client_from_creds into fullstack
code, keeping or removing it should be discussed.
Change-Id: I10d62368573976725e793e80150ed45074008970
Closes-Bug: #1528019
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: I8de315fb58df5410ef9d3e744a04629fbe7293b7
Closes-Bug: #1643447
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: I558c1dbb2730ef41d3ec7d211f6079f051b53b6d
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
Neutron VMware code had split off from Neutron code repo, so we
can remove this exclude.
TrivialFix
Change-Id: I77f81510cb476149816c2307d8e603b352660566
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: Ifbb4b0bfac3aa146e205726d934d194fea06ff87
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