public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Add multi-slave builders
@ 2018-05-10  4:34 Igor Torrente
  2018-05-10  4:35 ` [PATCH] Add two new compilation options Igor Torrente
  0 siblings, 1 reply; 5+ messages in thread
From: Igor Torrente @ 2018-05-10  4:34 UTC (permalink / raw)
  To: libc-alpha, rodolfo; +Cc: Igor Torrente

From: Igor Torrente <igortorrente@outlook.com>

Implementation of muiti-slave builders.
This patch will make easy creation of multi-slave builders for buildbot.

---
 master.cfg | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/master.cfg b/master.cfg
index 9ecb3f4..164d309 100644
--- a/master.cfg
+++ b/master.cfg
@@ -18,18 +18,21 @@ import slavepasswd
 # a shorter alias to save typing.
 c = BuildmasterConfig = {}
 
+# Map builders to a set of slaves(workers).
 builder_map = {
-  'glibc-x86_64-linux': 'glibc-ubuntu-trusty-slave2',
-  'glibc-i686-linux': 'glibc-ubuntu-trusty-slave2',
-  'glibc-power8-linux': 'fedora25-ppc64-power8-1',
-  'glibc-ppc-linux': 'debian8-ppc-power8-1',
-  'glibc-ppc64le-linux': 'fedora25-ppc64le-power8-1',
-  'glibc-s390x-linux': 'marist-fedora-s390x',
-  'glibc-aarch64-linux': 'reservedbit-xgene-ubuntu-aarch64',
+  'glibc-x86_64-linux':['glibc-ubuntu-trusty-slave2'],
+  'glibc-i686-linux': ['glibc-ubuntu-trusty-slave2'],
+  'glibc-power8-linux': ['fedora25-ppc64-power8-1'],
+  'glibc-ppc-linux': ['debian8-ppc-power8-1'],
+  'glibc-ppc64le-linux': ['fedora25-ppc64le-power8-1'],
+  'glibc-s390x-linux': ['marist-fedora-s390x'],
+  'glibc-aarch64-linux': ['reservedbit-xgene-ubuntu-aarch64'],
 }
 
+# Sets with all builders and all slaves.
 builders = sorted(set(builder_map.iterkeys()))
-slaves = sorted(set(builder_map.itervalues()))
+slaves = sorted(set(slave for slave_list in (builder_map.itervalues())
+                              for slave in slave_list))
 
 
 ####### BUILDSLAVES
@@ -68,10 +71,13 @@ c['schedulers'].append(ForceScheduler(
 from AnnotatedFactory import getGlibcAnnotatedFactory
 from buildbot.config import BuilderConfig
 
-c['builders'] = [BuilderConfig(name = builder,
-                               slavename = slave,
-                               factory = getGlibcAnnotatedFactory())
-                 for builder, slave in builder_map.iteritems()]
+# Creation of all builders.
+c['builders'] = []
+for builder in builder_map:
+    c['builders'].append(BuilderConfig(
+                                name = builder,
+                                slavenames= builder_map[builder],
+                                factory = getGlibcAnnotatedFactory()))
 
 ####### STATUS TARGETS
 
-- 
2.1.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-10 12:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10  4:34 [PATCH] Add multi-slave builders Igor Torrente
2018-05-10  4:35 ` [PATCH] Add two new compilation options Igor Torrente
2018-05-10  6:01   ` Siddhesh Poyarekar
2018-05-10  6:03     ` Siddhesh Poyarekar
2018-05-10 12:30     ` Tulio Magno Quites Machado Filho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).