Keep working to clean up PROJECTS list

This uses info provided to devstack-gate like whether or not Trove or
Sahara are enabled or which libs should be installed from source and not
pypi to populate a more minimal list of PROJECTS by default.

Note this doesn't switch all lib projects over to using the libs from
git signalling initially. Will test with a set of hopefully less common
libs to reduce impact.

Change-Id: Id2caf9561b361c1d4950856423282535d067e015
This commit is contained in:
Clark Boylan 2017-03-16 09:37:24 -07:00
parent f5f36d99a6
commit bd082d261a
1 changed files with 25 additions and 17 deletions

View File

@ -46,6 +46,18 @@ source $WORKSPACE/devstack-gate/functions.sh
start_timer
# Note that service/project enablement vars are here so that they can be
# used to select the PROJECTS list below reliably.
# Set to 1 to run sahara
export DEVSTACK_GATE_SAHARA=${DEVSTACK_GATE_SAHARA:-0}
# Set to 1 to run trove
export DEVSTACK_GATE_TROVE=${DEVSTACK_GATE_TROVE:-0}
# are we pulling any libraries from git
export DEVSTACK_PROJECT_FROM_GIT=${DEVSTACK_PROJECT_FROM_GIT:-}
# Save the PROJECTS variable as it was passed in. This is needed for reproduce.sh
# incase the job definition contains items that are not in the "global" list
# below.
@ -80,15 +92,12 @@ PROJECTS="openstack/tempest-lib $PROJECTS"
# which is not free.
PROJECTS="openstack-infra/tripleo-ci $PROJECTS"
PROJECTS="openstack/automaton $PROJECTS"
PROJECTS="openstack/cliff $PROJECTS"
PROJECTS="openstack/debtcollector $PROJECTS"
# The devstack heat plugin uses these repos
if [[ "$DEVSTACK_GATE_HEAT" -eq "1" ]] ; then
PROJECTS="openstack/dib-utils $PROJECTS"
PROJECTS="openstack/diskimage-builder $PROJECTS"
fi
PROJECTS="openstack/django_openstack_auth $PROJECTS"
PROJECTS="openstack/futurist $PROJECTS"
PROJECTS="openstack/manila $PROJECTS"
PROJECTS="openstack/manila-ui $PROJECTS"
PROJECTS="openstack/zaqar $PROJECTS"
@ -121,16 +130,24 @@ PROJECTS="openstack/oslo.serialization $PROJECTS"
PROJECTS="openstack/oslo.service $PROJECTS"
PROJECTS="openstack/oslo.versionedobjects $PROJECTS"
PROJECTS="openstack/oslo.vmware $PROJECTS"
PROJECTS="openstack/pycadf $PROJECTS"
PROJECTS="openstack/sahara $PROJECTS"
PROJECTS="openstack/sahara-dashboard $PROJECTS"
PROJECTS="openstack/stevedore $PROJECTS"
if [[ "$DEVSTACK_GATE_SAHARA" -eq "1" ]] ; then
PROJECTS="openstack/sahara $PROJECTS"
PROJECTS="openstack/sahara-dashboard $PROJECTS"
fi
PROJECTS="openstack/taskflow $PROJECTS"
PROJECTS="openstack/tooz $PROJECTS"
PROJECTS="openstack/tripleo-heat-templates $PROJECTS"
PROJECTS="openstack/tripleo-image-elements $PROJECTS"
PROJECTS="openstack/tripleo-incubator $PROJECTS"
PROJECTS="openstack/trove $PROJECTS"
if [[ "$DEVSTACK_GATE_TROVE" -eq "1" ]] ; then
PROJECTS="openstack/trove $PROJECTS"
fi
if [[ -n "$DEVSTACK_PROJECT_FROM_GIT" ]] ; then
# We populate the PROJECTS list with any libs that should be installed
# from source and not pypi assuming that live under openstack/
PROCESSED_FROM_GIT=$(echo "openstack/$DEVSTACK_PROJECT_FROM_GIT" | sed -e 's/,/ openstack\//g')
PROJECTS="$PROCESSED_FROM_GIT $PROJECTS"
fi
# Remove duplicates as they result in errors when managing
# git state.
@ -237,12 +254,6 @@ export DEVSTACK_GATE_IRONIC_DRIVER=${DEVSTACK_GATE_IRONIC_DRIVER:-pxe_ssh}
# Set to 0 to avoid building Ironic deploy ramdisks
export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=${DEVSTACK_GATE_IRONIC_BUILD_RAMDISK:-1}
# Set to 1 to run sahara
export DEVSTACK_GATE_SAHARA=${DEVSTACK_GATE_SAHARA:-0}
# Set to 1 to run trove
export DEVSTACK_GATE_TROVE=${DEVSTACK_GATE_TROVE:-0}
# Set to 0 to disable config_drive and use the metadata server instead
export DEVSTACK_GATE_CONFIGDRIVE=${DEVSTACK_GATE_CONFIGDRIVE:-0}
@ -256,9 +267,6 @@ if [ ${DEFAULT_CONCURRENCY} -gt 3 ] ; then
fi
export TEMPEST_CONCURRENCY=${TEMPEST_CONCURRENCY:-${DEFAULT_CONCURRENCY}}
# are we pulling any libraries from git
export DEVSTACK_PROJECT_FROM_GIT=${DEVSTACK_PROJECT_FROM_GIT:-}
# The following variable is set for different directions of Grenade updating
# for a stable branch we want to both try to upgrade forward n => n+1 as
# well as upgrade from last n-1 => n.