Lines Matching full:suite
84 @var _max_retries: Maximum retry limit at suite level.
87 the suite can't exceed _max_retries.
99 jobs that are originally scheduled by the suite.
103 for the suite. Default to None, no max.
134 """Return whether maximum retry limit for a suite has been reached."""
254 class Suite(object): class
256 A suite of tests, defined by some predicate over control file variables.
264 this Suite.
265 @var _tag: a string with which to tag jobs run in this suite.
266 @var _builds: the builds on which we're running this suite.
283 @param build: the build on which we're running this suite.
316 and returns True if the SUITE tag is present and contains |name|.
318 @param name: the suite name to base the predicate on.
320 ControlData object's suite member.
322 return lambda t: (hasattr(t, 'suite') and
323 name in Suite.parse_tag(t.suite))
332 and returns a list of tuples of (suite name, ratio), where suite name
333 is each suite listed in the control file, and ratio is the similarity
334 between each suite and the given name.
336 @param name: the suite name to base the predicate on.
338 of (suite name, ratio), where suite name is each suite listed in
339 the control file, and ratio is the similarity between each suite
342 return lambda t: ((None, 0) if not hasattr(t, 'suite') else
343 [(suite,
344 difflib.SequenceMatcher(a=suite, b=name).ratio())
345 for suite in Suite.parse_tag(t.suite)])
469 Parses all ControlData objects with a SUITE tag and extracts all
470 defined suite names.
472 @param build: the build on which we're running this suite.
480 cf_getter = Suite.create_ds_getter(build, devserver)
483 predicate = lambda t: hasattr(t, 'suite')
484 for test in Suite.find_and_parse_tests(cf_getter, predicate,
486 suites.update(Suite.parse_tag(test.suite))
499 @param builds: the builds on which we're running this suite. It's a
501 @param **dargs: Any other Suite constructor parameters, as described
502 in Suite.__init__ docstring.
524 Create a Suite using a given predicate test filters.
526 Uses supplied predicate(s) to instantiate a Suite. Looks for tests in
533 included in suite if all callables in this list
535 @param builds: the builds on which we're running this suite. It's a
537 @param board: the board on which we're running this suite.
541 @param name: name of suite. Defaults to 'ad_hoc_suite'
542 @param run_prod_code: If true, the suite will run the tests that
545 @param **dargs: Any other Suite constructor parameters, as described
546 in Suite.__init__ docstring.
547 @return a Suite instance.
550 build = Suite.get_test_source_build(builds, **dargs)
552 cf_getter = Suite.create_fs_getter(_AUTOTEST_DIR)
554 cf_getter = Suite.create_ds_getter(build, devserver)
556 return Suite(predicates,
564 Create a Suite using a predicate based on the SUITE control file var.
566 Makes a predicate based on |name| and uses it to instantiate a Suite
571 @param name: a value of the SUITE control file variable to search for.
572 @param builds: the builds on which we're running this suite. It's a
574 @param board: the board on which we're running this suite.
578 @param **dargs: Any other Suite constructor parameters, as described
579 in Suite.__init__ docstring.
580 @return a Suite instance.
583 build = Suite.get_test_source_build(builds, **dargs)
584 cf_getter = Suite.create_ds_getter(build, devserver)
586 return Suite([Suite.name_in_tag_predicate(name)],
604 included in suite is all callables in this list
606 @param tag: a string with which to tag jobs run in this suite.
607 @param builds: the builds on which we're running this suite.
608 @param board: the board on which we're running this suite.
614 @param run_prod_code: If true, the suite will run the test code that
620 @param max_runtime_mins: Maximum suite runtime, in minutes.
630 @param wait_for_results: Set to False to run the suite job without
637 @param max_retries: Maximum retry limit at suite level.
640 happening in the suite can't exceed _max_retries.
666 self._tests = Suite.find_and_parse_tests(self._cf_getter,
691 A list of ControlData objects in the suite, with added |text| attr.
734 # the afe from a suite job, as only the latter will get requeued
763 # Add suite job id to keyvals so tko parser can read it from keyval file
858 # which immediately fails the suite.
927 'Exception while scheduling suite').record_result(record)
965 filing options for failures in this suite.
995 # TODO (fdeng): If the suite times out before a retry could
1062 Record provided job as a suite job keyval, for later referencing.
1103 getter it looks up the suite_name in a suite to control file map
1111 the search space to just this suite's control files.
1118 @param run_prod_code: If true, the suite will run the test code that
1129 logging.debug('Getting control file list for suite: %s', suite_name)
1172 this Suite.
1174 the search space to just this suite's control files.
1181 @param run_prod_code: If true, the suite will run the test code that
1193 tests = Suite.find_all_tests(cf_getter, suite_name, add_experimental,
1217 should be in this Suite. `name` is the key to be compared, e.g.,
1218 a suite name or test name. `ratio` is a value between [0,1]
1221 the search space to just this suite's control files.
1227 tests = Suite.find_all_tests(cf_getter, suite_name,