Lines Matching full:modules
217 changes regularly. This ordering makes it simpler to add/remove modules.
244 def get_doc(modules, abi, is_public): argument
246 if modules.intersection(get_collect_modules(is_public)):
250 module_text = 'module ' + ', '.join(sorted(list(modules)))
259 def servo_support_needed(modules, is_public=True): argument
262 for module in modules)
294 def get_suites(modules, abi, is_public, camera_facing=None): argument
308 for module in modules:
320 # CTS modules to be run on all unibuild models.
333 # One or two modules hould be in suite:bvt-arc to cover CQ/PFQ. A few
334 # spare/fast modules can run in suite:bvt-perbuild in case we need a
348 def get_dependencies(modules, abi, is_public, led_provision, camera_facing): argument
373 for module in modules:
380 def get_job_retries(modules, is_public, suites): argument
396 for module in modules:
406 def get_max_retries(modules, abi, suites, is_public): argument
407 """Partners experiance issues where some modules are flaky and require more
418 for module in modules:
423 for module in modules:
440 if modules.intersection(get_collect_modules(is_public)):
450 def get_max_result_size_kb(modules, is_public): argument
453 @param modules: List of CTS modules to be tested by the control file.
455 for module in modules:
460 # Individual module normal produces less results than all modules.
464 def get_extra_args(modules, is_public): argument
470 @param modules: List of CTS modules to be tested by the control file.
476 for module in modules:
490 # Notice: we are just squishing the preconditions for all modules together
492 # In such a case one should split the bookmarks in a way that the modules
512 def get_test_length(modules): argument
516 longest tests and tests that require limited resources. For these modules
526 for module in modules:
532 def get_test_priority(modules, is_public): argument
550 for module in modules:
585 def _get_special_command_line(modules, _is_public): argument
588 for module in sorted(modules):
595 modules=None,
609 special_cmd = _get_special_command_line(modules, is_public)
612 elif _ALL in modules:
614 elif len(modules) == 1:
615 cmd += ['--module', list(modules)[0]]
619 'cts-instant cannot include multiple modules'
622 for module in sorted(modules):
627 for module in whole_module_set - set(modules):
632 if (not modules.intersection(CONFIG['DISABLE_LOGCAT_ON_FAILURE']) and
643 not (modules.intersection(CONFIG['BVT_ARC'] + CONFIG['SMOKE'] +
648 # If NEEDS_DYNAMIC_CONFIG is set, disable the feature except on the modules
651 not modules.intersection(CONFIG['NEEDS_DYNAMIC_CONFIG'])):
657 def get_run_template(modules, argument
662 """Command to run the modules specified by a control file."""
663 no_intersection = not modules.intersection(get_collect_modules(is_public))
664 collect_present = (_COLLECT in modules or _PUBLIC_COLLECT in modules)
665 all_present = _ALL in modules
669 modules,
676 def get_retry_template(modules, is_public): argument
677 """Command to retry the failed modules as specified by a control file."""
678 return get_run_template(modules, is_public, retry=True)
699 def get_extra_artifacts(modules): argument
701 for module in modules:
707 def get_extra_artifacts_host(modules): argument
712 for module in modules:
718 def calculate_timeout(modules, suites): argument
729 not (_COLLECT in modules or _PUBLIC_COLLECT in modules)):
736 for module in modules:
738 # Modules that run very long are encoded here.
745 # We have too many of these modules and they run fast.
753 def needs_push_media(modules): argument
755 if modules.intersection(set(CONFIG['NEEDS_PUSH_MEDIA'])):
760 def enable_default_apps(modules): argument
762 if modules.intersection(set(CONFIG['ENABLE_DEFAULT_APPS'])):
768 modules, argument
781 @param combined: name to use for this combination of modules.
782 @param modules: set of CTS modules which will be tested in the control
795 suites = get_suites(modules, abi, is_public, camera_facing)
810 dependencies=get_dependencies(modules, abi, is_public,
812 extra_artifacts=get_extra_artifacts(modules),
813 extra_artifacts_host=get_extra_artifacts_host(modules),
814 job_retries=get_job_retries(modules, is_public, suites),
815 max_result_size_kb=get_max_result_size_kb(modules, is_public),
819 needs_push_media=needs_push_media(modules),
820 enable_default_apps=enable_default_apps(modules),
823 DOC=get_doc(modules, abi, is_public),
824 servo_support_needed=servo_support_needed(modules, is_public),
825 max_retries=get_max_retries(modules, abi, suites, is_public),
826 timeout=calculate_timeout(modules, suites),
827 run_template=get_run_template(modules,
833 retry_template=get_retry_template(modules, is_public),
836 test_length=get_test_length(modules),
837 priority=get_test_priority(modules, is_public),
838 extra_args=get_extra_args(modules, is_public),
840 sync_count=get_sync_count(modules, abi, is_public),
845 """Queries tradefed to provide us with a list of modules.
852 cmd_list = [tradefed, 'list', 'modules']
853 logging.info('Calling tradefed for list of modules.')
860 modules = set()
882 modules.add(line)
884 modules.add(line)
887 modules.add(line)
889 modules.add(line)
891 modules.add(line)
893 modules.add(line)
905 modules = set()
916 if not modules:
917 raise Exception("no modules found.")
918 return list(modules), build, revision
984 def combine_modules_by_common_word(modules): argument
992 # On first pass group modules with common first word together.
993 for module in modules:
1001 # contain multiple modules.
1004 # Instead if a one syllable prefix use longest common prefix of modules.
1010 # modules in this control file).
1018 # Separate each CtsMedia* modules, but group extra modules with
1030 print('Reduced number of control files from %d to %d.' % (len(modules),
1035 def combine_modules_by_bookmark(modules): argument
1039 (Say 2-5 hours each.) But it is ok to run problematic modules alone.
1042 # Figure out sets of modules between bookmarks. Not optimum time complexity.
1044 if modules:
1045 for module in sorted(modules):
1050 # Remove processed modules.
1052 modules = modules - d[bookmark]
1066 modules, argument
1078 modules,
1091 def write_moblab_controlfiles(modules, abi, revision, build, uri, is_public): argument
1100 for module in modules:
1109 def write_regression_controlfiles(modules, abi, revision, build, uri, argument
1116 became too much in P (more than 300 per ABI). Instead we combine modules
1119 combined = combine_modules_by_common_word(set(modules))
1125 def write_qualification_controlfiles(modules, abi, revision, build, uri, argument
1134 combined = combine_modules_by_bookmark(set(modules))
1140 def write_qualification_and_regression_controlfile(modules, abi, revision, argument
1147 module_set = set(modules)
1181 This is used by moblab to load balance large modules like Deqp, as well as
1182 making custom modules such as WM presubmit. A similar approach was also used
1234 modules, build, revision = get_tradefed_data(tmp, is_public, abi)
1240 write_moblab_controlfiles(modules, abi, revision, build, uri,
1245 modules, abi, revision, build, uri, is_public)
1247 write_regression_controlfiles(modules, abi, revision,
1250 write_qualification_controlfiles(modules, abi, revision,
1258 write_collect_controlfiles(modules, abi, revision, build, uri,