Commit Graph

49 Commits

Author SHA1 Message Date
Ghanshyam Mann 77b81a34c6 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: I014744b686c32ad25785a89af3675418d8d2717e
2023-02-16 11:17:06 -08:00
sunxifa 98e079f0d3 Fix tox.ini with tox4
skipsdist setting breaks the docs environment

Change-Id: I778226115c587875e0db995b2641af74a2854015
2023-02-15 21:23:34 -08:00
Zuul 9fc2edcbba Merge "Use py3 as the default runtime for tox" 2021-11-28 06:57:48 +00:00
zhangboye 7cb123374c 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: I91da19bd92fe0205af89f0de0e05a4307994c5ae
2021-04-20 14:22:28 +08:00
wu.shiming 22122575f7 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I9fd924030a0a5dd4852fa8cfd0ca807038090304
2020-11-19 17:47:03 +08:00
wu.shiming eda4054b95 Remove install unnecessary packages
The docs  requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: Ifea731db4ddeef1dc2216bc10182d273e5aceef0
2020-09-15 10:12:28 +08:00
jacky06 f0ac999f1d 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: I9855d7ad0787a0ad456718cafa97044fddc67ac1
2020-05-15 17:11:58 +00:00
Sean McGinnis 3114109124
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I3f05b92adc97ca150157fff0be8649e97f89db99
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:58 -05:00
Ghanshyam Mann 60202d8222 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-senlinclient 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://review.opendev.org/#/c/691178/

Change-Id: Id86de6b06dbbf904976b6c845f6a843bbdd2a91b
2019-12-13 23:43:22 +00:00
Corey Bryant 1845ae410a 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: I74b1e2e1317250ead31fbccb97343e1bf7b7a0cb
Story: #2005924
Task: #34246
2019-07-05 16:11:38 -04:00
chenke dc5f4f8b5d Switch to the new canonical constraints URL on master
Reference:
1. http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html
2. https://github.com/openstack/nova/blob/master/tox.ini#L17

Change-Id: I4f0267e74b90ffbe45a258219bbce927fbc28719
2019-06-29 06:45:03 +00:00
Zuul e86a8cbb4b Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-04-27 05:55:36 +00:00
jacky06 9806db7899 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I754c795e3bcfcc3042b38cb57b01b7207e92083a
2019-04-26 09:25:22 +08:00
Ghanshyam Mann bf3679fd1a 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: Icfbe3a1f3a972d20795d470ffdd0e142209017e2
2019-04-16 17:24:03 +00:00
Vieri 5deedab653 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I519f191381b4eb423cdec72bda2a62106a99c236
2018-10-09 14:05:09 +00:00
Yuanbin.Chen 904314dc5f Add senlinclient support bandit test
Change-Id: Ia4b523147c395d8773d9b103274702ce5aa4325b
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2018-09-10 12:20:36 +08:00
Vu Cong Tuan cf697ba3ec Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I81ec9b4271d40036f0c680d10c481cabfd2245e8
2018-07-13 10:58:42 +07:00
Zuul 571e4415c9 Merge "fix tox python3 overrides" 2018-06-25 00:46:21 +00:00
Zuul f24bb7e9f1 Merge "pypy is no longer supported by oslo libraries" 2018-06-07 01:49:05 +00:00
Doug Hellmann bc64c8fe43 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: If58f9473978c6dd66834cc10e86a1cefc5c34cd2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 17:58:19 -04:00
Saju d4b8b1bc96 pypy is no longer supported by oslo libraries
[1] https://markmail.org/message/gbd4ubmqd7isvzkw

Change-Id: I901b915c3e9704d399e9952907dfbc9884f1ad3c
2018-04-04 10:10:17 +08:00
Zuul 1c7ea31b44 Merge "add lower-constraints job" 2018-03-26 10:13:46 +00:00
Nguyen Hai 07132b21b3 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Remove the '[build_sphinx]' and related [pbr] sections as described in:
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: I293930ebf2bbc5fe0025059e99fa92557c34b2a1
2018-03-24 13:19:53 +09:00
Doug Hellmann 8ef3a1ed02 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: Ib0e088b93c0588c8d083d32e398c3a4b1b7186cf
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 18:03:14 -04:00
Yuanbin.Chen cc62587035 Add basic functional tests
This patch add openstack client call, use openstack client
execute profile, policy, cluster, node, receiver, action,
event list operation.

Change-Id: I7f2a60c276f82ad9afab8130fea73fde078eff07
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2018-01-24 23:55:43 +08:00
Andreas Jaeger cb5a79600d Avoid tox_install.sh for constraints support
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: I960a7906e78b804cbda60ccf5a8a932a0af66aea
2017-12-02 16:59:06 +00:00
tengqm 7cf040ee4a Support to cluster-op and node-op operations
This patch adds support to node-op and cluster-op operations.

Change-Id: I72de19ff5a18bf36eb8d9d2cec2d8d75f47f9f58
2017-06-30 00:38:32 -04:00
blue55 e0e789f636 Enable some off-by-default checks
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None

