Skip to content

Commit ab32de0

Browse files
Merge pull request codeflash-ai#520 from codeflash-ai/revert-replay-test-source-files
revert code under optimization when optimization found [CF-685]
2 parents 47d3ff1 + 91e149d commit ab32de0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,12 @@ def find_and_process_best_optimization(
10471047
coverage_message=coverage_message,
10481048
git_remote=self.args.git_remote,
10491049
)
1050-
if self.args.all or env_utils.get_pr_number() or (self.args.file and not self.args.function):
1050+
if (
1051+
self.args.all
1052+
or env_utils.get_pr_number()
1053+
or self.args.replay_test
1054+
or (self.args.file and not self.args.function)
1055+
):
10511056
self.write_code_and_helpers(
10521057
self.function_to_optimize_source_code,
10531058
original_helper_code,

0 commit comments

Comments
 (0)