• Home
  • Raw
  • Download

Lines Matching full:modules

249     changes regularly. This ordering makes it simpler to add/remove modules.
286 def get_doc(modules, abi, is_public): argument
288 if modules.intersection(get_collect_modules(is_public)) or CONFIG.get(
293 module_text = 'module ' + ', '.join(sorted(list(modules)))
302 def servo_support_needed(modules, is_public=True): argument
305 for module in modules)
308 def wifi_info_needed(modules, is_public): argument
311 for module in modules)
348 def get_suites(modules, abi, is_public, camera_facing=None, argument
367 for module in modules:
379 # CTS modules to be run on all unibuild models.
392 # One or two modules hould be in suite:bvt-arc to cover CQ/PFQ. A few
393 # spare/fast modules can run in suite:bvt-perbuild in case we need a
410 def get_dependencies(modules, abi, is_public, led_provision, camera_facing): argument
435 for module in modules:
442 def get_job_retries(modules, is_public, suites): argument
458 for module in modules:
468 def get_max_retries(modules, abi, suites, is_public): argument
469 """Partners experiance issues where some modules are flaky and require more
480 for module in modules:
485 for module in modules:
502 if modules.intersection(get_collect_modules(is_public)):
512 def get_max_result_size_kb(modules, is_public): argument
515 @param modules: List of CTS modules to be tested by the control file.
517 for module in modules:
522 # Individual module normal produces less results than all modules.
526 def get_extra_args(modules, is_public): argument
532 @param modules: List of CTS modules to be tested by the control file.
538 for module in sorted(modules):
554 # Notice: we are just squishing the preconditions for all modules together
556 # In such a case one should split the bookmarks in a way that the modules
576 def get_test_length(modules): argument
580 longest tests and tests that require limited resources. For these modules
590 for module in modules:
596 def get_test_priority(modules, is_public): argument
614 for module in modules:
652 def _get_special_command_line(modules, _is_public): argument
655 for module in sorted(modules):
662 modules=None,
677 special_cmd = _get_special_command_line(modules, is_public)
680 # For hardware suite we want to exclude [instant] modules.
691 # because --module implicitly include [instant] modules
707 elif _ALL in modules:
709 elif len(modules) == 1 and not is_hardware:
710 cmd += ['--module', list(modules)[0]]
714 'cts-instant cannot include multiple modules'
717 for module in sorted(modules):
718 # b/196756614 32-bit jobs should skip [parameter] modules.
727 for module in sorted(whole_module_set - set(modules)):
732 if (not modules.intersection(CONFIG['DISABLE_LOGCAT_ON_FAILURE']) and
743 not (modules.intersection(CONFIG['BVT_ARC'] + CONFIG['SMOKE'] +
748 # If NEEDS_DYNAMIC_CONFIG is set, disable the feature except on the modules
751 not modules.intersection(CONFIG['NEEDS_DYNAMIC_CONFIG'])):
757 def get_run_template(modules, argument
763 """Command to run the modules specified by a control file."""
764 no_intersection = not modules.intersection(get_collect_modules(is_public,
766 collect_present = (_COLLECT in modules or _PUBLIC_COLLECT in modules or
767 _CTSHARDWARE_COLLECT in modules or
768 _PUBLIC_CTSHARDWARE_COLLECT in modules)
769 all_present = _ALL in modules
773 modules,
782 def get_retry_template(modules, is_public): argument
783 """Command to retry the failed modules as specified by a control file."""
784 return get_run_template(modules, is_public, retry=True)
807 def get_extra_artifacts(modules): argument
809 for module in modules:
815 def get_extra_artifacts_host(modules): argument
820 for module in modules:
826 def calculate_timeout(modules, suites): argument
837 not (_COLLECT in modules or _PUBLIC_COLLECT in modules)):
844 for module in modules:
846 # Modules that run very long are encoded here.
853 # We have too many of these modules and they run fast.
861 def needs_push_media(modules): argument
863 if modules.intersection(set(CONFIG['NEEDS_PUSH_MEDIA'])):
868 def needs_cts_helpers(modules): argument
872 if modules.intersection(set(CONFIG['NEEDS_CTS_HELPERS'])):
877 def enable_default_apps(modules): argument
879 if modules.intersection(set(CONFIG['ENABLE_DEFAULT_APPS'])):
890 modules, argument
904 @param combined: name to use for this combination of modules.
905 @param modules: set of CTS modules which will be tested in the control
919 suites = get_suites(modules, abi, is_public, camera_facing, hardware_suite)
939 if _CTSHARDWARE_COLLECT in modules or _PUBLIC_CTSHARDWARE_COLLECT in modules:
947 dependencies=get_dependencies(modules, abi, is_public,
949 extra_artifacts=get_extra_artifacts(modules),
950 extra_artifacts_host=get_extra_artifacts_host(modules),
951 job_retries=get_job_retries(modules, is_public, suites),
952 max_result_size_kb=get_max_result_size_kb(modules, is_public),
956 needs_push_media=needs_push_media(modules),
957 needs_cts_helpers=needs_cts_helpers(modules),
958 enable_default_apps=enable_default_apps(modules),
961 DOC=get_doc(modules, abi, is_public),
962 servo_support_needed=servo_support_needed(modules, is_public),
963 wifi_info_needed=wifi_info_needed(modules, is_public),
964 max_retries=get_max_retries(modules, abi, suites, is_public),
965 timeout=calculate_timeout(modules, suites),
966 run_template=get_run_template(modules,
973 retry_template=get_retry_template(modules, is_public),
976 test_length=get_test_length(modules),
977 priority=get_test_priority(modules, is_public),
978 extra_args=get_extra_args(modules, is_public),
980 sync_count=get_sync_count(modules, abi, is_public),
985 """Queries tradefed to provide us with a list of modules.
997 cmd_list = [tradefed, 'list', 'modules']
998 logging.info('Calling tradefed for list of modules.')
1021 modules = set()
1037 modules.add(line)
1040 modules.add(line)
1046 if not modules:
1047 raise Exception("no modules found.")
1048 return list(modules), build, revision
1119 def combine_modules_by_common_word(modules): argument
1127 # On first pass group modules with common first word together.
1128 for module in modules:
1136 # contain multiple modules.
1139 # Instead if a one syllable prefix use longest common prefix of modules.
1145 # modules in this control file).
1153 # Separate each CtsMedia* modules, but group extra modules with
1165 print('Reduced number of control files from %d to %d.' % (len(modules),
1170 def combine_modules_by_bookmark(modules): argument
1174 (Say 2-5 hours each.) But it is ok to run problematic modules alone.
1177 # Figure out sets of modules between bookmarks. Not optimum time complexity.
1179 if modules:
1180 for module in sorted(modules):
1185 # Remove processed modules.
1187 modules = modules - d[bookmark]
1201 modules, argument
1215 if modules & set(CONFIG.get(config_key, [])):
1216 # If |abi| is predefined (like CTS), splits the modules by
1231 modules,
1245 def write_moblab_controlfiles(modules, abi, revision, build, uri): argument
1254 for module in modules:
1269 def write_regression_controlfiles(modules, abi, revision, build, uri, argument
1276 became too much in P (more than 300 per ABI). Instead we combine modules
1281 module_set = set(modules)
1292 combined = combine_modules_by_common_word(set(modules))
1298 def write_qualification_controlfiles(modules, abi, revision, build, uri, argument
1307 combined = combine_modules_by_bookmark(set(modules))
1310 # If |abi| is predefined (like CTS), splits the modules by
1329 def write_qualification_and_regression_controlfile(modules, abi, revision, argument
1336 module_set = set(modules)
1388 This is used by moblab to load balance large modules like Deqp, as well as
1389 making custom modules such as WM presubmit. A similar approach was also used
1480 modules, build, revision = get_tradefed_data(tmp, is_public, abi)
1486 write_moblab_controlfiles(modules, abi, revision, build, uri)
1490 # is used for only ARC-P CTS_Instant modules whose regression
1495 modules, abi, revision, build, uri, source_type)
1498 write_regression_controlfiles(modules, abi, revision,
1501 write_qualification_controlfiles(modules, abi, revision,
1520 write_collect_controlfiles(modules,