Change-Id: Ie447f14aed895d58eb27701e55febf548292f63d
2017-06-22 17:08:02 +08:00
Jenkins 29ae502430 Merge "Enable coverage report in console output" 2017-02-15 05:38:50 +00:00
Jenkins fc711427a8 Merge "Add oslo_debug_helper to tox.ini" 2017-02-15 05:38:26 +00:00
Jeremy Liu b660163f93 Enable coverage report in console output
Change-Id: I5d8ae5e0eb3f951807bc800f0f72a696574627a6
2017-02-12 14:50:59 +00:00
jolie c14c8c3905 Add oslo_debug_helper to tox.ini
oslo_debug_helper is used to assist in debugging of python code,
i.e. by adding breakpoints via pdb.

To enable debugging, run tox with the debug environment:
tox -e debug <test_path>

Reference link:
http://docs.openstack.org/developer/oslotest/features.html#debugging-with-oslo-debug-helper

Change-Id: I0439fa7e3923a4d3f8984024f2d4959c38563686
2017-02-10 11:22:51 +08:00
Cao Xuan Hoang 87000d77bd Remove a py34 environment from tox
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: I1a3537f2e07e2e3c1172cb4e0353f9ea859942f9
2017-02-07 13:32:28 +07:00
Tony Breeds a8b04d4a9c Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove python-senlinclient.

Change-Id: I4bd58470b786d92fa39feb0d7623037ab2489cf1
2016-12-23 03:02:03 +00:00
qinchunhua b32463ed6d Delete python bytecode file
This patch delete python bytecode including
pyo before every test run.

Change-Id: I26ca06f305133e27fd3254d67dbad286d62aded4
2016-11-23 09:48:13 +00:00
Lu lei 09a03b3f0b Remove *openstack/common* from flake8 excclude list in tox.ini
The *openstack/common* was used to keep codes from oslo-incubator,
but oslo-incubator was ignore in oslo3.11.0. So I think we needn't
use it any more. Here is the oslo.utils CHANGES link:

http://docs.openstack.org/developer/oslo.utils/history.html

Change-Id: I828fbf5b1ee1435a85ffe5eb2295064b36064295
2016-08-30 14:00:29 +08:00
Jenkins 48cd1eb00d Merge "Add Python 3.5 classifier and venv" 2016-08-02 18:42:47 +00:00
Jenkins 3743dbc8b9 Merge "Update senlinclient for new sdk version" 2016-07-30 15:37:05 +00:00
tengqm dd21b7aa0b Update senlinclient for new sdk version
This patch fixes problem found after sdk version 0.9.1 which includes a
new implementation of senlin cluster resources.

Change-Id: I67b265731f34080df85233dac09c1256f43aecdb
2016-07-29 02:15:56 -04:00
PanFengyun 3595a657c3 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: I130c613af2ecba8015ef8326b53d9cd8719c33c4
2016-07-14 11:16:19 +08:00
Andreas Jaeger 10ac9cb4d7 Remove unused POT file
Translation source files are not needed anymore
in repositories, remove the outdated and unused file.

Update tox.ini file so that tests pass even if there are no pot files i
ntree. See
http://docs.openstack.org/infra/manual/creators.html#checking-translation-imports

Change-Id: Ibb8845ebcb9c07a4c0127520b12d711e0a1baca0
2016-06-06 08:32:15 +02:00
zhurong 31214654ce Add reno for release notes management
An initial patch to add reno and create a base directory for
release notes

Change-Id: I88aa00c28bf9565879fbce4fc854a4b24133ab5a
2016-05-08 09:26:23 -04:00
tengqm 5a6f37ee57 Fix translation setup
This is a fix to the client translation setup based on the global
guidelines [1].

[1]
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html

Change-Id: I1dbdf57f089c39bd82e877649aa23b95298b35ac
2016-02-21 00:18:28 -05:00
Ondřej Nový 249395f8cb 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: I22c434f6c96c369a8357f6bfd3208a1270c2c849
2015-12-11 21:26:22 +01:00
Ethan Lynn 93547a8de5 Add py34 to tox.ini
Add py34 to tox.ini.
if encounter with error 'db type could not be determined',
please remove .testrepository/ and .tox/ first, then run
'tox -e py34'

Change-Id: Ia1ef4464d0c8ac4cae5af0ef608ea1852599c1b3
2015-12-08 01:32:06 +08:00
shu-mutou 0598f6fa8d Remove py26 support
as of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.

Change-Id: I31bb7a18a1793b2664cc924777801e16e4105192
Closes-Bug: 1519510
2015-12-02 17:30:07 +09:00
Haiwei Xu 8dbd410c6e Delete .pyc files before running test
Change-Id: I76cdcaa59362397a4b3e6c29eba7bf312c58504e
Closes-bug: #1516845
2015-11-17 10:40:15 +09:00
tengqm e1139f262f Fix oslo.i18n namespace error 2015-01-19 13:40:24 +08:00
tengqm bc488792d1 Initial version 2015-01-04 17:59:59 +08:00