Commit Graph

80 Commits

Author SHA1 Message Date
Takashi Kajinami 712739e5e7 Adapt to tox 4
skipsdist=True breaks extension loading by stevedore since tox 4. This
removes the option to fix the unit tests.

Change-Id: Id6853987caf999972e0597905619f364c20a636a
2023-02-17 00:30:23 +09:00
Ghanshyam Mann b65fb84919 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: Ib392f81b3f12ee02979723f17e08f775d63b8abe
2022-06-14 03:32:36 +09:00
Zuul 6b72237c7a Merge "Bump tox minversion to 3.18.0" 2022-06-13 18:00:00 +00:00
Zuul 211fb86b27 Merge "Replace deprecated UPPER_CONSTRAINTS_FILE variable" 2022-06-13 17:51:30 +00:00
Takashi Kajinami 0732060995 Bump tox minversion to 3.18.0
Since tox 3.18.0, the whitelist_externals option has been deprecated in
favor of the new allow_list_externals option[1].

This change bumps the minversion of tox so that we can replace
the deprecated option.

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I287ce309adf5a02e9eac3a285666c23f4eeb9d36
2022-05-22 22:23:24 +09:00
dengzhaosen db9a71f18e Update python testing classifier
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: If01a4cb7dcb48698cea934309de36268ae92b7e1
2021-12-24 09:33:14 +08:00
likui 5b4729b5fb Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated

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

