From 5118c6fed7015fc92eec34656c33b78cc6209458 Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Tue, 12 Apr 2016 15:28:52 +0100 Subject: [PATCH] Add tempest variations of Designate DSVM jobs * Adds two new experimental jobs (Designate+Bind9/PowerDNS) * Does not restrict execution branch yet, we'll want this to be Neuton+ as it moves over the check/gate queues. For now, i'd like to see just how badly the remaining changes below fail on other branches, as we may choose to include these on Mitaka. * Replaces use of the gate / pre test / post tests hooks, as enough configurability is now exposed. * Uses tempest in "all-plugin" mode, limiting to all tests containing "designate" in the name. Ideally, this would be changed to "full-plugin" mode, without the designate restriction, but this does not exist in tempest's tox.ini * Attempts to be ready to add stable branch editions of this this using branch-override and job-suffix. Change-Id: I8166d447802b4520c0721b9f006b59543b3b548c --- jenkins/jobs/designate.yaml | 48 +++++++++++++++++++++++++++++++++++++ jenkins/jobs/projects.yaml | 7 ++++++ zuul/layout.yaml | 5 ++++ 3 files changed, 60 insertions(+) diff --git a/jenkins/jobs/designate.yaml b/jenkins/jobs/designate.yaml index c1bc3c2aa1..e715600018 100644 --- a/jenkins/jobs/designate.yaml +++ b/jenkins/jobs/designate.yaml @@ -1,3 +1,51 @@ +# Experimental job for Designate+Tempest +- job-template: + name: 'gate-tempest-dsvm-designate-{designate-driver}{job-suffix}' + + node: '{node}' + + wrappers: + - build-timeout: + timeout: 70 + - timestamps + + builders: + - print-template-name: + template-name: "{template-name}" + - link-logs + - print-node-uuid + - net-info + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX=designate + + export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_BACKEND_DRIVER={designate-driver}" + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export BRANCH_OVERRIDE={branch-override} + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + 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 + + - job-template: name: 'gate-designate-dsvm-{designate-driver}' diff --git a/jenkins/jobs/projects.yaml b/jenkins/jobs/projects.yaml index 02d09212ba..028ed4b388 100644 --- a/jenkins/jobs/projects.yaml +++ b/jenkins/jobs/projects.yaml @@ -1056,6 +1056,13 @@ - pypi-jobs - translation-jobs - gate-rally-dsvm-designate-{name} + - 'gate-tempest-dsvm-designate-{designate-driver}{job-suffix}': + node: ubuntu-trusty + branch-override: default + job-suffix: '' + designate-driver: + - powerdns + - bind9 - 'gate-designate-dsvm-{designate-driver}': node: ubuntu-trusty designate-driver: diff --git a/zuul/layout.yaml b/zuul/layout.yaml index f577bd96e7..2ff20d6b98 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -5199,6 +5199,8 @@ projects: post: - designate-coverage-db experimental: + - gate-tempest-dsvm-designate-powerdns + - gate-tempest-dsvm-designate-bind9 - gate-designate-dsvm-powerdns-postgres - name: openstack/designate-dashboard @@ -5246,6 +5248,9 @@ projects: - gate-designate-tempest-plugin-pep8 - gate-designate-dsvm-powerdns - gate-designate-dsvm-bind9 + experimental: + - gate-tempest-dsvm-designate-powerdns + - gate-tempest-dsvm-designate-bind9 - name: openstack/devstack-plugin-additional-pkg-repos template: