Commit Graph

64 Commits

Author SHA1 Message Date
Xinxin Shen 6b49171e02 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated

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

Co-Authored-By: Cyril Roelandt <cyril@redhat.com>
Change-Id: If844b485970c4d0e0b13dcf431fe0e5138004b6e
2023-02-07 02:48:42 +01:00
Ghanshyam Mann 1a01fe7fd7 Fix tox4 error
tox.ini started failing with Tox4 which had some
incompatible changes.

Fixing tox.ini for tox4 changes.

Depends-On: https://review.opendev.org/c/openstack/glance/+/868530

Change-Id: I96feba843ca5ebecdc7313961207369da30e72f5
2022-12-27 01:46:59 +00:00
Ghanshyam Mann aeee48b561 Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Moving the py36 job to py3 based so that they run
on latest supported python 3. Updating the python classifier also to reflect the same.

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

Change-Id: Ida582daf7db6fb3cedb3c7e37fc512d094b37c6e
2022-05-10 19:25:24 -05:00
Ghanshyam Mann 8bc3f816a3 Updating python testing classifier as per Yoga testing runtime
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: I2241143bb4936d7258f156b8e9d760607ed61d0e
2021-12-13 21:03:32 -06:00
Rajat Dhasmana b42ffa4035 Drop lower-constraints job
Change-Id: I1de76a70e07bbf2bd70900b4d93104a1b0fda74b
2021-08-12 05:17:45 -04:00
Sean McGinnis 82126ad6c6
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: I3548e78806a925c95641f9de355edd12971ea620
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:42 -05:00
Sean McGinnis 2baf5bbc62
Enforce constraints for docs dependencies
Tox targets for docs jobs were missing the upper constraints
enforcement. This adds constrained dependency installation for these
targets.

Change-Id: I187cfced08ec8dde561b947e797807dbbf723fe6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-08 07:42:53 -05:00
Andreas Jaeger 279ea4766e Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I99b8b24f714858f6b289e5e7b5976e519bb81c11
2020-04-02 15:26:13 +02:00
Naohiro Sameshima 261bad3e43 Add S3 store support to glance_store
Revive the S3 driver that was supported up to Mitaka and add multiple
store support to correspond with the features added to glance_store from
Newton to U cycle. In addition, the use of the S3 SDK used by the Mitaka
S3 driver has been deprecated, so this implementation will be changed
to use the new version.

Change-Id: I203134837319080ead96da69048baf90086d2117
Implements: blueprint re-support-s3-driver
2020-03-26 10:53:46 +09:00
Ghanshyam Mann 3bf4d29a0f Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

glance_store 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://review.opendev.org/#/c/691178/

Change-Id: I6166a20610f77e0df7da75198e0c8273bb121d1f
2020-01-22 16:27:08 +00:00
Zuul d5e2d653af Merge "Remove outdated line in tox.ini" 2019-07-19 17:24:04 +00:00
Corey Bryant c408c2e97c 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: I30e3405b21d6c9100f05fe3141bb30faaa86283e
Story: #2005924
Task: #34208
2019-06-24 10:23:18 -04:00
Vladislav Kuzmin 69420d60c4 Remove outdated line in tox.ini
Change-Id: Ia720cba4b1d75f114a1099efa4ef4fef7e2b264a
2019-06-05 21:05:34 +04:00
Zuul cd039c301e Merge "Dropping the py35 testing" 2019-06-02 15:07:43 +00:00
Zuul 8edfdf85a3 Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-05-30 20:45:59 +00:00
Ghanshyam Mann ae2ffc34d0 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: I7baf4fd7aeef4b012268fd95208019c1fa744fef
2019-05-28 10:57:46 +00:00
caoyuan d7acfb420f Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ia0b66aac906b7920f246c4710ed06d63e11276d8
2019-05-05 14:45:44 +08:00
Erno Kuvaja 0b23b4f229 remove bandit from testing
Change-Id: Ib9f7b9976382535aea946912b0e8b0ab32189b21
2018-08-16 19:59:56 +01:00
Zuul 0d0e4100e2 Merge "Update tox.ini to conform to the PTI" 2018-07-16 21:27:16 +00:00
Brian Rosmaita 94ade76bc3 Update tox.ini to conform to the PTI
The current Python Testing Interface specifies the use of
stester, so update tox.ini to use it.

