From b237ff8c297ae2a1b5730fdc4dac87a57b474ee8 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Thu, 31 Jul 2014 16:12:38 +1200 Subject: [PATCH] Define check-heat-dsvm-functional job This job will do the following: * start devstack * source demo credentials required by functional tests * run the functional tests from the heat tree This job is initially non-voting and only applied to openstack/heat. The heat-slow job will be deleted once this job is voting and also applied to openstack projects which the functional tests exercise. Partial-Blueprint: functional-tests Change-Id: I149e4ed53ab951ae8f17c3f91f79bf7ccba7b5c7 --- .../jenkins_job_builder/config/heat.yaml | 39 +++++++++++++++++++ .../jenkins_job_builder/config/projects.yaml | 5 +++ .../openstack_project/files/zuul/layout.yaml | 4 ++ 3 files changed, 48 insertions(+) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml b/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml index 6fd53a31a2..1a86c0be7b 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml @@ -29,3 +29,42 @@ publishers: - devstack-logs - console-log + +- job-template: + name: '{pipeline}-heat-dsvm-functional{branch-designator}' + node: '{node}' + + wrappers: + - build-timeout: + timeout: 65 + - timestamps + + builders: + - link-logs + - net-info + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TIMEOUT=120 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export HEAT_CREATE_TEST_IMAGE=True + export BRANCH_OVERRIDE={branch-override} + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook {{ + source /opt/stack/new/devstack/accrc/demo/demo + cd /opt/stack/new/heat + tox -efunctional + }} + export -f post_test_hook + 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/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml index 0214b108c8..913c2e1d99 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml @@ -682,6 +682,11 @@ jobs: - python-jobs + - '{pipeline}-heat-dsvm-functional{branch-designator}': + pipeline: check + node: 'devstack-precise || devstack-trusty' + branch-designator: '' + branch-override: default - python-havana-bitrot-jobs - openstack-publish-jobs - translation-jobs diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 19bd80fe0c..96d8e1d184 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -488,6 +488,9 @@ jobs: voting: false - name: ^(gate|check)-tempest-dsvm-neutron-heat-slow branch: ^(?!stable/havana).*$ + - name: check-heat-dsvm-functional + branch: ^(?!stable/(havana|icehouse)).*$ + voting: false - name: check-tempest-dsvm-ironic-nv voting: false - name: check-tempest-dsvm-ironic-postgres-nv @@ -983,6 +986,7 @@ projects: - name: integrated-gate - name: translation-jobs check: + - check-heat-dsvm-functional - check-devstack-dsvm-cells - gate-rally-dsvm-fakevirt-heat gate: