Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions codeflash/api/cfapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ def add_code_context_hash(code_context_hash: str) -> None:
return
try:
owner, repo = get_repo_owner_and_name()
# don't add the context hash for codeflash repo
if f"{owner}/{repo}" != "codeflash-ai/codeflash":
return
pr_number = get_pr_number()
except git.exc.InvalidGitRepositoryError:
return
Expand Down
4 changes: 1 addition & 3 deletions codeflash/optimization/function_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,7 @@ def optimize_function(self) -> Result[BestOptimization, str]:
test_functions_to_remove=test_functions_to_remove,
concolic_test_str=concolic_test_str,
)

# Add function to code context hash if in gh actions

# don't add the context hash for codeflash repo
add_code_context_hash(code_context.hashing_code_context_hash)

if self.args.override_fixtures:
Expand Down
Loading