Closes-bug: #1780272
Change-Id: I6b6c60486a26cfbb5793c074fe6f554c6a324846
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
2018-07-16 04:52:57 +00:00
Nguyen Hai b65459e69d Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
[3] http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: I06d510a44b9e8c0024f5e41f10f4446e18bf86cc
2018-07-16 01:26:52 +00:00
Doug Hellmann 573fde0ff9 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: Ife7b0078c67df55b4b5d5b3d27f4228907a5531b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 15:27:00 -04:00
Paul Belanger d0657add82
Remove tox_install.sh
Fully removing tox_install.sh as it is no longer needed with zuulv3.

Closes-bug: #1766500
Change-Id: Ic332b54bd5fbc64efc23f1118a8416291ae65df8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-24 14:25:28 -04:00
Doug Hellmann d4b3117295 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.

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

Change-Id: Iaf938db5d3d45a7187f2c2c619d0f86e90128fb2
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-09 16:02:48 -04:00
Zuul 5585eb388c Merge "Migrate legacy jobs to project repository" 2018-02-28 18:15:42 +00:00
Brian Rosmaita 33e6b01642 Migrate legacy jobs to project repository
Brings the legacy functional test jobs into the project repository,
rewritten for zuul3.  The base functional test class has been refactored
to use clouds.yaml, and the functional-swift test has been refactored
to use keystoneauth1.  The devstack hooks have been removed as they
are not necessary with zuul3.

Needed-By: I2a5ff2ee29e2fb8a730406f9f0e6a450b96c85b8
Needed-By: I96600383c072e6d2926f5ff5b6a51057e53d35fd
Change-Id: Iecea4375d1c4832b020b542ca4188b02444325ca
2018-02-19 17:08:54 +00:00
Hoang Trung Hieu 2a32fb63fa Add doc8 to pep8 check for glance_store project
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.

Co-authored-By: Nguyen Van Trung <trungnv@vn.fujitsu.com>
Change-Id: If35a7a9ea64c7482306ef6403e9585b78da27fb9
2018-02-01 09:11:53 +07:00
Li Wei 963e2a0fd1 Add python 3.5 in classifier and envlist
Now we can support py35 in classifier,and add the convenience
py35 env.

Change-Id: I98ac5543d995dca021fc3aff3993dc07fb2c4b7a
2017-04-06 17:31:50 +00:00
Andreas Jaeger 521b6e7dff Use constraints for all tox environments
Infra is now ready to use constraints everywhere, adapt the
environments to use the default install command instead of a specific
non-constrainted install command.

With this change, now all tox environments use constraints.

Change-Id: Ia5b7e42108395c593e900accadc447932c51f314
2016-08-10 13:22:48 +02:00
Jenkins c9eab5c123 Merge "Don't include openstack/common in flake8 exclude list" 2016-08-01 15:35:01 +00:00
Jenkins 016351b367 Merge "Split functional tests apart" 2016-07-30 21:55:54 +00:00
Nikhil Komawar 4432e60af2 Remove S3 driver
As per the deprecation indicated in change
I139c36c2d591a55f0f91ea32efa963f80c28e444 , we are on track to removing
the S3 driver from glance_store in Newton.

The process of maintainers for individual drives was initiated in [1].
However, S3 doesn't have a maintainer and has been deprecated in Mitaka.

This commit intends to remove the S3 driver completely from the
glance_store source tree. If required, we recommend that this driver be
maintained outside of the glance_store source tree until you or someone
you know intend to support the code for long term. In the later case, we
hope that you will welcome our spec process to help plan the project
priorities.

DocImpact
UpgradeImpact

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-December/081966.html

Change-Id: I032b0fc16400cbd2112687d38e010128be699221
2016-07-27 00:49:10 -04:00
song jian 830211c9fb Don't include 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: I3a72d3b7126037e98fde627233f26a4f1475b416
2016-07-12 14:27:23 +08:00
Eric Brown 79532ea599 Add bandit to pep8 and bandit testenv
This patch adds bandit security linter to tox jobs. It ignores
files in the 'tests' directory.

This patch will also fix or exclude any issues as a result from
scan.

Change-Id: I9caa41f596a17a8b961a542d4bc6bb121e7a147f
2016-07-08 22:39:55 +00:00
Niall Bunting 57cea8d0dd Split functional tests apart
Currently all the functional tests are ran together in one job. This
patch breaks the tests apart so only certain parts of them have to be ran.

