summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Unset tempest.lib timeout in functional tests" into stable/victoriaZuul2021-09-171-0/+5
|\
| * Unset tempest.lib timeout in functional testsBrian Rosmaita2021-08-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test_cli.CinderBackupTests.test_backup_create_and_delete test is hitting timeout errors in the python-cinderclient-functional-py36 zuul job. This is happening because it's inheriting the OS_TEST_TIMEOUT value of 60 from the base testenv, and that value is being used by the tempest.lib class we inherit from as a timeout for each test. This is a problem for test_backup_create_and_delete because it creates a volume, waits for available, creates a backup, waits for available, deletes the volume, waits for deletion, deletes the backup, waits for deletion. Our functional tests have their own timeout handling, so turn off the tempest.lib timeout and use ours. An alternative to turning it off is to set it at a value that respects our timeout for our longest test, which would be: - time-to-available: 120 sec (x2) - time-to-deleted: 60 sec (x2) that is, 360 sec. Change-Id: I33399b4c094af2cc059da6e332f4c0a91e6ab57e (cherry picked from commit d04ded6a6ff4cc9ba8377a1b025493e939047b2c) (cherry picked from commit fa00aff41b266f46362b581ac48b4cec1692de71)
* | Remove skip_missing_interpretersBrian Rosmaita2021-07-301-3/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents a job reporting 'success' when the appropriate python interpreter cannot be found, when actually it didn't run at all. Also change the default envlist to use generic 'py3' instead of a specific version which might not be present. Also change zuul config so the python-cinderclient-functional-py36 job runs on centos-8-stream nodes, where py36 should be available. And change bindep.txt to specify the correct package name for centos-8. Jeremy Stanley has given a more thorough explanation of why this is a good change: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014810.html This isn't a theoretical issue. If you look at recent python-cinderclient-functional-py36 job results (for example, [0]), you'll see that Zuul reported 'success', but on a closer look, you'll see that no tests were run. [0] https://zuul.opendev.org/t/openstack/build/1bfc80638086405f8b29905cdd6f71be/log/job-output.txt#25470 Depends-on: https://review.opendev.org/c/openstack/devstack/+/803072 Change-Id: I2e2aa24e1592b66b287c84eda97b5079c40a36ec (cherry picked from commit b891c9980f316bd603a9f1429eebad41adf43825) (cherry picked from commit 4c6c3b49b5334518be1b776d32fada394743142f) changed: .zuul.yaml - using centos-8 node
* Update TOX_CONSTRAINTS_FILE for stable/victoriaOpenStack Release Bot2020-09-161-4/+4
| | | | | | | | | | | | Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/victoria branch, tests will continue to use the upper-constraints list on master. Change-Id: I1ae3f5147bceb006b014809edd0470eaf3a1783b
* Add functional-py38 jobBrian Rosmaita2020-09-161-0/+5
| | | | | | | | | The openstack-python3-victoria-jobs template is running unit tests for py36 and py38. We should do the same for our functional test jobs. So replace the functional-py37 job with a functional-py38 job. Change-Id: Icb338611169975be04bb27b86b5b3de0a37a6f5f
* Remove excess whitespace in ignore-pathBrian Rosmaita2020-09-031-1/+1
| | | | | | | Some extra whitespace is present in the ignore-path in the [doc8] testenv, so remove it. Change-Id: Ibd1b5f8259ec174b2bbb233b270f0e09daa67bc2
* Add doc linting to pep8 targetSean McGinnis2020-06-051-1/+7
| | | | | | | | This adds doc8 to the pep8 job to lint the docs. Also fixes a few issues it highlighted. Change-Id: Id0f4b9bee1f6a0103ec581b20037a9b74201aaca Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Bump default tox env from py37 to py38Sean McGinnis2020-04-241-1/+1
| | | | | | | | | | | | | | 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: Ie26a8d5a79c3ba8348419f031af0cef0f0e5c6c7 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Merge "Raise hacking version to 2.0.0"Zuul2020-02-121-1/+1
|\
| * Raise hacking version to 2.0.0Sean McGinnis2019-12-211-1/+1
| | | | | | | | | | | | | | | | | | We've kept hacking capped for a long time now. This raises the hacking package version to the latest release and fixes the issues that it found. Change-Id: I69e41a340c815090f25677607e971a8e75791f6d Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Drop support for python 2xuanyandong2020-01-161-11/+20
|/ | | | | | | | | | | Also adds support for py3.6 and py3.7 check and gate jobs. Co-authored-by: xuanyandong <xuanyandong@inspur.com> Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com> Closes-bug: #1853372 Change-Id: Ia978b692ade23ee6482957f41b17cb879c96fea7
* Add support for building pdf documentationWalter A. Boring IV2019-08-271-0/+12
| | | | | | | | | This patch updates tox.ini to build the pdf version of cinderclient documentation. run tox -epdf-docs Change-Id: If1f43e593db6ff6740b8a88b517c4505e39a3edd
* Merge "Enable warnings-as-error for doc builds"Zuul2019-08-081-1/+1
|\
| * Enable warnings-as-error for doc buildsSean McGinnis2019-04-171-1/+1
| | | | | | | | | | Change-Id: I9488156cbf606731d8ce3f16857da7aeca2e85e6 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Merge "Switch to the new canonical constraints URL on master"Zuul2019-07-191-4/+4
|\ \
| * | Switch to the new canonical constraints URL on masterchenke2019-06-201-4/+4
| |/ | | | | | | | | | | | | Reference: 1. http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html Change-Id: Ifdc1687f7d2cef58f3a6d1e48642e2dcefee43e6
* | Add Python 3 Train unit testsCorey Bryant2019-06-221-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: Iffde0ffc4a8f640e58ce3beb5706186ca038eede Story: #2005924 Task: #34200
* Drop py35 jobsSean McGinnis2019-02-261-1/+1
| | | | | | | | | | | Python 3.5 was the target runtime for the Rocky release. The current target py3 runtime for Stein is Python 3.6, so there is no reason to keep testing against the older version. https://governance.openstack.org/tc/reference/runtimes/stein.html#python-runtime-for-stein Change-Id: I8fbcde0573eddc1763104e0f812f93489a1b48e3 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Don't quote {posargs} in tox.iniVieri2018-10-091-2/+2
| | | | | | | | 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: Ieeae90ecbd4f89cbff0513dcd949a0c1a8e8d8c1
* Update pylint to work with python 3Sean McGinnis2018-07-231-1/+1
| | | | | | | | | | | | | | | | The pylint job was switched over to run under python 3, but the job is not voting and it was apparently missed that the conversion was causing it to fail. This updates the version of pylint to one that is actually supported by python 3 and makes tweaks to our script to for the minor changes between versions. Single character change to get rid of the more strict py3 regex string escape character format. Change-Id: I93124b62c5ee177815457b32f55f5453fc3d387e Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Switch from ostestr to stestrliuyamin2018-07-201-2/+3
| | | | | | | | os-testr has moved over to use stestr instead of testr. This change updates the tox.ini file to call stestr directly instead of going through ostestr and remove testrepository from test-requirements.txt. Change-Id: I31fa5fefd610ec783471e15992675bd39ff0ebc4
* Merge "fix tox python3 overrides"Zuul2018-07-191-0/+7
|\
| * fix tox python3 overrideshuang.zhiping2018-07-171-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I04b87b308a82113a57ea41bde0329e92b07b642e
* | Use api version 3 for functional testjunboli2018-06-191-1/+1
|/ | | | | | | | | switch to use OS_VOLUME_API_VERSION = 3 to run functional tests. Closes-bug: #1775354 Co-Authored-By: liuyamin <liuyamin@fiberhome.com> Change-Id: If6c4291aa7d8e85a4f8c1d5665a0e4a72aa1f1d1
* add lower-constraints jobDoug Hellmann2018-04-071-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: Ib36375525dd11d62d9f5566c714e76876892d9d7 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Follow the new PTI for document buildjiansong2017-12-211-2/+9
| | | | | | | | | | | | For compliance with the Project Testing Interface as described in: https://governance.openstack.org/tc/reference/project-testing-interface.html For more detials information, please refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: I7615e33c0d00c56b3ee6cb856a0553e32a1664c6
* Avoid tox_install.sh for constraints supportAndreas Jaeger2017-12-021-6/+7
| | | | | | | | | | | 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: I1facc619154613670444247ade567882ec84ed85
* Add .stestr.conf configurationSean McGinnis2017-10-021-2/+11
| | | | | | | | | | os-testr has moved over to use stestr instead of testr. While this is usually compaible with existing settings, there is a warning that is emitted when .stestr.conf is not present. It is usually able to fall back to parsing the .testr.conf file, but to be more correct and to prevent future problems we should update the config. Change-Id: If553a64f5dded2d47025c947a91f13091f3f5d14
* Enable F811, F821Eric Harney2017-08-231-1/+1
| | | | | | | | | F811 is a little noisy with api_versions.wraps() decorated methods, but opting to disable it in these cases seems better than missing problems in the rest of the code. Change-Id: I9c46938ab2a442e55f96b5ab6c119c4475afaecd
* Enable H306Eric Harney2017-08-011-1/+1
| | | | | | | | | Enforce ordering of imports with H306. For tests, this is mostly done by grouping test imports after other cinderclient imports. Change-Id: Ie40fda014d1aedb057e5b4ea1f27f999c84e6373
* Update tox to delete py34yanjun.fu2017-02-171-1/+1
| | | | | | | 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: I04e036521c902d846b6341ce1fd7fc2662bff8df
* Merge "Use 'ostestr {posargs}' to run functional tests"Jenkins2017-01-231-0/+1
|\
| * Use 'ostestr {posargs}' to run functional testsIvan Kolodyazhny2016-11-011-0/+1
| | | | | | | | | | | | | | | | This patch allows us to pass such params like concurrency, test name, etc for ostestr to run functional tests. Change-Id: Icb17309a148dfebf6b679107bab1514ab3dec729 Related-Bug: #1638302
* | Enable coverage report in console outputJeremy Liu2017-01-131-1/+3
| | | | | | | | Change-Id: Id8d9f0f9ea7685518e8a90323cd199b5303dd982
* | Add Constraints supportDirk Mueller2016-12-201-3/+8
|/ | | | | | | | | | | | Adding constraints support to clients is slightly more complex than services as the clients 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-cinderclient. Change-Id: Iac0c8a6bcfa9a74a2e836d156642b1e0abf5ec31
* Add Python3.5 classifier and venvzheng yin2016-07-121-1/+1
| | | | | | | 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: I29cab82225675fbb4e2f1701067b26e4a632b851
* Add pylint tox envEric Harney2016-04-071-0/+6
| | | | | | | | | Run pylint with $ tox -e pylint (Copied from Cinder with minor changes.) Change-Id: I9d7f03c44c6da7515b433d6c87f3a1645184d491
* Merge "Use ostestr as a tests runner"Jenkins2016-03-021-1/+1
|\
| * Use ostestr as a tests runnerIvan Kolodyazhny2016-02-171-1/+1
| | | | | | | | | | | | | | ostestr has more user-friendly output including lists of all and failed tests. Change-Id: I6db42b0f7480d79b85e20334fb3c2d8236efc316
* | Update minimum tox version to 1.8Sean McGinnis2016-02-281-1/+1
| | | | | | | | | | | | | | | | Other projects have updated to 1.8 or later for the minimum tox version (nova, neutron), so we should probably do the same. Change-Id: I2a12208ee964278d10f34a8439cefa8269c11b9b
* | Remove pypy from tox environment listSean McGinnis2016-02-221-1/+1
|/ | | | | | | | | | | | | Pypy is a supported python interpretor for python-cinderclient, but I don't think it's necessary to run all unit tests with it for everyone. We do have the gate-python-cinderclient-pypy test to validate there are no incompatibilities. Pypy is also not available by default, so it is an extra step for someone to know to install and set up the pypy environment before they can run tox without failures. Change-Id: I15e315415574dfe8cf8a3d5f7f968a082b81b165
* Merge "Put py34 first in the env order of tox"Jenkins2016-02-111-1/+1
|\
| * Put py34 first in the env order of toxmalei2015-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | To solve the problem of "db type could not be determined" on py34 we have to run first the py34 env to, then, run py27. This patch puts py34 first on the tox.ini list of envs to avoid this problem to happen. "Closes-Bug: #1533919" Change-Id: Ib247b4000d9c1d906ef55fa2b5cc990cf1120850
* | Fix some flake8 violationsChaozhe.Chen2016-02-091-1/+1
|/ | | | | | | | | | 1. Wrong use of 'noqa'. "# flake8: noqa" option disables all checks for the whole file. 2. Remove exclusion of 'tools' and '*openstack/common*' in flake8 and fix the violations. Change-Id: I153e992ffd6a80e70a99d7066c503c34326c93ab Closes-bug: #1540254
* Merge "Do not require functional_creds.conf for functional tests"Jenkins2015-12-181-1/+1
|\
| * Do not require functional_creds.conf for functional testsIvan Kolodyazhny2015-12-171-1/+1
| | | | | | | | | | | | | | Pass OS_* env variables for functional tests to use environment variables if they are available instead of config file Change-Id: Ic1b4752bf558c57974b5f2a4d5a45aee4a940bbb
* | Drop py33 supportshu-mutou2015-12-151-1/+1
|/ | | | | | | | | | | | | | | "Python 3.3 support is being dropped since OpenStack Liberty." written in following URL. https://wiki.openstack.org/wiki/Python3 And already the infra team and the oslo team are dropping py33 support from their projects. Since we rely on oslo for a lot of our work, and depend on infra for our CI, we should drop py33 support too. Change-Id: Iea4db590139e1a611a5dca72ef3adca187eb541e Closes-Bug: #1526170
* Merge "Add reno for release notes management"Jenkins2015-12-141-0/+3
|\
| * Add reno for release notes managementSean McGinnis2015-12-131-0/+3
| | | | | | | | | | | | | | | | | | | | Adopt reno for release notes like we have done for cinder. One difference for the client is we will not be backporting to Liberty per recommendation here [1]. [1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/080694.html Change-Id: Icb2520cfa249d104674eb42b5ac93a50a6ce34b4
* | Deprecated tox -downloadcache option removedOndřej Nový2015-12-111-3/+0
|/ | | | | | | | | | 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: I63939800bf0fe6ef89d6651273e3bb53678d23a6