Changeset 157687 in webkit


Ignore:
Timestamp:
Oct 19, 2013 4:38:14 PM (11 years ago)
Author:
rniwa@webkit.org
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.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r157686 r157687  
     12013-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
    1142013-10-19  Alexey Proskuryakov  <ap@apple.com>
    215
  • trunk/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py

    r157553 r157687  
    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
  • trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py

    r154450 r157687  
    119119
    120120
    121 def summarize_results(port_obj, expectations, initial_results, retry_results, enabled_pixel_tests_in_retry, include_passes=False):
     121def 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
     
    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))
Note: See TracChangeset for help on using the changeset viewer.