Commit Graph

26 Commits

Author SHA1 Message Date
Ghanshyam Mann 6f10535042 Remove the deprecated ostestr command
ostestr command has been deprecated in June 2019
- I3a6084db9f86627e3e94abaa4fb4aec52a01126a

This command is replaced by the stestr. os_testr
repo which has other utilities also is not deprecated
and will continue to be maintained.

QA meeting discussion:
https://meetings.opendev.org/irclogs/%23openstack-qa/%23openstack-qa.2022-03-22.log.html#t2022-03-22T15:45:36

Change-Id: Ic0cddcc226f092ac6df405e83b2e7660d71d0ba2
2022-03-24 16:49:44 -05:00
yangyawei 102fd7b2af 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: I246ed0e67dc6325a9d01a543820a2ce4e3d11174
2021-05-27 03:02:12 +08:00
tushargite96 8ad78a16df Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 python in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Id3fae9e5e070793f4350f1699fe8617e9aea0b7e
2021-02-25 23:38:34 +05:30
Zuul 6baebaccf5 Merge "Remove install unnecessary packages" 2020-09-29 20:36:48 +00:00
Lukas Piwowarski 9bb54d2366 Create tox environment to build pdf documentation
This patch enables building .pdf documentation using new 'pdf-docs'
tox environment. The newly created tox environment creates latex
source codes using sphinx-build and then builds the pdf
documentation using make.

Story: 2006070
Task: 35468

Change-Id: I1d1448153fceece36470547b5f1b646e194dc51d
2020-09-24 10:16:39 +02:00
maaoyu ef52ef53cf Remove install unnecessary packages
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I76aacd74de837877d0a2c34a6173ee08108332b6
2020-09-23 14:37:33 +08:00
Ghanshyam Mann fb2c287268 Switch testing to Victoria testing runtime
Upating the tetsing template from ussuri to victoria
testing runtime
- https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: I03f331e55af3ea880c2f6c868511caf6384cf0a8
2020-08-01 19:46:53 +00:00
Ghanshyam Mann fcf791b38a [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

os-testr 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

Switch to using sphinx-build, remove cruft from setup.cfg, setup.py,
tox.ini, conf.py.
Update hacking version to support python3 properly.
Fix problems found by pep8.

Change-Id: I6ab22dda05132a735bd9e5caf16cc2bd172b06cc
2020-03-04 01:35:46 +00:00
Corey Bryant 8859449359 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: I6c6f4fccec101fdbdc8cd952b889f7e43e41374a
Story: #2005924
Task: #34240
2019-07-15 13:12:46 -04:00
jacky06 414bbf6d85 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I67c57d65accb3822f7f6a03fea96356fae9025b9
2019-06-30 05:52:12 +00:00
Zuul bced00648a Merge "Deprecate ostestr command" 2019-06-18 13:44:34 +00:00
Masayuki Igawa a5bc990fdc
Deprecate ostestr command
This commit adds deprecation comments to README, the user doc and
warning message to in the command. We already switched to use
`stestr` command instead of `ostestr`. And we haven't maintained
this command recently. So, it would be good to make it clearer for
users.

Change-Id: I3a6084db9f86627e3e94abaa4fb4aec52a01126a
2019-06-03 18:44:07 +09:00
Ghanshyam Mann 77002ea67d 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: I05cd5327a5ab883701fa183a1b4264f91219147c
2019-04-22 03:55:00 +00:00
huang.zhiping 9b412d7c14 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: I721815ac34e3cd0bc84a5e69104aecfe7fd62e79
2018-06-09 19:27:51 +08:00
Andreas Jaeger 3eba9cd1bc 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: I37fdd240862d4369160c3e7a7e5a004a154a5944
2017-12-01 14:56:06 +01:00
Luigi Toscano b6ac6ac48e Fix .testr.conf detection: test path follows discover
Apparently if -t is not specified, the path to the unit test directory
follows immediately the "discover" keyword.
This fixes the discovery for the .testr.conf in the sahara repository
(even if is being replaced by .stestr.conf, the fix may still be
useful).

Also, split the code which discover the legacy values in its own function
to simplify the testing.

Finally, disable hacking rule H405 which kept flagging incorrectly a long
multiline string as docstring.

Change-Id: Ide155a8e6b2b746c81388bacc0822c68d853b5a1
2017-09-27 17:17:45 +02:00
Matthew Treinish 7dd678e372 Switch to stestr under the covers
This commit switches the ostestr command to use stestr under the covers.
This simplifies the majority of the logic, eventually ostestr will
be deprecated as a result of this migration. (since almost all the logic
here is contained in stestr already)

Depends-On: I2c7618a742439fd2ed26879f3114f0f66fd6337f
Change-Id: Id7cb2a39a8308f1413608dcf19273a1d7f33592e
2017-08-29 11:03:30 -04:00
Tony Breeds 44dc02b52a 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-testr.

Change-Id: I258a88eda480c264386947cecbf99631dc777757
2016-12-21 12:08:17 +11:00
guo yunxian 6afbb43fce Add support for Python versions
Community now has support for Python 3.5, this patch adds this.

Change-Id: Id71b826337b871bc10b28220529ba60c1ba0a9c1
2016-08-16 13:51:37 +08:00
guo yunxian 027bce4f52 Delete openstack/common in flake8 exclude list
The directory openstack/common was used to keep codes
from oslo-incubator, we have retired oslo-incubator,
so don't use this directory any more.

Change-Id: I8bec126e0e1b66cfde8f683901bd3c5b4d974962
2016-08-13 17:31:56 +08:00
Yushiro FURUKAWA 6e908db6df Fix coverage option and execution
--coverage-package-name option was no longer supported by 'testr'[1].
This commit replaces from 'testr' to 'test' as coverage option.

[1] https://review.openstack.org/#/c/217847/

Change-Id: I0430fd696752c1cd8e33bb2d146e08e442ebc3f8
2016-04-13 07:43:58 +09:00
janonymous 6f3958fb35 py26/py33 are no longer supported by Infra's CI
Python 3.3/2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it also.

Change-Id: Ib4c347038aa894ef808c0ab731d9b38982a47b40
2015-12-26 14:22:24 +05:30
Masayuki Igawa 2fb3b5ecff Fix coverage section in tox.ini
This commit fixes the coverage section in tox.ini to get coverage and
also changes .gitignore to ignore the cover directory and .coverage
directories.

Change-Id: Ia58b5d109ad045833d6c37e16fd0fe3705212ed0
2015-12-04 18:26:12 +09:00
Masayuki Igawa c797436528 Add delete *.pyc command before executing ostestr
This commit adds a command for deleting *.pyc before executing ostestr
with tox. This patch would help that removing unnecessary *.pyc files
when we rename, move or remove *.py ones.

Change-Id: Ifa0eb18a10c7e7ee7e15ce7cc69a1b007a016a76
2015-12-01 17:24:59 +09:00
Matthew Treinish 0abbeeac4b
Dogfood things for unit tests
So it turns out we weren't actually using ostestr for running the
os-testr unit tests. We probably should use the test runner runner
wrapper we're developing to run the unit tests for the test runner
runner wrapper and the other utilities in the package.

Change-Id: I88af9104352163f2412c2a3cbaf6c88d0a937988
2015-06-23 19:31:57 -04:00
Matthew Treinish d1049b1ad6 Initial Cookiecutter Commit. 2015-03-17 14:58:46 -04:00