def dependencies(binder: inject.Binder) -> None:
     binder.bind(SuiteSplitConfig, evg_expansions.get_suite_split_config(start_date, end_date))
     binder.bind(SplitStrategy, greedy_division)
     binder.bind(FallbackStrategy, round_robin_fallback)
     binder.bind(GenTaskOptions, evg_expansions.get_evg_config_gen_options(config_dir))
     binder.bind(EvergreenApi, evg_api)
     binder.bind(GenerationConfiguration,
                 GenerationConfiguration.from_yaml_file(under_test.GENERATE_CONFIG_FILE))
     binder.bind(ResmokeProxyConfig, ResmokeProxyConfig(resmoke_suite_dir=test_suites_dir))
Пример #2
0
 def dependencies(binder: inject.Binder) -> None:
     binder.bind(EvgExpansions, evg_expansions)
     binder.bind(EvergreenApi, RetryingEvergreenApi.get_api(config_file=evg_api_config))
     binder.bind(EvergreenProjectConfig, parse_evergreen_file(EVERGREEN_FILE))
     binder.bind(SelectedTestsClient, SelectedTestsClient.from_file(selected_tests_config))
     binder.bind(SuiteSplitConfig, evg_expansions.build_suite_split_config(start_date, end_date))
     binder.bind(SplitStrategy, greedy_division)
     binder.bind(FallbackStrategy, round_robin_fallback)
     binder.bind(GenTaskOptions, evg_expansions.build_gen_task_options())
     binder.bind(GenerationConfiguration, GenerationConfiguration.from_yaml_file())
Пример #3
0
 def dependencies(binder: inject.Binder) -> None:
     binder.bind(EvgExpansions, evg_expansions)
     binder.bind(SuiteSplitConfig, evg_expansions.build_suite_split_config(start_date, end_date))
     binder.bind(SplitStrategy, greedy_division)
     binder.bind(FallbackStrategy, round_robin_fallback)
     binder.bind(GenTaskOptions, evg_expansions.build_evg_config_gen_options())
     binder.bind(EvergreenApi, RetryingEvergreenApi.get_api(config_file=evg_api_config))
     binder.bind(EvergreenProjectConfig, parse_evergreen_file(evg_project_config))
     binder.bind(GenerationConfiguration, GenerationConfiguration.from_yaml_file())
     binder.bind(ResmokeProxyService, ResmokeProxyService(" ".join(resmoke_run_args)))
Пример #4
0
 def dependencies(binder: inject.Binder) -> None:
     binder.bind(SuiteSplitService, None)
     binder.bind(GenTaskOptions, evg_expansions.gen_task_options())
     binder.bind(EvergreenApi,
                 RetryingEvergreenApi.get_api(config_file=evergreen_config))
     binder.bind(
         GenerationConfiguration,
         GenerationConfiguration.from_yaml_file(GENERATE_CONFIG_FILE))
     binder.bind(
         ResmokeProxyConfig,
         ResmokeProxyConfig(resmoke_suite_dir=DEFAULT_TEST_SUITE_DIR))
Пример #5
0
 def dependencies(binder: inject.Binder) -> None:
     binder.bind(EvgExpansions, evg_expansions)
     binder.bind(_evergreen.EvergreenProjectConfig, evg_project_config)
     binder.bind(
         SuiteSplitConfig,
         evg_expansions.build_suite_split_config(start_date, end_date))
     binder.bind(SplitStrategy, greedy_division)
     binder.bind(FallbackStrategy, round_robin_fallback)
     binder.bind(GenTaskOptions, evg_expansions.build_gen_task_options())
     binder.bind(EvergreenApi, evg_api)
     binder.bind(GenerationConfiguration,
                 GenerationConfiguration.from_yaml_file())
     binder.bind(SelectedTestsClient, selected_test_client)
Пример #6
0
 def dependencies(binder: inject.Binder) -> None:
     binder.bind(SuiteSplitConfig,
                 evg_expansions.get_split_config(start_date, end_date))
     binder.bind(SplitStrategy, greedy_division)
     binder.bind(FallbackStrategy, round_robin_fallback)
     binder.bind(GenTaskOptions, evg_expansions.get_generation_options())
     binder.bind(EvergreenApi,
                 RetryingEvergreenApi.get_api(config_file=evergreen_config))
     binder.bind(
         GenerationConfiguration,
         GenerationConfiguration.from_yaml_file(
             gen_fuzzer.GENERATE_CONFIG_FILE))
     binder.bind(
         ResmokeProxyConfig,
         ResmokeProxyConfig(resmoke_suite_dir=DEFAULT_TEST_SUITE_DIR))
Пример #7
0
 def dependencies(binder: inject.Binder) -> None:
     evg_api = RetryingEvergreenApi.get_api(config_file=evg_api_config)
     binder.bind(SuiteSplitConfig, split_task_options)
     binder.bind(SplitStrategy, greedy_division)
     binder.bind(FallbackStrategy, round_robin_fallback)
     binder.bind(EvergreenProjectConfig, evg_conf)
     binder.bind(GenTaskOptions, gen_task_options)
     binder.bind(EvergreenApi, evg_api)
     binder.bind(GenerationConfiguration,
                 GenerationConfiguration.from_yaml_file())
     binder.bind(
         ResmokeProxyConfig,
         ResmokeProxyConfig(resmoke_suite_dir=DEFAULT_TEST_SUITE_DIR))
     binder.bind(EvergreenFileChangeDetector,
                 EvergreenFileChangeDetector(task_id, evg_api))
     binder.bind(BurnInConfig, burn_in_config)
 def dependencies(binder: inject.Binder) -> None:
     binder.bind(SuiteSplitConfig, split_config)
     binder.bind(SplitStrategy, greedy_division)
     binder.bind(FallbackStrategy, round_robin_fallback)
     binder.bind(GenTaskOptions, gen_task_options)
     binder.bind(EvergreenApi, evg_api)
     binder.bind(GenerationConfiguration,
                 GenerationConfiguration.from_yaml_file())
     binder.bind(
         ResmokeProxyConfig,
         ResmokeProxyConfig(
             resmoke_suite_dir=under_test.DEFAULT_TEST_SUITE_DIR))
     binder.bind(EvergreenFileChangeDetector, None)
     binder.bind(EvergreenProjectConfig, MagicMock())
     binder.bind(
         under_test.BurnInConfig,
         under_test.BurnInConfig(build_id="build_id",
                                 build_variant="build variant",
                                 revision="revision"))