Commit Graph

28 Commits

Author SHA1 Message Date
Takashi Kajinami dd24451902 Display coverage report
... for easy reference. Also make sure old data is purged.

Change-Id: I1420e5cc1bc12a92596b497795e895c90d0f4d41
2024-02-07 14:18:52 +09:00
Takashi Kajinami 33e6f86e13 Remove old directory from exclude
The openstack directory no longer exists, after refactoring.

Change-Id: I991319689a6221b2f376a244ee14c90c91f3787d
2023-11-28 23:05:35 +09:00
Takashi Kajinami 76173d84d6 Update python job template
... and supported python runtime versions.

This also makes some changes in tox.ini to adapt to tox 4.

Change-Id: Icc6d7ced31b2e8bd80c6dd52ca54437e5aa35940
2023-10-18 15:00:13 +09:00
yangyawei a309852c46 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: Id230197b1fcb09d16c7a9a66bfaa7c878d67e4ba
2021-05-27 02:37:56 +08:00
Alex Schultz 224af052af Bump hacking
This change bumps hacking to 4.x and adds W503, W504, and W605 to the
ignore list for now.

Change-Id: I2b5c7c671b1cd7c0f378992895434f86b02ed95e
2021-03-09 09:23:32 -07:00
Hervé Beraud cc519a7d48 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].

This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/#/c/722814/

Change-Id: I53bc3db1ce7a150869fb7c113bf1b34769c1f2fa
2020-11-09 15:39:00 +00:00
Wes Hayutin 6dd0e536b9 Stop testing python2.7
Train was the last release supporting python2. Let's rip the bandaid
off.

Also includes remove tripleo jobs from os-collect-config master

Partial-Bug: #1879361
Co-Authored-By: xuanyandong <xuanyandong@inspur.com>
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Change-Id: I46c79ce87f474a986f1983fa9164e6e4cbeaf8de
2020-05-19 08:05:35 -06:00
pengyuesheng b7e8c09315 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I619180004a27d6d96c7b83635891b966b9a9369e
2019-09-29 10:20:32 +08:00
Corey Bryant 8cda3f6cc0 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: I46590ec9b1fb9054388e3359d1d02217f396fbf6
Story: #2005924
Task: #34253
2019-07-12 16:24:08 -04:00
caoyuan fb5393461f Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I4e23b8ae531bf103a945e0e14610cde0c354a4ab
2019-04-26 18:02:45 +08:00
Charles Short 48f03e53dc Change python3.5 job to python3.7 job on Stein+
python3.5 was the only supported python3 version on Xenial, now that we have
Bionic Beaver nodes that support python3.7, lets switch to testing with
python3.7 in addition with python3.6 in Stein and beyond.
See ML discussion here [1] for context. [

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135632.html

Change-Id: I43ee5f72cd20d8f95f6a258dc9e4da0c799c684b
Signed-off-by: Charles Short <chucks@redhat.com>
Story: #2004073
2019-02-14 15:39:03 +01:00
Vieri 875bed48b0 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: I5e855bcb2503b9e4696566175b09b2947b86de1b
Closes-Bug:  #1801452
2018-11-03 03:01:19 +00:00
Vu Cong Tuan e1d3430575 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: I761feb4cfcdc9347cd3f74b8b355c28476301127
2018-07-10 18:53:52 +07:00
huang.zhiping dff8dabab0 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: I859649b7f4f9ab70617309947375d4886e14a860
2018-06-09 19:05:46 +08:00
Andreas Jaeger fd530b4294 Remove -U from pip install
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.

With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.

Change-Id: Iea38327f48caf8c060479dfa4f42f3124a87fee8
2017-12-02 19:25:24 +01:00
Andreas Jaeger 81d355ea32 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: Id5b1b0d8815c8324c53eca0fb9a32b1495617eba
2017-12-01 14:52:17 +01:00
Corey O'Brien cb171db770 Use universal_newlines with subprocess.check_output
Python 3 will complain when trying to split a byte-string using a string
so this change enables universal_newlines to make the split work in both
python 2 and 3. Also add a py3 tox environment.

Change-Id: I9af74b6c6cc9cfd0c973c85be04791aa6dc0acd4
2017-04-10 09:00:31 -04:00
Jenkins 9d23b907fa Merge "Add Constraints support" 2017-03-09 22:25:44 +00:00
gecong1973 8d038af700 Delete H803 from ignore list
The H803 rule have been removed from hacking since v0.10.0.
we can remove H803 from the ignore list.

Change-Id: Ib63f8a57db170bac08fecd2924e5a042d909b84e
2017-02-03 16:13:06 +08:00
Tony Breeds 37662029e2 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 os-collect-config.

Change-Id: I2a0983f41372b52e6d4e6a85cca1c51f980af36c
2016-12-21 12:07:17 +11:00
Ondřej Nový d45a8c5c7f 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: I8ead8eefb940c3e2e6ec470f06e5288949a9a2bc
2016-04-23 15:19:25 +00:00
Dougal Matthews 4bc37fd50e Bump hacking to 0.9.x series
Change-Id: I474266c647f31f0ad92ec9878fc03eb5a5c97f43
2014-11-13 13:11:00 +00:00
Clint Byrum 69bd587667 Fix coverage report generation with tox
Previously no coverage report was produced as the package name was
confusing the coverage module. We were also using the wrong command.

This also adds a coveragerc so that the results are sane.

Change-Id: I204f52eeae71ac11274431f9cdf518d19e42f94b
2014-06-03 11:00:07 -07:00
Jeremy Stanley 6c242a9e04 Remove tox locale overrides
* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.

Change-Id: I808926b0e3de197cf45dafd40818e755f623433a
Closes-Bug: #1277495
2014-02-10 03:08:07 +00:00
James E. Blair bcea327f91 Have tox install via setup.py develop
tox 1.6 was released, which means that we can now take advantage of
the feature we added to it - which is using setup.py develop to
install the code into the virtualenv. The logic was taken from
run_tests.sh - so the performance issues around using tox vs. using
install_venv should now be gone.

Additionally, override the tox pip install command to avoid using the
"--pre" option which is the default in tox.  "--pre" means "Include
pre-release and development versions."  By default, pip will only
install stable versions of software, and that is the behavior we want.

Change-Id: Ida5e440d1bdb9f8e9031277ea53a02d2ef171438
Co-Authored-By: Monty Taylor <mordred@inaugust.com>
2013-12-11 08:59:59 -08:00
Robert Collins 0e107ca7aa Ignore H803 checks from flake8
H803 isn't supported by community consensus. Blacklist it.

Change-Id: I50f3d545f694827507ffd238f41a38c0b12e3a59
2013-08-06 16:14:55 +12:00
Clint Byrum c88ed2b577 Importing openstack-common using update.py and openstack-common.conf 2013-06-26 17:49:26 -07:00
Monty Taylor 49c060a313 Migrate to pbr and testr. 2013-03-28 02:37:45 +01:00