From f63f9b3ef13507323e03fc737266e1a1cde8d90f Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 3 Mar 2014 18:39:06 -0500 Subject: [PATCH] add job for testing that hooks work this is a simple job that just tests all the hook points. It should be fast. This is one of the places where we don't test as part of a normal d-g job, so we should ensure we don't break it. Change-Id: Ieea3ffd285f3f489df477413018b173b1e54e609 --- .../config/devstack-gate.yaml | 41 +++++++++++++++++++ .../openstack_project/files/zuul/layout.yaml | 1 + 2 files changed, 42 insertions(+) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml b/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml index 3e0b242ec1..a7dc2b9c35 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml @@ -51,6 +51,46 @@ - devstack-logs - console-log +- job-template: + name: 'check-dg-hooks-dsvm' + node: '{node}' + + wrappers: + - timeout: + timeout: 60 + fail: true + - timestamps + + builders: + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + + # place calls for all hooks in here + function pre_test_hook {{ + echo "I'm totally an awesome pre_test_hook" + }} + export -f pre_test_hook + + function gate_hook {{ + echo "I'm totally an awesome gate_hook" + }} + export -f gate_hook + + function post_test_hook {{ + echo "I'm totally an awesome post_test_hook" + }} + 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 + - link-logs + + publishers: + - devstack-logs + - console-log + - job-template: name: '{pipeline}-tempest-dsvm-full{branch-designator}' node: '{node}' @@ -1099,6 +1139,7 @@ jobs: - 'check-dg-tempest-dsvm-full' - 'check-dg-tempest-dsvm-full-reexec' + - 'check-dg-hooks-dsvm' - job-group: diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 0940553012..57d82d6e47 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -2728,6 +2728,7 @@ projects: - check-devstack-dsvm-cells - check-dg-tempest-dsvm-full - check-dg-tempest-dsvm-full-reexec + - check-dg-hooks-dsvm - check-tempest-dsvm-full - check-tempest-dsvm-postgres-full - check-tempest-dsvm-neutron