gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-deployment] branch master updated: BB.


From: gnunet
Subject: [GNUnet-SVN] [taler-deployment] branch master updated: BB.
Date: Fri, 19 Apr 2019 18:34:04 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 20e4182  BB.
20e4182 is described below

commit 20e418250169a70a730c6089daf718a37af5b2d2
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Apr 19 18:33:28 2019 +0200

    BB.
    
    Do not use "names maps" to pick the worker, but rather
    match against its base directory.
---
 buildbot/master.cfg | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 73f0d02..0853e34 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -486,10 +486,6 @@ LCOV_BUILDER = util.BuilderConfig(
 # auditor reports.
 def pick_active_color(builder, workers_list, build_request):
 
-    # Maps unix users (typically found on Gv) to worker names.
-    NAMEMAP = {"test-green": "auditor-worker-green",
-               "test-blue": "auditor-worker-blue"}
-
     f = open("/home/test/active", "r")
     if not f:
         print("'test' doesn't specify the active color, abort")
@@ -499,7 +495,8 @@ def pick_active_color(builder, workers_list, build_request):
     print("Found active color: %s" % str(active))
 
     for worker in workers_list:
-        if NAMEMAP.get(active) == worker.worker.workername:
+        if re.search("^/home/%s" % active,
+                     worker.worker.basedir):
             f.close()
             print("Scheduling worker: %s" % str(worker))
             return worker
@@ -534,10 +531,6 @@ DEMO_SERVICES_CHECKER_BUILDER = util.BuilderConfig(
 # Taler.
 def pick_inactive_color(builder, workers_list, build_request):
 
-    # Maps unix users (typically found on Gv) to worker names.
-    NAMEMAP = {"test-green": "builder-worker-green",
-               "test-blue": "builder-worker-blue"}
-
     f = open("/home/test/nonactive", "r")
     if not f:
         print("'test' doesn't specify the nonactive color, abort")
@@ -547,7 +540,8 @@ def pick_inactive_color(builder, workers_list, 
build_request):
     print("Found nonactive color: %s" % str(nonactive))
 
     for worker in workers_list:
-        if NAMEMAP.get(nonactive) == worker.worker.workername:
+        if re.search("^/home/%s" % nonactive,
+                     worker.worker.basedir):
             f.close()
             print("Scheduling worker: %s" % str(worker))
             return worker

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]