buildbot 25:50ad1524d69c: Try to limit concurrent builds to 2.

commits at adium.im commits at adium.im
Thu Jun 13 03:07:44 UTC 2013


details:	http://hg.adium.im/buildbot/rev/50ad1524d69c
revision:	25:50ad1524d69c
branch:		(none)
author:		Frank Dowsett <wixardy at gmail.com>
date:		Wed Jun 12 23:07:17 2013 -0400

Try to limit concurrent builds to 2.

diffs (36 lines):

diff -r 74b1e35d0e83 -r 50ad1524d69c master.cfg
--- a/master.cfg	Wed Jun 05 23:08:42 2013 -0400
+++ b/master.cfg	Wed Jun 12 23:07:17 2013 -0400
@@ -40,6 +40,11 @@
 
 c['slavePortnum'] = 9989
 
+from buildbot import locks
+
+build_lock = locks.SlaveLock("slave_builds",
+                                  maxCount = 2)
+
 # Nightly Branches
 # ex.: ("repo", ["branch1", "branch2", "branch3"])
 
@@ -121,7 +126,8 @@
 c['builders'] = [
 	{'name': "adium",
 	 'slavenames': ["adium.muscovy"],
-	 'factory': adiumf
+	 'factory': adiumf,
+         'locks': [build_lock.access('counting')]
 	}
 ]
 
@@ -130,7 +136,9 @@
     
 	c['builders'].append({	'name': name,
 				'slavenames': ["adium.muscovy"],
-				'factory': nightlybranchf});
+				'factory': nightlybranchf,
+                                'locks': [build_lock.access('counting')]
+                             });
 
 # I can't think of a case where having a builddir named something other 
 # than the name of the builder is useful.




More information about the commits mailing list