Changeset 89302 in webkit


Ignore:
Timestamp:
Jun 20, 2011 4:05:40 PM (13 years ago)
Author:
dpranke@chromium.org
Message:

2011-06-20 Dirk Pranke <dpranke@chromium.org>

Reviewed by Ojan Vafai.

new-run-webkit-tests: order shards by name, not number of tests
https://bugs.webkit.org/show_bug.cgi?id=62753

  • Scripts/webkitpy/layout_tests/layout_package/manager.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r89290 r89302  
     12011-06-20  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Ojan Vafai.
     4
     5        new-run-webkit-tests: order shards by name, not number of tests
     6        https://bugs.webkit.org/show_bug.cgi?id=62753
     7
     8        * Scripts/webkitpy/layout_tests/layout_package/manager.py:
     9
    1102011-06-20  Dirk Pranke  <dpranke@chromium.org>
    211
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/manager.py

    r89206 r89302  
    569569                    tests_by_dir.setdefault(directory, [])
    570570                    tests_by_dir[directory].append(test_input)
    571             # Sort by the number of tests in the dir so that the ones with the
    572             # most tests get run first in order to maximize parallelization.
    573             # Number of tests is a good enough, but not perfect, approximation
    574             # of how long that set of tests will take to run. We can't just use
    575             # a PriorityQueue until we move to Python 2.6.
    576571            for directory in tests_by_dir:
    577572                test_list = tests_by_dir[directory]
    578573                test_list_tuple = (directory, test_list)
    579574                test_lists.append(test_list_tuple)
    580             test_lists.sort(lambda a, b: cmp(len(b[1]), len(a[1])))
     575
     576            # Sort the shards by directory name.
     577            test_lists.sort(lambda a, b: cmp(a[0], b[0]))
    581578
    582579        # Put the http tests first. There are only a couple hundred of them,
Note: See TracChangeset for help on using the changeset viewer.