Skip to content

Commit 09bf156

Browse files
authored
Merge branch 'main' into trace-and-optimize
2 parents 535a9b1 + 2185af9 commit 09bf156

16 files changed

+59
-26
lines changed

.github/workflows/end-to-end-test-benchmark-bubblesort.yaml renamed to .github/workflows/e2e-bubblesort-benchmark.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: end-to-end-test
1+
name: E2E - Bubble Sort Benchmark
22

33
on:
44
pull_request:

.github/workflows/end-to-end-test-bubblesort-pytest-no-git.yaml renamed to .github/workflows/e2e-bubblesort-pytest-nogit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: end-to-end-test
1+
name: E2E - Bubble Sort Pytest (No Git)
22

33
on:
44
pull_request:

.github/workflows/end-to-end-test-bubblesort-unittest.yaml renamed to .github/workflows/e2e-bubblesort-unittest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: end-to-end-test
1+
name: E2E - Bubble Sort Unittest
22

33
on:
44
pull_request:

.github/workflows/end-to-end-test-futurehouse.yaml renamed to .github/workflows/e2e-futurehouse-structure.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: end-to-end-test
1+
name: E2E - Futurehouse Structure
22

33
on:
44
pull_request:

.github/workflows/end-to-end-test-init-optim.yaml renamed to .github/workflows/e2e-init-optimization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: end-to-end-test
1+
name: E2E - Init Optimization
22

33
on:
44
pull_request:

.github/workflows/end-to-end-topological-sort-test.yaml renamed to .github/workflows/e2e-topological-sort.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: end-to-end-test
1+
name: E2E - Topological Sort
22

33
on:
44
pull_request:

.github/workflows/end-to-end-test-tracer-replay.yaml renamed to .github/workflows/e2e-tracer-replay.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: end-to-end-test
1+
name: E2E - Tracer Replay
22

33
on:
44
pull_request:

codeflash.code-workspace

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@
1010
}
1111
],
1212
"settings": {
13-
"python.defaultInterpreterPath": "~/miniforge3/envs/codeflash312/bin/python",
1413
"python.terminal.activateEnvironment": true,
1514
"python.testing.pytestEnabled": true,
16-
"python.testing.pytestArgs": ["tests/", "-vv"],
15+
"python.testing.pytestArgs": [
16+
"tests/",
17+
"-vv",
18+
"--ignore",
19+
"tests/benchmarks/"
20+
],
1721
},
1822
"launch": {
19-
"version": "0.2.0",
2023
"configurations": [
2124
{
2225
"name": "bubble_sort",
@@ -62,19 +65,26 @@
6265
},
6366
},
6467
{
65-
"name": "bubble_sort --file bubble_sort.py (MBR)",
68+
"name": "run codeflash in custom directory",
6669
"type": "debugpy",
6770
"request": "launch",
6871
"program": "${workspaceFolder:codeflash}/codeflash/main.py",
6972
"args": [
7073
"--all",
7174
],
72-
"cwd": "/Users/krrt7/Desktop/work/my-best-repo",
75+
"cwd": "${input:chooseCwd}",
7376
"console": "integratedTerminal",
7477
"env": {
7578
"PYTHONUNBUFFERED": "1"
76-
},
79+
}
80+
}
81+
],
82+
"inputs": [
83+
{
84+
"id": "chooseCwd",
85+
"type": "promptString",
86+
"description": "Enter the working directory for codeflash",
7787
}
7888
]
79-
}
89+
},
8090
}

codeflash/api/aiservice.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pydantic.json import pydantic_encoder
1111

1212
from codeflash.cli_cmds.console import console, logger
13-
from codeflash.code_utils.env_utils import get_codeflash_api_key
13+
from codeflash.code_utils.env_utils import get_codeflash_api_key, is_LSP_enabled
1414
from codeflash.code_utils.git_utils import get_last_commit_author_if_pr_exists, get_repo_owner_and_name
1515
from codeflash.models.models import OptimizedCandidate
1616
from codeflash.telemetry.posthog_cf import ph
@@ -182,6 +182,7 @@ def optimize_python_code_line_profiler( # noqa: D417
182182
"python_version": platform.python_version(),
183183
"experiment_metadata": experiment_metadata,
184184
"codeflash_version": codeflash_version,
185+
"lsp_mode": is_LSP_enabled(),
185186
}
186187

187188
logger.info("Generating optimized candidates…")

0 commit comments

Comments
 (0)