Skip to content

Commit e202bbb

Browse files
committed
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. Canonical link: https://commits.webkit.org/141148@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157687 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 3ff48a7 commit e202bbb

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

Tools/ChangeLog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
2013-10-19 Ryosuke Niwa <rniwa@webkit.org>
2+
3+
run-webkit-tests should submit time and modifiers to the new flakiness dashboard
4+
https://bugs.webkit.org/show_bug.cgi?id=123070
5+
6+
Reviewed by Alexey Proskuryakov.
7+
8+
* Scripts/webkitpy/layout_tests/controllers/manager.py:
9+
(Manager.run):
10+
* Scripts/webkitpy/layout_tests/models/test_run_results.py:
11+
(summarize_results): Added include_time_and_modifiers. Report test_run_time and modifiers
12+
in the test expectations when this argument is set to true.
13+
114
2013-10-19 Alexey Proskuryakov <ap@apple.com>
215

316
Mac DumpRenderTree builds without NDEBUG even in release mode

Tools/Scripts/webkitpy/layout_tests/controllers/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def run(self, args):
228228
summarized_results = test_run_results.summarize_results(self._port, self._expectations, initial_results, retry_results, enabled_pixel_tests_in_retry)
229229
results_including_passes = None
230230
if self._options.results_server_host:
231-
results_including_passes = test_run_results.summarize_results(self._port, self._expectations, initial_results, retry_results, enabled_pixel_tests_in_retry, include_passes=True)
231+
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)
232232
self._printer.print_results(end_time - start_time, initial_results, summarized_results)
233233

234234
if not self._options.dry_run:

Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def _interpret_test_failures(failures):
118118
return test_dict
119119

120120

121-
def summarize_results(port_obj, expectations, initial_results, retry_results, enabled_pixel_tests_in_retry, include_passes=False):
121+
def summarize_results(port_obj, expectations, initial_results, retry_results, enabled_pixel_tests_in_retry, include_passes=False, include_time_and_modifiers=False):
122122
"""Returns a dictionary containing a summary of the test runs, with the following fields:
123123
'version': a version indicator
124124
'fixable': The number of fixable tests (NOW - PASS)
@@ -201,6 +201,10 @@ def summarize_results(port_obj, expectations, initial_results, retry_results, en
201201

202202
test_dict['expected'] = expected
203203
test_dict['actual'] = " ".join(actual)
204+
if include_time_and_modifiers:
205+
test_dict['time'] = round(1000 * result.test_run_time)
206+
# FIXME: Fix get_modifiers to return modifiers in new format.
207+
test_dict['modifiers'] = ' '.join(expectations.get_modifiers(test_name)).replace('BUGWK', 'webkit.org/b/')
204208

205209
test_dict.update(_interpret_test_failures(result.failures))
206210

0 commit comments

Comments
 (0)