Title: [117508] trunk/Tools
Revision
117508
Author
[email protected]
Date
2012-05-17 15:44:30 -0700 (Thu, 17 May 2012)

Log Message

Update Apple buildbots to prioritize latest changelists
https://bugs.webkit.org/show_bug.cgi?id=86766

Reviewed by Brady Eidson.

* BuildSlaveSupport/build.webkit.org-config/master.cfg:
(pickLatestBuild): Function to get the most pick the most recent build request.
(loadBuilderConfig): Configure builders in the AppleMac and AppleWin categories to
use the pickLatestBuild function when choosing which request to build next.

Modified Paths

Diff

Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg (117507 => 117508)


--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg	2012-05-17 22:35:07 UTC (rev 117507)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg	2012-05-17 22:44:30 UTC (rev 117508)
@@ -16,6 +16,7 @@
 import os
 import re
 import json
+import operator
 import urllib
 
 from committer_auth import CommitterAuth
@@ -707,6 +708,9 @@
     return (platform == 'win' or platform.startswith('mac')
             or (platform.startswith('chromium') and platform != 'chromium-android'))
 
+def pickLatestBuild(builder, requests):
+    return max(requests, key=operator.attrgetter("submittedAt"))
+
 class TestFactory(Factory):
     TestClass = RunWebKitTests
     ExtractTestResultsClass = ExtractTestResults
@@ -880,6 +884,9 @@
         else:
             builder["category"] = 'misc'
 
+        if builder['category'] == 'AppleMac' or builder['category'] == 'AppleWin':
+            builder['nextBuild'] = pickLatestBuild
+
         c['builders'].append(builder)
 
 loadBuilderConfig(c)

Modified: trunk/Tools/ChangeLog (117507 => 117508)


--- trunk/Tools/ChangeLog	2012-05-17 22:35:07 UTC (rev 117507)
+++ trunk/Tools/ChangeLog	2012-05-17 22:44:30 UTC (rev 117508)
@@ -1,3 +1,15 @@
+2012-05-17  Jon Lee  <[email protected]>
+
+        Update Apple buildbots to prioritize latest changelists
+        https://bugs.webkit.org/show_bug.cgi?id=86766
+
+        Reviewed by Brady Eidson.
+
+        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
+        (pickLatestBuild): Function to get the most pick the most recent build request.
+        (loadBuilderConfig): Configure builders in the AppleMac and AppleWin categories to
+        use the pickLatestBuild function when choosing which request to build next.
+
 2012-05-17  Caio Marcelo de Oliveira Filho  <[email protected]>
 
         [Qt] Fix MiniBrowser by using correct syntax for qrc URLs
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to