Deprecate all-plugin

The all-plugin tox env uses sitepackages so that plugins
installed outsite of Tempest virtual environment can be discovered.
After the implementation during the Queens release cycle of the
goal of moving Tempest plugins in dedicated git repos, this
environment should not be used anymore. "all" should be used
instead with the appropriate regex filtering.

The deprecation is introduced only in the form of a comment in
tox.ini and a WARNING echoed before the test run.

Patrole needs an environment with site-packages on, so create a
new one identical to the old all-plugin, but with a less confusing
name, for patrole to use while avoiding deprecation warnings.

Change-Id: Ib97fb3d0ce64b6faac6a190afc0006b624ce0a62
This commit is contained in:
Andrea Frittoli 2018-02-13 15:42:25 +00:00 committed by Ghanshyam Mann
parent ecddd38ecb
commit 35d12caf27
1 changed files with 20 additions and 0 deletions

20
tox.ini
View File

@ -61,6 +61,26 @@ commands =
tempest run --regex {posargs}
[testenv:all-plugin]
# DEPRECATED
# NOTE(andreaf) The all-plugin tox env uses sitepackages
# so that plugins installed outsite of Tempest virtual environment
# can be discovered. After the implementation during the Queens
# release cycle of the goal of moving Tempest plugins in dedicated
# git repos, this environment should not be used anymore. "all"
# should be used instead with the appropriate regex filtering.
sitepackages = True
# 'all' includes slow tests
setenv =
{[tempestenv]setenv}
OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:1200}
deps = {[tempestenv]deps}
commands =
echo "WARNING: The all-plugin env is deprecated and will be removed"
echo "WARNING Please use the 'all' environment for Tempest plugins."
find . -type f -name "*.pyc" -delete
tempest run --regex {posargs}
[testenv:all-site-packages]
sitepackages = True
# 'all' includes slow tests
setenv =