Add a test-accounts src-{mame} exp job

To debug lp1524717 - and other bugs in future related to the
pre-provisioned test accounts code branch, I need the abililty
to add debug statement on tempest-lib, while using the
preprovisioned test accounts setup.

This new experimental job allows doing exactly that by:
- create a debugging patch in tempest-lib
- pickup that patch via depends-on in a tempest patch
- check experimental on the tempest patch

Change-Id: I0feda498016686499493856b86a73f132613dd41
This commit is contained in:
Andrea Frittoli (andreaf) 2015-12-14 16:31:28 +01:00
parent 1e536d743d
commit 7a964280db
3 changed files with 51 additions and 0 deletions

View File

@ -113,6 +113,50 @@
- devstack-logs
- console-log
# tempest-dsvm-test-accounts-src-{name} - run a devstack tempest job, but use
# the zuul git ref for name instead of the released library version. This uses
# preprovisioned test accounts instead of dynamically provisioned ones.
#
# Purpose: this allows libraries to test their proposed commits to
# ensure they don't break OpenStack on their next release. It is
# expected to eventually be part of all library jobs in OpenStack, as
# the main tempest-dsvm jobs will be using only released versions of
# libraries.
- job-template:
name: '{pipeline}-tempest-dsvm-test-accounts-src-{name}{job-suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 125
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PROJECTS="openstack/{name} $PROJECTS"
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=120
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_FULL=1
export DEVSTACK_LOCAL_CONFIG="TEMPEST_USE_TEST_ACCOUNTS=True"
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export DEVSTACK_PROJECT_FROM_GIT={name}
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log
# tempest-dsvm-neutron-src-{name} - run a devstack tempest job, but
# use the zuul git ref for name instead of the released library
# version. This uses neutron instead of nova-network.
@ -2828,6 +2872,7 @@
jobs:
- '{pipeline}-tempest-dsvm-full{job-suffix}'
- '{pipeline}-tempest-dsvm-src-{name}{job-suffix}'
- '{pipeline}-tempest-dsvm-test-accounts-src-{name}{job-suffix}'
- '{pipeline}-tempest-dsvm-neutron-src-{name}{job-suffix}'
- '{pipeline}-tempest-dsvm-largeops-src-{name}{job-suffix}'
- '{pipeline}-tempest-dsvm-full-ceph-src-{name}{job-suffix}'

View File

@ -6,6 +6,11 @@
node: 'devstack-precise || devstack-trusty'
job-suffix: ''
branch-override: default
- '{pipeline}-tempest-dsvm-test-accounts-src-{name}{job-suffix}':
pipeline: gate
node: 'devstack-precise || devstack-trusty'
job-suffix: ''
branch-override: default
- job-group:
name: 'stable-compat-jobs-{name}'

View File

@ -9409,6 +9409,7 @@ projects:
- gate-tempest-dsvm-nova-v20-api
- gate-tempest-dsvm-nova-v20-api-legacy
- gate-tempest-dsvm-neutron-src-tempest-lib
- gate-tempest-dsvm-test-accounts-src-tempest-lib
post:
- tempest-docs
- tempest-coverage