This will mean the tests can be ran in parallel and only the particular
ones that are required, as the functional tests require that backend to
be avalible.

Change-Id: I61ba679b8041a89fb5a7589a62db8b6f42cd1058
2016-07-01 16:54:48 +00:00
Niall Bunting 5829046f72 Remove -c from tox.ini
An extra -c causes the script to read the url in error.

The tools/tox_install.sh script is using this -c option:
ea4483c0bf/tools/tox_install.sh (L26)

So, -c is unnecessary in tox.ini.

Change-Id: I04227b92a13f075dc18dfbbb6d47f17da3629ef3
Closes-Bug: 1590048
2016-06-07 22:08:18 +00:00
Jenkins 7417f25384 Merge "Add functional tests for swift" 2016-06-07 13:15:03 +00:00
Nikhil Komawar ea4483c0bf tox respects upper-constraints.txt
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.

There are a few 'post' jobs as Andreas has mentioned on this review,
that have the install_command overridden (until that will be supported
in upstream infra).

This change has been inspired by
Ie1133e4c020106e8098685ba9125f84b356d8e0c , notes from jaegerandi in the
openstack/glance's tox.ini file and Ihar's python-neutronclient's fix
I33302cdcab980a42c39dc9ec1e430add459615ff

Change-Id: I1f8be8184683c9a3671f750ebaa87c38163c9795
Closes-Bug: 1563038
2016-06-03 11:59:23 -05:00
Niall Bunting 1e87dfdec8 Add functional tests for swift
This change adds functional tests for swift.

Co-Authored-By: Louis Taylor <louis@kragniz.eu>

Change-Id: Ibdd17eebb49a5d96c5cfb02c0ec6bac4826aac7f
2016-05-09 14:44:17 +00:00
Danny Al-Gaaf 7b94d3c141 tox: use os-testr instead of testr
Make use of the testr OpenStack wrapper ostestr instead of
testr directly.

Closes-Bug: #1566354

Change-Id: I396be386c34e5e2a6587921aacd8eefa4622713a
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-04-05 21:24:29 +02:00
Jenkins 5c752ccecc Merge "Add base for functional tests" 2016-03-12 13:13:39 +00:00
Louis Taylor a9d6cceaa4 Add base for functional tests
This adds the basic functional testing structure and initial support for the
filesystem driver.

Change-Id: Ia7f03b9ed91cc38a12d33479f75af167b45caeb0
2016-02-18 17:02:14 +00:00
Jenkins 8286f2f5a3 Merge "Deprecated tox -downloadcache option removed" 2016-01-19 01:33:56 +00:00
Flavio Percoco d34a6e7495 Remove the gridfs driver
The gridfs driver was marked as deprecated some releases ago. This patch
removes the deprecated driver from the tree.

Change-Id: I72785eb77447909fc67d42e17d805eaa77cf45a2
2016-01-18 15:41:32 -04:30
Ondřej Nový f5b323f4cf 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: I5a8aecadc2dedca3f34f0e240fc5ba977b2cebb3
2016-01-02 22:03:17 +01:00
Flavio Percoco ec02a149c3 Add docs section to tox.ini
Change-Id: I694de56e3927968e179e7e101dfb740c627699a8
2015-12-15 22:30:03 -04:30
Jenkins 4d5e80ba93 Merge "Add reno for release notes management in glance_store" 2015-12-07 02:44:58 +00:00
Drew Varner 36469dd2bf Add reno for release notes management in glance_store
Change-Id: Idf4fd68514beef1afc90aaa6dd7625c30febfb93
2015-12-04 12:29:11 -06:00
Shuquan Huang e3f6e231bc Put py34 first in the env order of tox
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.

Change-Id: I2bd65c7af7c87b6c36439e6e4bb6230eca8d33ee
Closes-Bug: #1489059
2015-12-02 22:59:07 +08:00
THOMAS J. COCOZZELLO 5db9852314 Activate pep8 check that _ is imported
Remove the specification in tox.ini that _ is a builtin so that
it will no longer assume that _ does not need to be imported.
This helps ensure that the _ from i18n is used.

Activating this check did flag violations and they were fixed
in this patch.

Change-Id: Ia7e4c75b2126a67784683d1c22f0e24bc44113a4
2015-10-05 12:50:26 +00:00