summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Fix tox cover checkwu.chunyang2023-02-281-2/+2
| | | | Change-Id: Id6cec4d2f94bcdbdf0954f1fe3be1ce4404c983c
* Fixing tests with tox 4.2.6wu.chunyang2023-01-181-1/+0
| | | | | | | | | | | 1. Remove basepython from testenv 2. this change also fix unittests because stevedore has dropped pkg_resources[0], after tox upgraded to 4.0.*, tox with usedevelop parameter installs trove in develop mode, hence stevedore unable to get the entrypoints from sdist[1]. [0]: https://opendev.org/openstack/stevedore/commit/d5297167e08468c75d2477f15004df61cf98e57e [1]: https://tox.wiki/en/2.8.1/config.html#confval-usedevelop=BOOL Change-Id: Ie65d099509e3cb7a61a09d975c58c1e95aa12b51
* Rename app.wsgi to app_wsgi.pywu.chunyang2022-08-251-1/+1
| | | | | | | | | | 1. app.wsgi is a python script and should be end with py extension. 2. Generate trove-wsgi script which is needed by kolla to support https and ipv6. 3. Ignore build directory in git 4. update docs Change-Id: Ibbd6ecb8db25aa3a443d3f526f4cf6d418eb26f3
* Add release note(aka. reno) guidewu.chunyang2022-07-111-1/+13
| | | | | | | This PR adds reloease note guide for trove project and renames some notes due to uid collision Change-Id: I55f49425dc3df6599ff6714efd8f7c1dc656ddf2
* Add python3.9 supportwu.chunyang2022-04-281-1/+1
| | | | | | | Add python3.9 support and set the default test env from py38 to py39 Change-Id: Ie1a4790762b80b8f60eda86b879b73b8a6005eba
* Changed minversion in tox to 3.18.0likui2021-06-031-2/+2
| | | | | | | | The patch bumps min version of tox to 3.18.0 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: If39d3834724ff3116a2a5ee1ae0974148c339b79
* Dropping lower constraints testingzhangboye2021-05-031-6/+0
| | | | | | | | | | | | | We facing errors related to the new pip resolver, this topic was discussed on the ML and QA team proposed to to test lower-constraints [1]. I propose to drop this test because the complexity and recurring pain needed to maintain that now exceeds the benefits provided by this mechanismes. [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html Change-Id: I7261114a545c8c016f96ecf20e3fcdc00c3bab99
* [doc] Add configuration referenceDmitriy Rabotyagov2021-04-061-0/+3
| | | | | | | Config reference has been dropped for some reason several releases before. We return configuration reference along with policy to the docs. Change-Id: I0927466d18eca5572932fcf9e2ca6349b11ca847
* Update TOX_CONSTRAINTS_FILElikui2020-10-301-1/+1
| | | | | | | | | | | 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>. [1] https://review.opendev.org/#/c/722814/ Change-Id: Ida407c05ad1026820be71ddfb84a97bcb3418df9
* Remove six usage and basestring checkwangzihao2020-10-161-1/+0
| | | | | | | | | | | | | | | | | | Remove basestring check. Remove six Replace the following items with Python 3 style code. - six.string_types - six.int2byte - six.indexbytes - six.add_metaclass - six.StringIO - six.text_type - six.integer_types - six.binary_type - six.BytesIO - six.reraise Change-Id: I4fb9033d152963c504ceb4d5c4d08f934ee4accb
* bump py37 to py38 in tox.inilikui2020-10-091-1/+1
| | | | | | | | | in 'victoria' cycle, we should test py38 by default. ref: https://governance.openstack.org/tc/reference/runtimes/victoria.html Change-Id: I7947901ac31b170e334a51880b996d2d3143f310
* Support backup strategy APILingxian Kong2020-07-171-1/+1
| | | | Change-Id: I0ddd7214dae6e29ddfaf045fdb282f4980a8afff
* Datastore containerizationLingxian Kong2020-05-271-4/+2
| | | | | | | | | | | | | Significant changes: * Using docker image to install datastore. * Datastore image is common to different datastores. * Using backup docker image to do backup and restore. * Support MariaDB replication * Set most of the functional jobs as non-voting as nested virtualization is not supported in CI. Change-Id: Ia9c97a63a961eebc336b70d28dc77638144c1834
* Update hacking for Python3Andreas Jaeger2020-04-031-1/+8
| | | | | | | | | | | | | | The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found by updated hacking version. Update local hacking checks for new flake8. Remove hacking and friends from lower-constraints, they are not needed in installations. Change-Id: I6e6638c07b5d24c90e9deae277e98149f383eb3d
* Add python-troveclient in requirements.txtLingxian Kong2020-03-151-2/+1
| | | | Change-Id: I2bd0d81171df85c05423e19ab2e4afa82fcf880e
* Small cleanupsAndreas Jaeger2020-03-101-3/+0
| | | | | | | | | | | Setup.cfg: - This repo is python 3 only ,remove universal wheel building. - Remove pbr.hooks.setup_hook, those are obsolete since a long time tox.ini: - remove tox:jenkins, this is not used since ages Change-Id: Ia6c1bc28b4935859c29924141965f47c4bcbd2c3
* Fix trovestack tox jobLingxian Kong2019-12-191-4/+0
| | | | Change-Id: I9662c4c23f3d2879d78e26fe4b32a6f55b6cfb99
* Support HEALTHY status for db instanceLingxian Kong2019-12-141-3/+0
| | | | | | | | | | | - 'HEALTHY' means the db service is responsive, 'ACTIVE' means the db service is alive. - Remove the CI job fakemodetests, but will add similar testing task in the future. - Fix the periodic CI job - Remove MongoDB and related jobs Change-Id: I5abe9091ba203297dc87db5fba139179166321f7
* [ussuri][goal] Drop python 2.7 support and testingGhanshyam Mann2019-12-051-15/+2
| | | | | | | | | | | | | | | | OpenStack is dropping the py2.7 support in ussuri cycle. Trove 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 Change-Id: I6b448747c873bfc9c0138c0f7e3ca67ddce02dee
* Add Python 3 Train unit testsCorey Bryant2019-08-151-1/+1
| | | | | | | | | | | | 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: I1fe23c6115bd6b9aac0bf2bd4fec9c6eaee88c40 Story: #2005924 Task: #34254
* Remove the trove-tox-apiexamples CI jobLingxian Kong2019-06-061-5/+1
| | | | | | | | | | | | - The job relies on python-troveclient, sometimes python-troveclient only changes the URL sending to Trove but neither request nor response. - The job is hard to maintain, especially when there are changes relating the API. The recommended way is to manually update the API doc and add tests in trove-tox-fakemodetests job. - Remove that trovestack subcommand as well. Change-Id: I108203915ef79ef93bbfbb15acdb7480854878e0
* Update Python 3 test runtimes for TrainZhongShengping2019-05-091-1/+1
| | | | | | | | | | | | | | | | This goal is to implement the process set out in the 2018-10-24 Python Update Process TC resolution[1], for the Train cycle to ensure unit testing is in place for all of the Tested Runtimes for Train[2]. In practice, this generally means adding unit tests for Python 3.7 and dropping unit tests for Python 3.5. Using the Zuul template for Train will ensure that all projects that support Python3 will be tested against the agreed runtime versions, and make it easier to update them in future. [1]https://governance.openstack.org/tc/resolutions/20181024-python-update-process.html [2]https://governance.openstack.org/tc/reference/runtimes/train.html Change-Id: I018f79c6819ead9ffee777addb7ba6b369304962 Depends-On: https://review.opendev.org/#/c/641878/
* Update min tox version to 2.0ZhongShengping2019-04-291-1/+1
| | | | | | | | 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: Ifc2c2ad88d77fb2590b5bb598458bdfd4a423a9e
* Dropping the py35 testingZhongShengping2019-04-281-1/+1
| | | | | | | | | | | | | | | | | 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: I0d0a3f62d652853963dc4fe204a413eec2bc1830
* Move to opendevZhongShengping2019-04-241-3/+3
| | | | | | | 1.Use opendev.org instead of git.openstack.org. 2.Use review.opendev.org instead of review.openstack.org. Change-Id: I8e9da8fbb04bdec42a0b2f012f6a38b8ee413b27
* Execute functional test jobs running under python3Marcin Piwowarczyk2018-12-141-0/+11
| | | | | | | | | | | | | Functional tests are executed by trovestack script, which uses python in default OS version which is 2.7. This change wraps python in tox and executes trovestack int_tests in virtual enviroment, starting them in python3. Any future python version change could be managed by tox framework. Change-Id: I3a849978241d3d0669ef9e1c802ff504ac3c32cb Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
* Add python 3.6 unit test jobNguyen Hai Truong2018-11-061-2/+2
| | | | | | | | | | This is a mechanically generated patch to add a unit test job running under Python 3.6 as part of the python3-first goal. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: I2b04e865fb72296f672ab206fcda15e30450db97
* Merge "Fix cover job"Zuul2018-10-051-4/+6
|\
| * Fix cover jobAndreas Jaeger2018-10-011-4/+6
| | | | | | | | | | | | | | | | | | | | The job is currently broken, it runs with testr while we switched to stestr. Use the usual setup for coverage as done by other projects using stestr in cover. Previously, we run with concurrency=1 - continue to run in serial mode. Change-Id: I6e389db5aed8db25b49906b2479af081237fc909
* | Merge "make tox -e pylint only run pylint"Zuul2018-09-251-2/+1
|\ \ | |/ |/|
| * make tox -e pylint only run pylintDoug Hellmann2018-09-191-2/+1
| | | | | | | | | | | | | | | | Having the pylint environment run redundant commands just makes the job take longer. Change-Id: Ibb86b40e589d1b6f9c3af5901549d7aa5170e8c8 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | switch documentation job to new PTIDoug Hellmann2018-09-231-0/+3
|/ | | | | | | | | | | | | | | This is a mechanically generated patch to switch the documentation jobs to use the new PTI versions of the jobs as part of the python3-first goal. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Also, add docs tox environment so that the job works. Change-Id: I8dd911d46623c0185d238b293e0218cfa435ed46 Story: #2002586 Task: #24342
* fix tox python3 overridesMarcin Piwowarczyk2018-09-181-2/+12
| | | | | | | | | | | | | | | | | | 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: I9ee34642c700d1e6ba9c2f3891b7fa1f7f7e1e1d Depends-On: I8989fd4798e80eae27408017e1543819a68b4ab1 Signed-off-by: Doug Hellmann <doug@doughellmann.com> Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com> Co-Authored-By: Doug Hellmann <doug@doughellmann.com>
* Use latests version of python-troveclient in testsMarcin Piwowarczyk2018-09-141-0/+1
| | | | | | | | | | | | | | | This patchset changes version of python-troveclient package version used in tests. So far, version from global constrain file was used [1]. In order to achive this, a local constrain file for tests requirements has been added. This made it possible to override global constrain versions. [1] openstack/requirements/upper-constraints.txt Change-Id: Ic4383f0249e5bd367461f63f66217af959aefba4 Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
* Migrate to Zuul v3 native job definitionsZhao Chao2018-07-171-1/+3
| | | | | | | | | | | | | This patch migrates the legacy gate jobs to Zuul v3 native ones(a new trove-devstack role is created for all those legecy jobs, and the previous way of running gate jobs is still kept as we still cannot migrate the genade job to a Zuul v3 native one), following the documents below: https://docs.openstack.org/infra/manual/zuulv3.html https://docs.openstack.org/devstack/latest/zuul_ci_jobs_migration.html Change-Id: I10a1adae3a79b7322118fce180119f0ee5ff2e1b Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Cleanup testrepository and os-testr requirementsZhao Chao2018-04-181-1/+0
| | | | | | | | | We have migrated to stestr for a while, however the related requirements is not updated, this patch does the cleanup, also updates requirements for stestr. Change-Id: I9c8cf2f90ced2261293f91faefc3099740540fe7 Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Run unittests under the low-constraints jobZhao Chao2018-04-161-16/+2
| | | | | | | | | | | | | The low-constraints job should run unittests by the original desgin, we didn't put the commands about running unittests inside the default testenv settings, so in fact the low-constraints job did nothing except creating a virtualenv. This patch fixes and also move the unittests commands to the default testenv settings like the other OpenStack projects. Change-Id: Ia344a14a9baf7574b043fc08332869083da6dc1e Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* add lower-constraints jobDoug Hellmann2018-03-221-0/+7
| | | | | | | | | | | | | | | | | 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: I5352398603e5755d46c9c033b05af637e379eea0 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Fix guestagent.test_operating_system for Python3Zhao Chao2018-03-011-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tests for _write_file_as_root failed because tempfile.NamedTemporaryFile use binary mode by default, changing to text mode fixes. * Migrate to olso_serialization.base64 for Base64Codec. Also change the return value from bytearray to bytes for Base64Codec.deserialize. Base64Codec supports reverse encoding(i.e. binary data will be written to the dest file), in this situation, the dest file should be opened with binary mode(and when reading from the file, binary mode should also be used). * stream_codecs.StringConverter converts iterable objects with map function. The behavior of map function is different under Python 2.x and 3.x. However csv.writerows(before Python 3.5) and unpack_singleton in trove.common.utils both need a list object. Converting the return value of map function to a list explicitly before passing to these functions fixes. guestagent.test_operating_system is the last blacklist regex pattern for py3 unittests. With the above problems fixed, blacklist-py3.txt is not needed any more, and tox.ini is also updateted. Migrating from ostestr to stestr is also done while updating tox.ini. Here is the ML post for more information about os-testr and stestr: http://lists.openstack.org/pipermail/openstack-dev/2017-September/122135.html Partially implements: blueprint trove-python3 Change-Id: I31f1f97901d6ebff8a91c1b70a343e724ab806eb Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Remove install-guide tox envnpraveen352018-02-221-3/+0
| | | | | | The install-guide tox env is not used any more after docs migration. Change-Id: I93c53d02afbbb36d4a3e5641e6d11aab9dcd7d8a
* Generate policy sample file automatically.Zhao Chao2018-02-121-0/+3
| | | | | | | | | | | | | | A new entrypoint in setup.cfg and a config file are added for using olso.policy helper script to generate the sample file. A new tox target also is added to simplify the environment setting up. Now policy sample file can be generated automatically, so the in-repo sample file is no longer needed. Co-Authored-By: Andrew Laski <andrew@lascii.com> Partial-Implements: blueprint policy-in-code Change-Id: Ic336fa154ccc05b5e9db3a8e751a484b1cc5aa9c Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Add bandit-baseline check job.Zhao Chao2018-02-071-0/+4
| | | | | | | | | As bandit-baseline check just call tox to run tests, adding it to in-tree checks instead of gate jobs. Closes-Bug: #1618549 Change-Id: If6848c69e09117789d566ae47977034d5503fa09 Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Merge "Add doc8 to pep8 check for trove project"Zuul2017-12-021-0/+4
|\
| * Add doc8 to pep8 check for trove projectNguyen Van Trung2017-11-301-0/+4
| | | | | | | | | | | | | | This patch adds a doc8 check of .rst files to the current pep8 check. It includes fixes to the .rst files that didn't pass the check. Change-Id: I866ee72cfdd6067ae219a751aa7c2a0c391886f7
* | Apply pep8 check to app.wsgiVu Cong Tuan2017-11-281-1/+1
|/ | | | | | | Because app.wsgi should meet pep8 standards, this patch apply pep8 check to app.wsgi. Change-Id: If664eedc27afb5a23a44eebf52f9f1aeb34d6548
* Merge "For Python 3 Common patterns-six string"Zuul2017-11-151-1/+1
|\
| * For Python 3 Common patterns-six stringjiansong2017-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | Replace basestring with six.string_types and add a hacking rule to check it. This modification refers to neutron and merge translation_checks into checks .Follow-up will modify the other on the python3 common Change-Id: I66d58ecaf664705660bbeb85058ad3cd092ef82f reference:https://github.com/openstack/neutron/tree/master/neutron/hacking
* | Allow py27 test selectionSamuel Matzek2017-11-071-1/+1
|/ | | | | | | | | | Allow test selection for the py27 tests when using tox. See [1]. [1] https://docs.openstack.org/os-testr/latest/user/ostestr.html#notes-for-running-with-tox Change-Id: I49b063dfb8e93648f608f2ca9de33c6d621d3642
* Merge "Remove unneeded msgfmt test"Zuul2017-10-211-3/+0
|\
| * Remove unneeded msgfmt testAndreas Jaeger2017-08-191-3/+0
| | | | | | | | | | | | | | | | | | | | | | The infra scripts run msgfmt since some time, no need to run it here as well. This fixes the pep8 failure in https://review.openstack.org/#/c/493290/ since that change removes the remaining po files and now the find fails since there is no po file anymore. Change-Id: I6a8b99a9d63e421f4a6eae6f0aab6d0955f7916b