From 53e65fd614af8f45235eb4a2776d6df805474c77 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 6 Feb 2015 13:59:13 -0500 Subject: [PATCH] ec2api tempest job This creates a non voting check job for ec2api changes that includes setting up a devstack environment using an external devstack plugin in a zuul compatible way. This is also a good reference for other teams that would like test jobs which include devstack external plugins. Change-Id: I8e31fd4f771e498efd5d8671acee0a3c3c8a184e --- jenkins/jobs/ec2-api.yaml | 42 ++++++++++++++++++++++++++++++++++++++ jenkins/jobs/projects.yaml | 5 +++++ zuul/layout.yaml | 4 ++++ 3 files changed, 51 insertions(+) create mode 100644 jenkins/jobs/ec2-api.yaml diff --git a/jenkins/jobs/ec2-api.yaml b/jenkins/jobs/ec2-api.yaml new file mode 100644 index 0000000000..0f4dfdcec1 --- /dev/null +++ b/jenkins/jobs/ec2-api.yaml @@ -0,0 +1,42 @@ +- job-template: + name: '{pipeline}-tempest-dsvm-ec2api{branch-designator}' + node: '{node}' + + wrappers: + - build-timeout: + timeout: 125 + - timestamps + + builders: + - link-logs + - net-info + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TIMEOUT=120 + # NOTE(sdague): which of tempest / neutron should be run + # here is pretty up for grabs, but this can be adjusted over + # time. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export BRANCH_OVERRIDE={branch-override} + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="stackforge/ec2-api $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG="enable_plugin ec2-api git://git.openstack.org/stackforge/ec2-api" + + 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 diff --git a/jenkins/jobs/projects.yaml b/jenkins/jobs/projects.yaml index db5ef67ef8..ddf89e9a86 100755 --- a/jenkins/jobs/projects.yaml +++ b/jenkins/jobs/projects.yaml @@ -3206,6 +3206,11 @@ jobs: - python-jobs + - '{pipeline}-tempest-dsvm-ec2api{branch-designator}': + pipeline: check + node: 'devstack-precise || devstack-trusty' + branch-designator: '' + branch-override: default - project: name: ec2-driver diff --git a/zuul/layout.yaml b/zuul/layout.yaml index 35ddc33055..379aa93fef 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -596,6 +596,9 @@ jobs: - name: check-tempest-dsvm-f21 branch: ^(?!stable) voting: false + - name: check-tempest-dsvm-ec2api + branch: ^(?!stable) + voting: false - name: check-tempest-dsvm-centos7 branch: ^(?!stable/icehouse).*$ voting: false @@ -4471,6 +4474,7 @@ projects: check: - gate-ec2-api-pep8 - gate-ec2-api-python27 + - check-tempest-dsvm-ec2api gate: - gate-ec2-api-pep8 - gate-ec2-api-python27