Commit Graph

61 Commits

Author SHA1 Message Date
Hongbin Lu 7fce4cd925 Fix tox4 error
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
2023-02-25 05:32:45 +00:00
niuke 4daa56797d Use TOX_CONSTRAINTS_FILE
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
2022-07-26 17:15:05 +08:00
Ghanshyam Mann f73cad3277 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I5c7e56384172751411ecf0394884feda1cfc3a3f
2022-04-30 20:20:09 -05:00
Maysa Macedo 8f78668092 Add doc/requirements
Specify doc requirements needs to be moved out from
test-requirements.txt to in doc/requirements.txt
to avoid problems with the pip resolver as announced by
the release team [1].

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html

Change-Id: Iac9a3421c23370f19f57d6aa84c2862ccfce2a94
2021-01-05 23:03:40 -03:00
Maysa Macedo e7bc12e5cb Fix lower-constraints job
This commit upgrades versions of kuryr-lib, MarkupSafe and
pyroute, which were required for the new pip resolver.

Change-Id: I214bcb70d05c871dc7e35ce1d0d861911f728650
2021-01-05 22:42:22 -03:00
Ghanshyam Mann 29342ddf6f Run fullstack jobs on available python
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
2020-09-22 20:25:01 +00:00
Zuul c587fc063d Merge "bump py37 to py38 in tox.ini" 2020-09-19 14:18:09 +00:00
zhoulinhui 1fd18abbc0 Clean debug-py35 up from tox.ini
kuryr-libnetwork require python >= 3.6[1], so the debug-py35 is stale and
should be removed

[1]: https://github.com/openstack/kuryr-libnetwork/blob/master/setup.cfg#L9

Change-Id: I145008bae1789284ff6850b8c0c5f47c274ccf5a
2020-09-18 22:45:12 +08:00
zhoulinhui 1c0e6f8e45 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

Change-Id: Ice109d685d1d74951694caef0c29c656f313abe9
2020-09-18 00:43:48 +08:00
jacky06 036703c8d4 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I71b869fc509cb46b55b1e88fae20422bcba085f7
2020-05-23 00:03:51 +00:00
gujin 910f2e72db Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org counterparts.

Change-Id: Ia04c82127761ee818a37efe6cf9137987f8262f8
2020-05-17 04:38:56 +00:00
Andreas Jaeger d63d664b28 Fix doc building
Use sphinx-build, this fixes doc building so that the generated content
is available for publishing again.

(change I0dbb13d555eb473916ba585c62a0f7433d15afed broke this)

Change-Id: Ib7c6b7437abc0b5c500a5afdaaf79a045f7df9fe
2020-04-06 14:48:39 +02:00
Ghanshyam Mann 46e1cbfc39 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

