Title: [157687] trunk/Tools
Revision
157687
Author
[email protected]
Date
2013-10-19 16:38:14 -0700 (Sat, 19 Oct 2013)

Log Message

run-webkit-tests should submit time and modifiers to the new flakiness dashboard
https://bugs.webkit.org/show_bug.cgi?id=123070

Reviewed by Alexey Proskuryakov.

* Scripts/webkitpy/layout_tests/controllers/manager.py:
(Manager.run):
* Scripts/webkitpy/layout_tests/models/test_run_results.py:
(summarize_results): Added include_time_and_modifiers. Report test_run_time and modifiers
in the test expectations when this argument is set to true.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (157686 => 157687)


--- trunk/Tools/ChangeLog	2013-10-19 23:18:37 UTC (rev 157686)
+++ trunk/Tools/ChangeLog	2013-10-19 23:38:14 UTC (rev 157687)
@@ -1,3 +1,16 @@
+2013-10-19  Ryosuke Niwa  <[email protected]>
+
+        run-webkit-tests should submit time and modifiers to the new flakiness dashboard
+        https://bugs.webkit.org/show_bug.cgi?id=123070
+
+        Reviewed by Alexey Proskuryakov.
+
+        * Scripts/webkitpy/layout_tests/controllers/manager.py:
+        (Manager.run):
+        * Scripts/webkitpy/layout_tests/models/test_run_results.py:
+        (summarize_results): Added include_time_and_modifiers. Report test_run_time and modifiers
+        in the test expectations when this argument is set to true.
+
 2013-10-19  Alexey Proskuryakov  <[email protected]>
 
         Mac DumpRenderTree builds without NDEBUG even in release mode

Modified: trunk/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py (157686 => 157687)


--- trunk/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py	2013-10-19 23:18:37 UTC (rev 157686)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py	2013-10-19 23:38:14 UTC (rev 157687)
@@ -228,7 +228,7 @@
         summarized_results = test_run_results.summarize_results(self._port, self._expectations, initial_results, retry_results, enabled_pixel_tests_in_retry)
         results_including_passes = None
         if self._options.results_server_host:
-            results_including_passes = test_run_results.summarize_results(self._port, self._expectations, initial_results, retry_results, enabled_pixel_tests_in_retry, include_passes=True)
+            results_including_passes = test_run_results.summarize_results(self._port, self._expectations, initial_results, retry_results, enabled_pixel_tests_in_retry, include_passes=True, include_time_and_modifiers=True)
         self._printer.print_results(end_time - start_time, initial_results, summarized_results)
 
         if not self._options.dry_run:

Modified: trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py (157686 => 157687)


--- trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py	2013-10-19 23:18:37 UTC (rev 157686)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py	2013-10-19 23:38:14 UTC (rev 157687)
@@ -118,7 +118,7 @@
     return test_dict
 
 
-def summarize_results(port_obj, expectations, initial_results, retry_results, enabled_pixel_tests_in_retry, include_passes=False):
+def summarize_results(port_obj, expectations, initial_results, retry_results, enabled_pixel_tests_in_retry, include_passes=False, include_time_and_modifiers=False):
     """Returns a dictionary containing a summary of the test runs, with the following fields:
         'version': a version indicator
         'fixable': The number of fixable tests (NOW - PASS)
@@ -201,6 +201,10 @@
 
         test_dict['expected'] = expected
         test_dict['actual'] = " ".join(actual)
+        if include_time_and_modifiers:
+            test_dict['time'] = round(1000 * result.test_run_time)
+            # FIXME: Fix get_modifiers to return modifiers in new format.
+            test_dict['modifiers'] = ' '.join(expectations.get_modifiers(test_name)).replace('BUGWK', 'webkit.org/b/')
 
         test_dict.update(_interpret_test_failures(result.failures))
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to