Skip to content

Commit b89602f

Browse files
committed
debug
1 parent 233cf31 commit b89602f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/codeflash-optimize.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
optimize:
1616
name: Optimize new Python code
1717
# Dynamically determine if environment is needed only when workflow files change and contributor is external
18-
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7' && github.event.pull_request.user.login != 'alvin-r')) && 'external-trusted-contributors' || '' }}
18+
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
1919
if: ${{ github.actor != 'codeflash-ai[bot]' }}
2020
runs-on: ubuntu-latest
2121
env:
@@ -40,7 +40,7 @@ jobs:
4040
echo "PR Author: $AUTHOR"
4141
4242
# Allowlist check
43-
if [[ "$AUTHOR" == "misrasaurabh1" || "$AUTHOR" == "KRRT7" || "$AUTHOR" == "alvin-r"]]; then
43+
if [[ "$AUTHOR" == "misrasaurabh1" || "$AUTHOR" == "KRRT7" ]]; then
4444
echo "✅ Authorized user ($AUTHOR). Proceeding."
4545
elif [[ "${{ github.event.pull_request.state }}" == "open" ]]; then
4646
echo "✅ PR is open. Proceeding with appropriate protections."
@@ -68,4 +68,4 @@ jobs:
6868
id: optimize_code
6969
run: |
7070
source .venv/bin/activate
71-
poetry run codeflash
71+
poetry run codeflash --benchmark

codeflash/optimization/optimizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import ast
44
import os
5-
import time
65
import shutil
76
import tempfile
7+
import time
88
from collections import defaultdict
99
from pathlib import Path
1010
from typing import TYPE_CHECKING
@@ -83,7 +83,7 @@ def run(self) -> None:
8383
function_optimizer = None
8484
file_to_funcs_to_optimize: dict[Path, list[FunctionToOptimize]]
8585
num_optimizable_functions: int
86-
86+
logger.info(self.args)
8787
# discover functions
8888
(file_to_funcs_to_optimize, num_optimizable_functions) = get_functions_to_optimize(
8989
optimize_all=self.args.all,

0 commit comments

Comments
 (0)