[ews-build] Add support for max_builds parameter for workers
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Aug 2018 16:53:08 +0000 (16:53 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Aug 2018 16:53:08 +0000 (16:53 +0000)
https://bugs.webkit.org/show_bug.cgi?id=188531

Reviewed by Lucas Forschler.

* BuildSlaveSupport/ews-build/loadConfig.py:
(loadBuilderConfig): Added support for max_builds.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234850 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/ews-build/loadConfig.py
Tools/ChangeLog

index 4fcc483..098a98c 100644 (file)
@@ -43,7 +43,7 @@ def loadBuilderConfig(c, use_localhost_worker=False, master_prefix_path='./'):
     checkWorkersAndBuildersForConsistency(config, config['workers'], config['builders'])
     checkValidSchedulers(config, config['schedulers'])
 
-    c['workers'] = [Worker(worker['name'], passwords.get(worker['name'], 'password')) for worker in config['workers']]
+    c['workers'] = [Worker(worker['name'], passwords.get(worker['name'], 'password'), max_builds=worker.get('max_builds', 1)) for worker in config['workers']]
     if use_localhost_worker:
         c['workers'].append(Worker('local-worker', 'password', max_builds=2))
 
index 049918b..30b733a 100644 (file)
@@ -1,3 +1,13 @@
+2018-08-14  Aakash Jain  <aakash_jain@apple.com>
+
+        [ews-build] Add support for max_builds parameter for workers
+        https://bugs.webkit.org/show_bug.cgi?id=188531
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-build/loadConfig.py:
+        (loadBuilderConfig): Added support for max_builds.
+
 2018-08-14  Zalan Bujtas  <zalan@apple.com>
 
         [LFC][Floating] Adjust vertical position with non-collapsing previous sibling margin.