From 480fb0ab6ad5281a00340f449991663dde17e2a8 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Wed, 17 Jun 2015 00:58:53 -0400 Subject: [PATCH] Implement notification on buildslave disconnection Add e-mail address (admin) to each buildslave, and implement notification when a buildslave is disconnected. Also, remove old fedora-21-ppc64le-1 buildslave. --- lib/config.json | 33 ++++++++++++++++++++++----------- master.cfg | 2 ++ 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/lib/config.json b/lib/config.json index 978c7f8..ec474b5 100644 --- a/lib/config.json +++ b/lib/config.json @@ -1,20 +1,31 @@ { - "slaves" : [ { "name" : "fedora-x86-64-1", "arch" : "x86_64", "jobs" : "4" }, - { "name" : "fedora-x86-64-2", "arch" : "x86_64", "jobs" : "4" }, + "slaves" : [ { "name" : "fedora-x86-64-1", "arch" : "x86_64", "jobs" : "4" + "admin" : "sergiodj@redhat.com" }, + { "name" : "fedora-x86-64-2", "arch" : "x86_64", "jobs" : "4" + "admin" : "sergiodj@redhat.com" }, - { "name" : "wildebeest-debian-wheezy-x86_64", "arch" : "x86_64", "jobs" : "2" }, - { "name" : "wildebeest-debian-wheezy-i686", "arch" : "i686", "jobs" : "2" }, + { "name" : "wildebeest-debian-wheezy-x86_64", "arch" : "x86_64", + "jobs" : "2", "admin" : "mark@klomp.org" }, + { "name" : "wildebeest-debian-wheezy-i686", "arch" : "i686", + "jobs" : "2", "admin" : "mark@klomp.org" }, - { "name" : "marist-fedora-s390x", "arch" : "s390x", "jobs" : "2" }, + { "name" : "marist-fedora-s390x", "arch" : "s390x", "jobs" : "2", + "admin" : "mark@klomp.org" }, - { "name" : "fedora-ppc64be-1", "arch" : "ppc64be", "jobs" : "16" }, + { "name" : "fedora-ppc64be-1", "arch" : "ppc64be", "jobs" : "16", + "admin" : "emachado@linux.vnet.ibm.com" }, - { "name" : "fedora-ppc64le-1", "arch" : "ppc64le", "jobs" : "16" }, + { "name" : "fedora-ppc64le-1", "arch" : "ppc64le", "jobs" : "16", + "admin" : "emachado@linux.vnet.ibm.com" }, - { "name" : "koobs-freebsd8", "arch" : "x86_64", "jobs" : "1" }, - { "name" : "koobs-freebsd9", "arch" : "x86_64", "jobs" : "1" }, - { "name" : "koobs-freebsd10", "arch" : "x86_64", "jobs" : "1" }, - { "name" : "koobs-freebsd11", "arch" : "x86_64", "jobs" : "1" } + { "name" : "koobs-freebsd8", "arch" : "x86_64", "jobs" : "1", + "admin" : "sergiodj@redhat.com" }, + { "name" : "koobs-freebsd9", "arch" : "x86_64", "jobs" : "1", + "admin" : "sergiodj@redhat.com" }, + { "name" : "koobs-freebsd10", "arch" : "x86_64", "jobs" : "1", + "admin" : "sergiodj@redhat.com" }, + { "name" : "koobs-freebsd11", "arch" : "x86_64", "jobs" : "1", + "admin" : "sergiodj@redhat.com" } ], "builders" : [ { "name" : "Fedora-x86_64-m64", "type" : "Plain_c64t64", diff --git a/master.cfg b/master.cfg index 8280cf8..88e3bfa 100644 --- a/master.cfg +++ b/master.cfg @@ -829,6 +829,8 @@ def load_config (c): c['slaves'] = [BuildSlave (slave['name'], passwd[slave['name']], max_builds = 1, + notify_on_missing = slave['admin'], + missing_timeout = 300, properties = { 'jobs' : slave['jobs'], 'randomWait' : "%d" % random.randrange (1, 30) }) for slave in config['slaves']]