This commit is contained in:
Cameron Aavik 2024-02-13 11:36:54 +10:00 коммит произвёл GitHub
Родитель e3a95b3ce8
Коммит 06b0d49c84
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 17 добавлений и 16 удалений

Просмотреть файл

@ -275,6 +275,23 @@ def run_performance_job(args: RunPerformanceJobArgs):
helix_type_suffix = "/wasm/aot"
else:
helix_type_suffix = "/wasm"
if args.performance_repo_ci:
# needs to be unique to avoid logs overwriting in mc.dot.net
build_config = f"{args.architecture}_{args.channel}_{args.run_kind}"
if args.dotnet_version_link is not None:
build_config = f"{args.architecture}_{args.channel}_Linked_{args.run_kind}"
helix_type = f"test/performance_{build_config}/"
else:
if args.framework is None:
raise Exception("Framework not configured")
build_config = f"{args.architecture}.{args.run_kind}.{args.framework}"
helix_type = f"test/performance/{args.run_kind}/{args.framework}/{args.architecture}/{helix_type_suffix}"
if not args.send_to_helix:
# _BuildConfig is used by CI during log publishing
set_environment_variable("_BuildConfig", build_config, save_to_pipeline=True)
if args.project_file is None:
args.project_file = os.path.join(args.performance_repo_dir, "eng", "performance", "helix.proj")
@ -379,19 +396,6 @@ def run_performance_job(args: RunPerformanceJobArgs):
perf_lab_arguments = []
helix_source_prefix = "pr"
if args.performance_repo_ci:
# needs to be unique to avoid logs overwriting in mc.dot.net
build_config = f"{args.architecture}_{args.channel}_{args.run_kind}"
if args.dotnet_version_link is not None:
build_config = f"{args.architecture}_{args.channel}_Linked_{args.run_kind}"
helix_type = f"test/performance_{build_config}/"
else:
if args.framework is None:
raise Exception("Framework not configured")
build_config = f"{args.architecture}.{args.run_kind}.{args.framework}"
helix_type = f"test/performance/{args.run_kind}/{args.framework}/{args.architecture}/{helix_type_suffix}"
category_exclusions: list[str] = []
configurations = { "CompilationMode": "Tiered", "RunKind": args.run_kind }
@ -909,9 +913,6 @@ def run_performance_job(args: RunPerformanceJobArgs):
# expose environment variables to CI for sending to helix
perf_send_to_helix_args.set_environment_variables(save_to_pipeline=True)
# _BuildConfig is used by CI during log publishing
set_environment_variable("_BuildConfig", build_config, save_to_pipeline=True)
def main(argv: List[str]):