⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 120454 in webkit


Ignore:
Timestamp:
Jun 15, 2012, 7:22:13 AM (14 years ago)
Author:
dpranke@chromium.org
Message:

webkit-patch rebaseline-expectations should only rebaseline the appropriate suffixes for the failure in question
https://bugs.webkit.org/show_bug.cgi?id=88581

Reviewed by Adam Barth.

Make sure we only optimize the suffixes we rebaselined during
rebaseline-expectations, and not all suffixes for a test.
While optimizing is somewhere between harmless and good, it's also confusing :)

  • Scripts/webkitpy/tool/commands/rebaseline.py:

(RebaselineExpectations._rebaseline_port):
(RebaselineExpectations.execute):

  • Scripts/webkitpy/tool/commands/rebaseline_unittest.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r120452 r120454  
     12012-06-15  Dirk Pranke  <dpranke@chromium.org>
     2
     3        webkit-patch rebaseline-expectations should only rebaseline the appropriate suffixes for the failure in question
     4        https://bugs.webkit.org/show_bug.cgi?id=88581
     5
     6        Reviewed by Adam Barth.
     7
     8        Make sure we only optimize the suffixes we rebaselined during
     9        rebaseline-expectations, and not all suffixes for a test.
     10        While optimizing is somewhere between harmless and good, it's also confusing :)
     11
     12        * Scripts/webkitpy/tool/commands/rebaseline.py:
     13        (RebaselineExpectations._rebaseline_port):
     14        (RebaselineExpectations.execute):
     15        * Scripts/webkitpy/tool/commands/rebaseline_unittest.py:
     16
    1172012-06-15  Csaba Osztrogonác  <ossy@webkit.org>
    218
  • trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline.py

    r119766 r120454  
    285285        _log.info("Retrieving results for %s from %s." % (port_name, builder_name))
    286286        for test_name, suffixes in self._tests_to_rebaseline(self._tool.port_factory.get(port_name)).iteritems():
    287             self._touched_test_names.add(test_name)
     287            self._touched_tests.setdefault(test_name, set()).update(set(suffixes))
    288288            _log.info("    %s (%s)" % (test_name, ','.join(suffixes)))
    289289            # FIXME: we should use executive.run_in_parallel() to speed this up.
     
    291291
    292292    def execute(self, options, args, tool):
    293         self._touched_test_names = set([])
     293        self._touched_tests = {}
    294294        for port_name in tool.port_factory.all_port_names():
    295295            self._rebaseline_port(port_name)
     
    298298        if not options.optimize:
    299299            return
    300         for test_name in self._touched_test_names:
    301             _log.info("Optimizing baselines for %s." % test_name)
    302             self._run_webkit_patch(['optimize-baselines', test_name])
     300        for test_name, suffixes in self._touched_tests.iteritems():
     301            _log.info("Optimizing baselines for %s (%s)." % (test_name, ','.join(suffixes)))
     302            self._run_webkit_patch(['optimize-baselines', '--suffixes', ','.join(suffixes), test_name])
    303303
    304304
  • trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py

    r120240 r120454  
    238238
    239239        expected_logs_with_optimize = expected_logs + (
    240             "Optimizing baselines for userscripts/another-test.html.\n"
    241             "Optimizing baselines for userscripts/images.svg.\n")
     240            "Optimizing baselines for userscripts/another-test.html (txt).\n"
     241            "Optimizing baselines for userscripts/images.svg (png).\n")
    242242        expected_stderr_with_optimize = expected_stderr + (
    243             "MOCK run_command: ['echo', 'optimize-baselines', 'userscripts/another-test.html'], cwd=/mock-checkout\n"
    244             "MOCK run_command: ['echo', 'optimize-baselines', 'userscripts/images.svg'], cwd=/mock-checkout\n")
     243            "MOCK run_command: ['echo', 'optimize-baselines', '--suffixes', 'txt', 'userscripts/another-test.html'], cwd=/mock-checkout\n"
     244            "MOCK run_command: ['echo', 'optimize-baselines', '--suffixes', 'png', 'userscripts/images.svg'], cwd=/mock-checkout\n")
    245245
    246246        command._tests_to_rebaseline = lambda port: {'userscripts/another-test.html': set(['txt']), 'userscripts/images.svg': set(['png'])}
Note: See TracChangeset for help on using the changeset viewer.