Add force schedulers to OpenSource EWS Buildbot
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Jun 2018 18:35:37 +0000 (18:35 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Jun 2018 18:35:37 +0000 (18:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=186876

Reviewed by Lucas Forschler.

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

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

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

index aa03b84..2be6006 100644 (file)
@@ -25,6 +25,7 @@ import json
 import re
 
 from buildbot.scheduler import AnyBranchScheduler, Periodic, Dependent, Triggerable, Nightly
+from buildbot.schedulers.forcesched import ForceScheduler, WorkerChoiceParameter
 from buildbot.worker import Worker
 from buildbot.util import identifiers as buildbot_identifiers
 
@@ -59,6 +60,11 @@ def loadBuilderConfig(c):
         scheduler = dict(map(lambda key_value_pair: (str(key_value_pair[0]), key_value_pair[1]), scheduler.items()))
         c['schedulers'].append(schedulerType(**scheduler))
 
+        force_scheduler = ForceScheduler(name='force-{0}'.format(scheduler['name']),
+                                         builderNames=scheduler['builderNames'],
+                                         properties=[WorkerChoiceParameter()])
+        c['schedulers'].append(force_scheduler)
+
 
 def checkValidWorker(worker):
     if not worker:
index ffcd90b..1047252 100644 (file)
@@ -1,3 +1,13 @@
+2018-06-21  Aakash Jain  <aakash_jain@apple.com>
+
+        Add force schedulers to OpenSource EWS Buildbot
+        https://bugs.webkit.org/show_bug.cgi?id=186876
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-build/loadConfig.py:
+        (loadBuilderConfig): Added support for ForceScheduler.
+
 2018-06-21  Robin Morisset  <rmorisset@apple.com>
 
         [WSL] Merge WSL_type.ott and WSL_exec.ott