Commit Graph

52 Commits (master)

Author SHA1 Message Date
niuke bc7e8e329e Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: I0c40b95142eec68a8744360397831c4298eb36b7
2023-08-03 15:23:50 +08:00
Ghanshyam Mann deaf2f4f81 Fix tox4 error
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
2023-01-31 03:29:38 +00:00
Ghanshyam Mann 415a54249b 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.


Change-Id: I3f6d03ce43d5b7d3852d08f8ba91b8dd9023c744
2022-04-30 20:20:15 -05:00
wu.shiming 37f97503a5 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:

Change-Id: Iee16ef748ba15d7cb1d2bf3642fad57de30c8134
2021-09-15 11:16:25 +00:00
wu.shiming 9de711070e Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.


Change-Id: I92c767de854b11672c17c95b2b6893259d4b4ead
2020-11-17 16:10:28 +08:00
zhoulinhui 9d1883001d Reuse the docs deps to benefit from constraints
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
2020-10-06 21:25:33 +08:00
zhoulinhui 61ef41ebf1 Dep's should be restricted by upper-constraints
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
2020-10-06 21:10:58 +08:00
wu.shiming e26113db16 Clean debug-py35 up from tox.ini
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
2020-09-22 14:56:35 +08:00
Ghanshyam Mann 9582fadebb [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Kuryr is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in

Ussuri Communtiy-wide goal:

Change-Id: I6c14fa3b0c3a19b5f50f5d78a43ba060c10de914
2019-11-16 14:32:07 +00:00
pengyuesheng a2bde50b12 Update the constraints url
For more detail, see

Change-Id: I12e448999cf1c6ee6d3ad5190ae0c52e7ee7a263
2019-09-20 16:58:44 +08:00
Zuul dc72cae691 Merge "Add Python 3 Train unit tests" 2019-08-14 13:34:15 +00:00
Hongbin Lu 756849a4e9 Fix kuryr CI
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
2019-07-09 00:40:31 +00:00
Corey Bryant 88821877be 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:

Change-Id: I3c2f26c1199acd5e0dd3663e4b77f3ee1af072c7
Story: #2005924
Task: #34217
2019-07-05 11:39:54 -04:00
Ghanshyam Mann 149cf226a7 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:


Change-Id: Id096210bff56c1e8f7cc9f4321beb7c943bd5473
2019-04-15 18:38:25 +00:00
ZhongShengping 53e240116b add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.


Change-Id: I1403653c88546f95d60e8d1bf764925a452c1f8b
Story: #2004073
Task: #27424
2019-02-20 02:46:36 +00:00
Nguyen Van Trung 72e3217e5e Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:

For more details information, please refer to:

Change-Id: Ia8a5a4eb2770976ac7b3b99c6d32d8aa37cedac7
2018-07-17 08:12:54 +00:00
Doug Hellmann ce39e2aa44 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: If807d4aba6e1dac661f6a380f4309d4563510106
Signed-off-by: Doug Hellmann <>
2018-06-06 15:27:00 -04:00
Doug Hellmann 8f77c47c87 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.

for more details.

Change-Id: I941682ba1eff26bbfcb0c119deb7479c92d35be2
Signed-off-by: Doug Hellmann <>
2018-04-15 23:09:20 +00:00
Andreas Jaeger d317ab8c30 Avoid for constraints support
We do not need, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/ file.

This follows to remove

Change-Id: I12fe30e11c7462b6cada89b12946c0cd6fae1607
2017-12-20 11:44:10 +01:00
Ihar Hrachyshka df8fe545bd 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

Change-Id: If88be4b310d746ccc885e3d0c1db8a4dfabb2a28
2017-04-06 11:36:38 -07:00
Dongcan Ye a0d2e379a8 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.


Change-Id: I2848b8c9bdf94e2f9b645d2785e32d888a84636a
Closes-Bug: #1666560
2017-03-01 17:16:26 +08:00
xhzhf cecb593a3f E128 ignore statement make code unclearly
E128 ignore statement make code unclearly.
we can fix E128 issue.
Closes-Bug: #1651297

Change-Id: I0f38febecffb0dc5f5419b959be5758739d9cde0
2017-02-13 19:40:18 +08:00
Cao Xuan Hoang 10e6cd3f9e 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: Ibdf002a1f66e1cfabf4f5162ba3edd89b196262d
2017-02-08 09:36:50 +07:00
Jenkins bd84c9f281 Merge "Add reno support to kuryr" 2016-12-11 06:30:11 +00:00
gengchc2 007a651554 Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:

Change-Id: Ibf373814f583d90d03130188976d805479d0c320
2016-12-04 11:39:23 +08:00
Dongcan Ye 423dbbc481 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: I8eade4b8be041a18189724c5399ab4faf7fdbef2
Closes-Bug: #1643447
2016-11-21 15:48:22 +08:00
Tin Lam 8440008b19 Add reno support to kuryr
Adding releasenotes support to the kuryr project similar
to other OpenStack services.

Co-Authored-By: Jaivish Kothari(janonymous) <>
Change-Id: Ibdbcdbcc15f1d791976d12ea08eefa8f1fa33eba
Closes-Bug: #1620582
2016-10-12 09:38:04 +05:30
Liping Mao 98e27df5d7 All kuryr-lib CI failed since kuryr-lib add in upper-constraints.txt
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
2016-10-10 10:29:55 +08:00
Antoni Segura Puimedon cae8019e44
tox: fix coverage call
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 <>
2016-09-29 14:04:31 +02:00
Antoni Segura Puimedon e17ecd5b45
tox: Install like other OpenStack projects
We had tools/ 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 <>
2016-09-27 15:51:54 +02:00
Dongcan Ye 2d72a766d0 Remove pep8 exclusion for VMware in Kuryr
Neutron VMware code had split off from Neutron code repo, so we
can remove this exclude.

Change-Id: I567c835ee9c242434a43955f404c7f67a2727920
2016-08-29 16:40:50 +08:00
Henry Gessau a162fde1c1 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: Ibad285e0a4a1b1e1078aa396bce3a6604fcd5734
2016-08-09 19:45:37 -04:00
reedip 46e4a93c8d Remove all bytcode before running tox
Currently __pycache__ directory, which also holds
python bytecode is not deleted when running tox.
The following patch proposes this trivial fix

Depends-On: I5739cc1e3e42b10224c75fc3f936708c87574107
Change-Id: Ia6cd2cfe315a4e536871b355c7e87b03b362c4f5
2016-07-27 12:00:13 +00:00
PanFengyun f6c8674bdb Add Python 3.5 classifier and venv
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
2016-07-14 09:01:12 +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.


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


Change-Id: I58939d1887bfdbcd77ede14d02a489376bf6fc62
2016-01-14 17:04:44 +08:00
Jenkins d35304e5f3 Merge "Delete python bytecode before every test run" 2015-12-10 09:55:48 +00:00
Jenkins 2ca4ce7dcc Merge "Replace full-width quotes with half-width quotes" 2015-12-08 09:07:31 +00:00
kexiaodong 3dccf601a6 Replace full-width quotes with half-width quotes
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
2015-12-08 00:43:05 -08:00
Gal Sagie 0e45ee44f5 Separate unit tests from fullstack tests
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
2015-12-08 09:08:04 +02:00
Kenji Yasui fdb9dbc506 Delete python bytecode before every test run
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
2015-12-07 07:09:09 +00:00
Kenji Yasui de257bf5fc Fix H405 violations
There are H405 violation codes.
We need to fix the code for avoiding more violations.

Change-Id: I8084ae4b91961a302b52dc66c3d342be1b753ecc
Closes-Bug: #1521899
2015-12-07 06:55:00 +00:00
Jenkins 096bb096c3 Merge "Activate pep8 check that _ is imported" 2015-09-17 08:47:51 +00:00
Mohammad Banikazemi 7301bf2122 Adding configurations for Kuryr
Partially Implements blueprint kuryr-config

Change-Id: I66738833ce14275f4ca647724bd695a69c7c0380
2015-09-17 02:50:45 -04:00
Gal Sagie e4e29c446f Activate pep8 check that _ is imported
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
2015-09-17 08:10:54 +03:00