third_party/blink/tools/blinkpy/web_tests/controllers/web_test_runner.py
def _shard_every_file(self, test_inputs, run_singly, virtual_is_unlocked):
        """Returns two lists of shards, each shard containing a single test file.

        This mode gets maximal parallelism at the cost of much higher flakiness.
        """
        locked_shards = []
        unlocked_shards = []
        virtual_inputs = []

        for test_input in test_inputs:
            # Note that we use a '.' for the shard name; the name doesn't really
            # matter, and the only other meaningful value would be the filename,
            # which would be really redundant.
            if test_input.requires_lock:
                locked_shards.append(TestShard('.', [test_input]))
            elif (test_input.test_name.startswith('virtual') and not run_singly
                  and not virtual_is_unlocked):
                # This violates the spirit of sharding every file, but in practice, since the
                # virtual test suites require a different commandline flag and thus a restart
                # of content_shell, it's too slow to shard them fully.
                virtual_inputs.append(test_input)
            else:
                unlocked_shards.append(TestShard('.', [test_input]))

        locked_virtual_shards, unlocked_virtual_shards = self._shard_by_directory(
            virtual_inputs)

        # The locked shards still need to be limited to self._max_locked_shards in order to not
        # overload the http server for the http tests.
        return (self._resize_shards(locked_virtual_shards + locked_shards,
                                    self._max_locked_shards, 'locked_shard'),
                unlocked_virtual_shards + unlocked_shards)
Returns two lists of shards, each shard containing a single test file.

        This mode gets maximal parallelism at the cost of much higher flakiness.
        
Returns two lists of shards, each shard containing a single test file.
This mode gets maximal parallelism at the cost of much higher flakiness.
Returns two lists of shards each shard containing a single test file . This mode gets maximal parallelism at the cost of much higher flakiness .
def _shard_every_file(self, test_inputs, run_singly, virtual_is_unlocked):
        locked_shards = []
        unlocked_shards = []
        virtual_inputs = []
        for test_input in test_inputs:
            if test_input.requires_lock:
                locked_shards.append(TestShard('.', [test_input]))
            elif (test_input.test_name.startswith('virtual') and not run_singly
                  and not virtual_is_unlocked):
                virtual_inputs.append(test_input)
            else:
                unlocked_shards.append(TestShard('.', [test_input]))
        locked_virtual_shards, unlocked_virtual_shards = self._shard_by_directory(
            virtual_inputs)
        return (self._resize_shards(locked_virtual_shards + locked_shards,
                                    self._max_locked_shards, 'locked_shard'),
                unlocked_virtual_shards + unlocked_shards)
def _shard_every_file ( self , test_inputs , run_singly , virtual_is_unlocked ) : locked_shards = [ ] unlocked_shards = [ ] virtual_inputs = [ ] for test_input in test_inputs : if test_input . requires_lock : locked_shards . append ( TestShard ( '.' , [ test_input ] ) ) elif ( test_input . test_name . startswith ( 'virtual' ) and not run_singly and not virtual_is_unlocked ) : virtual_inputs . append ( test_input ) else : unlocked_shards . append ( TestShard ( '.' , [ test_input ] ) ) locked_virtual_shards , unlocked_virtual_shards = self . _shard_by_directory ( virtual_inputs ) return ( self . _resize_shards ( locked_virtual_shards + locked_shards , self . _max_locked_shards , 'locked_shard' ) , unlocked_virtual_shards + unlocked_shards )
Returns two lists of shards, each shard containing a single test file.
Returns two lists of shards each shard containing a single test file .
"""Returns two lists of shards, each shard containing a single test file.

        This mode gets maximal parallelism at the cost of much higher flakiness.
        """ # Note that we use a '.' for the shard name; the name doesn't really # matter, and the only other meaningful value would be the filename, # which would be really redundant. # This violates the spirit of sharding every file, but in practice, since the # virtual test suites require a different commandline flag and thus a restart # of content_shell, it's too slow to shard them fully. # The locked shards still need to be limited to self._max_locked_shards in order to not # overload the http server for the http tests.
self
test_inputs
run_singly
virtual_is_unlocked