Title: [105848] trunk/Tools
Revision
105848
Author
[email protected]
Date
2012-01-24 22:08:41 -0800 (Tue, 24 Jan 2012)

Log Message

WebKit needs public performance tests running on public bots
https://bugs.webkit.org/show_bug.cgi?id=10266

Reviewed by Adam Barth.

Completes the initial implementation of WebKit Perf bots. Add a build step for run-perf-test
and make google-mac-4 run it, and upload the results to webkit-perf.webkit.org.

* BuildSlaveSupport/build.webkit.org-config/config.json:
* BuildSlaveSupport/build.webkit.org-config/master.cfg:
(RunAndUploadPerfTests):
(RunAndUploadPerfTests.start):
(UploadPerfTestResults):
(BuildAndPerfTestFactory):
(BuildAndPerfTestFactory.__init__):

Modified Paths

Diff

Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/config.json (105847 => 105848)


--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/config.json	2012-01-25 05:27:02 UTC (rev 105847)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/config.json	2012-01-25 06:08:41 UTC (rev 105848)
@@ -228,7 +228,7 @@
                     {
                       "name": "Chromium Mac Release (Tests)", "type": "NewBuildAndTest", "builddir": "chromium-mac-release-tests",
                       "platform": "chromium-mac", "configuration": "release", "architectures": ["i386"],
-                      "slavenames": ["google-mac-2", "google-mac-4"]
+                      "slavenames": ["google-mac-2"]
                     },
                     {
                       "name": "Chromium Linux Release", "type": "Build", "builddir": "chromium-linux-release",
@@ -251,6 +251,11 @@
                       "slavenames": ["google-linux-android"]
                     },
                     {
+                      "name": "Chromium Mac Release (Perf)", "type": "BuildAndPerfTest", "builddir": "chromium-mac-perf-tests",
+                      "platform": "chromium-mac", "configuration": "release", "architectures": ["i386"],
+                      "slavenames": ["google-mac-4"]
+                    },
+                    {
                       "name": "WinCairo Release", "type": "BuildAndTest", "builddir": "win-cairo-release",
                       "platform": "wincairo", "configuration": "release", "architectures": ["i386"],
                       "slavenames": ["wincairo-1"]

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


--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg	2012-01-25 05:27:02 UTC (rev 105847)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg	2012-01-25 06:08:41 UTC (rev 105848)
@@ -614,6 +614,24 @@
                WithProperties("--%(configuration)s")]
 
 
+class RunAndUploadPerfTests(shell.Test):
+   name = "perf-test"
+   description = ["perf-tests running"]
+   descriptionDone = ["perf-tests"]
+   command = ["python", "./Tools/Scripts/run-perf-tests",
+              "--output-json-path", "perf-test-results.json",
+              "--source-json-path", "../../perf-test-config.json",
+              "--test-results-server", "webkit-perf.appspot.com",
+              "--builder-name", WithProperties("%(buildername)s"),
+              "--build-number", WithProperties("%(buildnumber)s"),
+              "--platform", WithProperties("%(fullPlatform)s"),
+              WithProperties("--%(configuration)s")]
+
+   def start(self):
+       self.setCommand(self.command)
+       return shell.Test.start(self)
+
+
 class ArchiveTestResults(shell.ShellCommand):
     command = ["python", "./Tools/BuildSlaveSupport/test-result-archive",
                WithProperties("--platform=%(platform)s"), WithProperties("--%(configuration)s"), "archive"]
@@ -749,6 +767,14 @@
 class TestWebKit2Factory(TestFactory):
     TestClass = RunWebKit2Tests
 
+class BuildAndPerfTestFactory(Factory):
+    def __init__(self, platform, configuration, architectures, **kwargs):
+        Factory.__init__(self, platform, configuration, architectures, False, **kwargs)
+        if platform.startswith("chromium"):
+            self.addStep(CleanupChromiumCrashLogs)
+        self.addStep(CompileWebKit)
+        self.addStep(RunAndUploadPerfTests)
+
 class PlatformSpecificScheduler(AnyBranchScheduler):
     def __init__(self, platform, branch, **kwargs):
         self.platform = platform

Modified: trunk/Tools/ChangeLog (105847 => 105848)


--- trunk/Tools/ChangeLog	2012-01-25 05:27:02 UTC (rev 105847)
+++ trunk/Tools/ChangeLog	2012-01-25 06:08:41 UTC (rev 105848)
@@ -1,3 +1,21 @@
+2012-01-23  Ryosuke Niwa  <[email protected]>
+
+        WebKit needs public performance tests running on public bots
+        https://bugs.webkit.org/show_bug.cgi?id=10266
+
+        Reviewed by Adam Barth.
+
+        Completes the initial implementation of WebKit Perf bots. Add a build step for run-perf-test
+        and make google-mac-4 run it, and upload the results to webkit-perf.webkit.org.
+
+        * BuildSlaveSupport/build.webkit.org-config/config.json:
+        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
+        (RunAndUploadPerfTests):
+        (RunAndUploadPerfTests.start):
+        (UploadPerfTestResults):
+        (BuildAndPerfTestFactory):
+        (BuildAndPerfTestFactory.__init__):
+
 2012-01-24  Ojan Vafai  <[email protected]>
 
         Initializing the browser property of the Bugzilla class takes too long
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to