put experiment type in the pr title
This commit is contained in:
parent
3247ca90f6
commit
029edb89f8
3 changed files with 3 additions and 4 deletions
|
|
@ -157,7 +157,6 @@ def process_pyproject_config(args: Namespace) -> Namespace:
|
|||
"disable_imports_sorting",
|
||||
"git_remote",
|
||||
"override_fixtures",
|
||||
"exp_git_remote",
|
||||
]
|
||||
for key in supported_keys:
|
||||
if key in pyproject_config and (
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ def parse_config_file(
|
|||
# default values:
|
||||
path_keys = ["module-root", "tests-root", "benchmarks-root"]
|
||||
path_list_keys = ["ignore-paths"]
|
||||
str_keys = {"pytest-cmd": "pytest", "git-remote": "origin", "exp-git-remote": "exp-origin"}
|
||||
str_keys = {"pytest-cmd": "pytest", "git-remote": "origin"}
|
||||
bool_keys = {
|
||||
"override-fixtures": False,
|
||||
"disable-telemetry": False,
|
||||
|
|
|
|||
|
|
@ -204,10 +204,10 @@ def check_create_pr(
|
|||
base_branch=base_branch,
|
||||
file_changes=build_file_changes,
|
||||
pr_comment=PrComment(
|
||||
optimization_explanation="## Experiment Type: " + exp_type + "\n\n" + explanation.explanation_message(),
|
||||
optimization_explanation=explanation.explanation_message(),
|
||||
best_runtime=explanation.best_runtime_ns,
|
||||
original_runtime=explanation.original_runtime_ns,
|
||||
function_name=explanation.function_name,
|
||||
function_name=f"{exp_type}___{explanation.function_name}",
|
||||
relative_file_path=relative_path,
|
||||
speedup_x=explanation.speedup_x,
|
||||
speedup_pct=explanation.speedup_pct,
|
||||
|
|
|
|||
Loading…
Reference in a new issue