put experiment type in the pr title

This commit is contained in:
ali 2025-12-02 16:12:29 +02:00
parent 3247ca90f6
commit 029edb89f8
No known key found for this signature in database
GPG key ID: 44F9B42770617B9B
3 changed files with 3 additions and 4 deletions

View file

@ -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 (

View file

@ -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,

View file

@ -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,