kuryr-libnetwork is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I3776d17e05b565e05f84266eef0df15374a43a89
2019-11-16 17:10:37 +00:00
Corey Bryant 86b6bf3432 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Id4296e5cb3556d7568bcdb267d4dbd156815a24b
Story: #2005924
Task: #34217
2019-07-05 11:41:55 -04:00
Ghanshyam Mann ca8160ea7b Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I3548290d55fda3a1192fcefb3019c35f60d5b751
2019-04-15 18:38:09 +00:00
Hongbin Lu 755e7c0c48 Fix an issue on running subset of tests
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
2018-10-29 03:21:59 +00:00
huang.zhiping f891d1b6c8 fix tox python3 overrides
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
2018-06-09 09:55:50 +08:00
Hongbin Lu 47a4d9a339 Support running subset of unit tests
Change-Id: I1d5a2fe244081a33ebb1741cb4872d43e84c299b
Closes-Bug: #1766012
2018-04-21 20:31:41 +00:00
Doug Hellmann bf529e0d25 add lower-constraints job
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>
2018-04-15 23:49:43 +00:00
Kien Nguyen 0a4fefc3ff Fix coverage test
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
2017-09-26 13:41:42 +07:00
Kirill Zaitsev 5cc622f42a Enforce multiple previously ignored pep8 rules
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
2017-07-05 13:25:32 +03:00
Jenkins 1f0d06c9f7 Merge "Remove subunit-trace fork" 2017-04-17 16:47:13 +00:00
Jenkins e7cbc24326 Merge "delete unused log translations in kuryr_libnetwork" 2017-04-15 07:35:13 +00:00
gecong1973 793a6e52b1 delete unused log translations in kuryr_libnetwork
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
2017-04-13 00:42:34 +00:00
Ihar Hrachyshka 6fba95f424 Remove subunit-trace fork
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
2017-04-06 11:47:15 -07:00
gecong1973 a29bc6c36a Remove support for py34
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
2017-03-28 09:51:52 +08:00
Dongcan Ye 1fd2101fa8 Pass located tests directory in oslo debug
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
2017-02-22 00:08:31 +08:00
Darla Ahlert a2218002db Add reno support to kuryr-libnetwork
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
2017-02-06 09:30:43 -06:00
xhzhf 99ac3b09a8 H402 hacking have been deprecated
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
2017-01-04 18:52:17 +08:00
Jenkins 401eb3744b Merge "fix tox -e genconfig" 2016-12-13 06:04:16 +00:00
Jenkins 810895d69c Merge "Using import_exceptions from kuryr-lib" 2016-12-11 07:52:45 +00:00
janonymous 3a33edba25 fix tox -e genconfig
Change-Id: I0a7bc3ebf99f4a09aa8cbdf675e577c1e2a2d744
2016-12-08 14:49:54 +05:30
Jenkins 9cab12a819 Merge "Fullstack: Using the credentials from openrc config file" 2016-11-23 10:45:30 +00:00
Dongcan Ye 465ab9b5d6 Fullstack: Using the credentials from openrc config file
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
2016-11-23 14:24:35 +08:00
Dongcan Ye 9f525a0f34 Bump tox min version to 2.3.1
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
2016-11-21 15:39:09 +08:00
Dongcan Ye fa7f51f1fe Using import_exceptions from kuryr-lib
Change-Id: Iae6cca20a4ef87c242e913fcd1d841d7f80362c2
2016-11-17 15:48:07 +08:00
Liping Mao 5485c247d4 Fix tox -e cover in kuryr-libnetwork
Change-Id: I175a5d3d8190a278aa82b659c65de63dbf8dbdc2
Closes-bug: #1628843
2016-09-30 08:57:55 +08:00
Antoni Segura Puimedon ab74856557
tox: Install like other OpenStack projects
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>
2016-09-27 11:22:55 +02:00
Jenkins cf95317806 Merge "Remove pep8 exclusion for VMware" 2016-08-18 16:54:40 +00:00
Dongcan Ye ecedb162d4 Remove pep8 exclusion for VMware
Neutron VMware code had split off from Neutron code repo, so we
can remove this exclude.

TrivialFix

Change-Id: I77f81510cb476149816c2307d8e603b352660566
2016-08-10 11:08:59 +08:00
Henry Gessau c654768ed3 Enable DeprecationWarning in test environments
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
2016-08-09 19:48:22 -04:00
Liping Mao 64e20aa113 Add Python 3.5 classifier and venv
As kuryr-libnetwork has passed py35 test.
Do same thing in kuryr-libnetwork:
https://review.openstack.org/#/c/341891/

Change-Id: I009bb50aab6b4dbe9aabbd1147c9ce0d515f71a8
Closed-Bug: #1604180
2016-07-19 06:45:45 +08:00
Liping Mao 6ff2f4ef9b Update kuryr/tests to kuryr_libnetwork/tests in all files.
Change-Id: I0a3c5d74f5ef008d759d37c57ff24bd3a70c9d51
Closed-Bug: #1603457
2016-07-16 00:14:04 +08:00
Doug Wiegley 73043cdab2 Switch to using hacking checks from neutron-lib
Temporarily comment out the 'no neutron' check.

Change-Id: I8da2a5259528d05d58e2b6aa2fc34e3e0ae128a7
Partially-Implements: blueprint neutron-lib
2016-04-24 23:21:10 -05:00
Jenkins 0918ab8741 Merge "Support py34 in Kuryr" 2016-02-10 06:58:40 +00:00
Jenkins 2dd17902c6 Merge "Add debug testenv in tox" 2016-02-09 04:04:38 +00:00
reedip 6299860840 Support py34 in Kuryr
The following patch introduces py34 in tox and updates
the test cases to support py34 related changes.

Change-Id: I5739cc1e3e42b10224c75fc3f936708c87574107
Closes-Bug: #1532141
2016-01-29 08:04:15 +00:00
reedip 382e1d4b32 Add report to coverage
The following patch is a trivial fix and adds
report to the coverage output.

TrivialFix

Change-Id: Id665a07f590d85d4f7233fe513a841222c85c307
2016-01-26 09:41:15 +09:00
caoyue 8727ac6432 Add debug testenv in tox
Once we add debug testenv, we can use "tox -e debug -- --debug"
to debug test cases when tox is running.

Change-Id: I7eb11806c1bf8d2fd1fccf2e84ce92ce197b3842
2016-01-18 14:29:16 +08:00
LiuNanke b071d75ed7 Clean up removed hacking rule from [flake8] ignore lists
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
2016-01-14 17:04:44 +08:00