Change-Id: Ia8d2989c15444d380e60eccc92161b9414d79a16
2020-12-01 10:02:02 +08:00
Sean McGinnis 71f6c6c363
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: I19e5c51f5ffa30a1257a9cc2d0b43dd35de79d5a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:55 -05:00
Andreas Jaeger 2a8eb6a74c [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

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

Change-Id: I54863f2301758dcd48de4ee73bcc8582e5036afa
2020-02-10 16:05:51 +00:00
jacky06 87253c46fd Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I65ec66ebcef80609a4fc111c71a225eccec35eeb
2019-07-14 15:05:49 +00:00
Corey Bryant 5b1d4c2497 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: Id9ed3cec95f0e0203ef00dd5ff10d124913e39f2
Story: #2005924
Task: #34209
2019-06-24 10:34:01 -04:00
Ghanshyam Mann 422f001e25 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: I6b8dacf455ec068acd9599d96e0d66522c8bdf5c
2019-04-15 18:06:16 +00:00
huang.zhiping 4ae2116994 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: Ie594fc55eb54d48d96157e31a319f0ff97afc9be
Closes-Bug:  #1801691
2018-11-26 07:27:14 +00:00
Vieri ada4b90083 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: I6ee01703bd4c432211f0d6e2f3501c989523ae11
2018-10-09 13:53:33 +00:00
Vu Cong Tuan 09475c2c1d 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: I7079a92f972f5cb21e0d2077dd029701930a3590
2018-07-30 08:43:31 +07:00
Zuul c7b8212a63 Merge "Enable some off-by-default checks" 2018-07-20 19:32:24 +00:00
Doug Hellmann 4c782b2817 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: Ia20d2ef56af2da00b374b3a3e5d79d7228c6a763
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 17:58:17 -04:00
Zuul b169493c57 Merge "add lower-constraints job" 2018-06-04 09:32:52 +00:00
Nguyen Hai aab5b85811 Change testenv from py34 to py35
Change testenv:debug34 to testenv:debug35

Change-Id: I49a63aabb33ff117842455d475fb8eab0e086912
2018-04-16 13:27:34 +00:00
Doug Hellmann d7bd59b9b3 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.

Update PrettyTable dependency so the tests pass.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I59c771ca583fb0ebc9f39314ee68264410f8a173
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-09 14:08:45 -04:00
ricolin f41ad78cd4 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

Refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124815.html

Change-Id: Ibb35b13fe121fa2489ef31f51e1a662fbd01cc8b
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
2018-03-23 10:45:18 -04:00
ricolin c173246b45 Add reno for release notes management
Change-Id: Ia6d1c66602ac2845d30d9f95914445890a51329c
2018-01-04 09:40:36 +00:00
Andreas Jaeger 79d8861066 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: I84cee5a9a728b9d6dc7909ac28a60b9c20c2348c
2017-12-02 16:58:43 +00:00
blue55 a0dfe0703b 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: I815f189258356cb911d1e232b6f53c864e53c602
2017-06-22 14:05:43 +08:00
huangtianhua 241265c5a3 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: I3a2fc7779fa0c806827d9eda2ffdbc207788b22d
2017-04-27 02:41:36 +00:00
rabi 88fae590c6 Use upper-constraints for all jobs
Change-Id: I17aae5f4b5c72425d72a3d9ba0a44110e2e6a65c
2017-04-03 15:19:39 +05:30
Kevin_Zheng a0f2089c56 Enable coverage report in console output
The current coverage test job doesn't provide any result
to developer, we could enable the coverage report in
console output to let the developers know the current
coverage status when run coverage test job.

Change-Id: Icef8c3b42f087a20c48b5308185f6be8c8f5240d
2017-01-13 02:13:43 +00:00
rabi 2c27692f49 Remove oslo-incubator modules
This is the last patch in the series that removes all remaining
oslo-incubator modules. This also removes some unused scripts
in tools.

Change-Id: I4ca11596f1a2967e7c920c4ec7709c3408854534
2016-11-12 19:23:26 +05:30
Chuck Short 29d6c613f6 Graduate to oslo.i18n and cleanup incubator usage
Graduate from Oslo Incubator to oslo.i18n library.
Cleanup of unused Oslo Incubator utils.
Added optional enable_lazy() usage.

Change-Id: I5ec02477f3f52f4d7097669120581e82cced3748
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-11-08 08:29:09 +05:30
Lucky samadhiya 34c07a6630 delete python bytecode including pyo before every test run
Change-Id: I435274c0010ceb7595b2e8c83848b010a9b42edd
2016-09-16 13:13:11 +05:30
PanFengyun 25e13e81f0 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: I3b8b68c4ec4904d1aee150e6158f9ff29c68ff7a
2016-07-14 11:15:19 +08:00
Andreas Jaeger 00ba1ec9b4 Update translation setup
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.

This basically renames
python-heatclient/locale/python-heatclient.pot to
heatclient/locale/heatclient.pot. For this we need to update
setup.cfg.

The domain name is already correct in i18n.py.

The project has no translations currently, let's remove the outdated
pot file, the updated scripts work without them. So, we can just
delete the file and once there are translations, an updated pot file
together with translations can be imported automatically.

Remove test for valid translation files in tox.ini since there are now
no more pot files - and the test fails if there are no files at all.

Change-Id: I6f5e77b9cd633f6edb503ff225ca0b507153946c
2016-01-28 21:49:27 +01:00
ting.wang 39c3fc41a0 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: I3b7a090042e95ac89d6829495bf42f84e11bbd21
2016-01-12 14:45:20 +08:00
Ondřej Nový 4bfc6ea5de 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: I89546c2c77b1a15659918be65e6ef73157f98b23
2015-12-11 23:24:11 +01:00
Jenkins 1d3a49737b Merge "Delete python bytecode before every test run" 2015-12-04 02:10:05 +00:00
Jenkins ed250fbcfe Merge "Remove py26 support" 2015-12-03 10:36:11 +00:00
ricolin 32397cbd66 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.
Closes-Bug: 1519510

Change-Id: I680043c48c75a50b3ef8eed4f22e97dca029c477
2015-12-03 08:46:19 +08:00
shu-mutou debd086b2a 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: I9b0e7afeeb934d24c9847573cd7582709e990c9e
Closes-Bug: #1368661
2015-12-02 12:37:45 +09:00
ricolin 3e8d6720c1 Enable pep8 E123 test
Change-Id: Ib22a14c8060f4c78ade64b65988ed989607b04cb
2015-12-01 00:31:31 +08:00
ricolin 978eeb3994 Enable pep8 E126 test
Enable E126 continuation line over-indented for hanging indent.

Change-Id: I12ca2d8d610574dfcd528b0e613ec0328f4fb45e
2015-12-01 00:31:31 +08:00
ricolin ec2530b975 Enable pep8 E128 test
Enable E128 continuation line under-indented for visual indent

Change-Id: If662f729e7aacdd439b38c5e5630d74afefebcc6
2015-12-01 00:31:22 +08:00
ricolin 6f1542c2ca Enable pep8 E265 test
Enable E265 block comment should start with '# '

Change-Id: I78813e73f8dd800bc58a1d69eedc2c066ccb8c28
2015-11-23 23:45:04 +08:00
ricolin 9e7a04110a Enable pep8 E241 test
Enable E241 multiple spaces after ','

Change-Id: Iced079fe6315df0ac91995e77861b16340cb8727
2015-11-23 23:45:04 +08:00
ricolin 5a658551bd Enable pep8 E713 test
Enable E713 test for membership should be 'not in'

Change-Id: I22c8f849713f613e0ef5f6011c075de5f31b7621
2015-11-23 23:44:51 +08:00
ricolin 728b40bc0d Enable pep8 H202 test
Change-Id: Id9331cfd3ac61bd061b29a717eaeb28441d51e0c
2015-11-16 23:34:57 +08:00
ricolin 623c704312 Enable pep8 H238 test
Enable H238 old style class declaration, use new style (inherit from `object`)

Change-Id: I4d11e398a008bcb1b22ecc0b6b2df41c1abae6d5
2015-11-16 23:34:57 +08:00
ricolin 47cbec7ff5 Enable pep8 H405 tests
Enabled H405 multi line docstring summary not separated with an empty
line in tox testing.

Change-Id: I89d063133154ae343315872b677fa06cc901cf3b
2015-11-16 23:34:57 +08:00
Pavlo Shchelokovskyy 47ecd150c3 Add py34 env to default tox run
Also, change order of envs in default tox run to avoid some errors
when running tox for the first time on fresh clone:
- run pypy first to avoid "No module _bsddb" error
- run py34 before py2x to avoid LP bug #1489059

Change-Id: I777c55077edb5d4f09518acf35366af97de3943f
Closes-Bug: #1492123
2015-09-04 06:34:28 +00:00
Sergey Kraynev 7e23bac918 Add functional tests from Tempest
- Add separate testenv for functional tests
- Copy Heat templates and tests from tempest
- Add requirements tempest-lib
- Add base class to functional tests

Partial-Bug: #1446442

Change-Id: I254be9b25f248d59392507841dad44e1ef1c68e3
2015-06-03 11:57:51 -04:00
Steve Baker 58fd470f95 Update hacking version to fix pep8 gate job
Any new failing rules have just been added to ignore for now, so
that the gate can be unblocked quickly, although future changes
which un-ignore those rules would be welcome.

Change-Id: I5861ab178ae8bf4861c93941c33b551b7f90e835
2015-05-27 15:43:57 +12:00