Commit graph

6497 commits

Author SHA1 Message Date
Saurabh Misra
ec3993b965
Merge pull request #17 from codeflash-ai/afik/dependencies-fix-jedi
Fix function dependencies for functions in classes
2023-11-16 15:37:15 -08:00
Saurabh Misra
0fff874578 Small fix 2023-11-16 15:36:37 -08:00
Saurabh Misra
78e12c3f40 Rename the workflow 2023-11-16 15:35:33 -08:00
afik.cohen
0c6e78c4ad Skip if no tests generated 2023-11-16 15:32:13 -08:00
Saurabh Misra
0e0403525e merge main 2023-11-16 15:27:02 -08:00
Saurabh Misra
17640374c7 Merge remote-tracking branch 'origin/main' into afik/dependencies-fix-jedi
# Conflicts:
#	.idea/misc.xml
2023-11-16 15:26:42 -08:00
afik.cohen
0130e6da6f Reformat 2023-11-16 15:22:24 -08:00
afik.cohen
627f3b9e7e Revert "Use OPTIMIZE_MODEL = GPT_4_128k()"
This reverts commit 205e360e3e.
2023-11-16 15:21:59 -08:00
Saurabh Misra
32dea0c7f3 Add an end-to-end test with bubble sort optimization 2023-11-16 15:21:17 -08:00
afik.cohen
2489138169 Merge branch 'main' into afik/main_refactor 2023-11-16 15:18:11 -08:00
afik.cohen
e0db936639 Refactor main function into Optimizer class 2023-11-16 15:18:05 -08:00
Saurabh Misra
e513cbb5b2 Add support for datetime objects comparator 2023-11-16 15:13:24 -08:00
Saurabh Misra
95e68bc80a Make the ignore-dirs work 2023-11-16 14:21:25 -08:00
Saurabh Misra
c84413d7d2 WIP changes to add ignore-paths to toml config 2023-11-16 13:00:19 -08:00
Afik
e2daee0740
Merge pull request #18 from codeflash-ai/afik/github-app
Latest GitHub app changes
2023-11-16 12:20:17 -08:00
afik.cohen
d53c9b1809 This should actually use the definition 2023-11-15 21:43:28 -08:00
afik.cohen
390b11046f Include tests in a class if it exists for a pytest test 2023-11-15 21:16:11 -08:00
afik.cohen
f524cb6ea5 Working for multiple class dependencies but unclear whether simple dependencies should be "test_function_dependencies.calculate_something" or test_function_dependencies.simple_function_with_one_dep.calculate_something" 2023-11-15 18:40:04 -08:00
afik.cohen
db15e24a2c Add tests to check for dependencies for functions named the same in multiple classes 2023-11-15 18:05:27 -08:00
afik.cohen
205e360e3e Use OPTIMIZE_MODEL = GPT_4_128k() 2023-11-15 17:33:27 -08:00
Saurabh Misra
08c2d5a3fb more details 2023-11-15 17:32:41 -08:00
Saurabh Misra
f980673c32 more details 2023-11-15 17:31:27 -08:00
Saurabh Misra
8e7de989b3
Merge pull request #16 from codeflash-ai/saurabh/small-fixes-1
Some small fixes
2023-11-14 20:06:28 -08:00
Saurabh Misra
6979b96a07 Add one Try: Except in comparator
Remove some unnecessary files
2023-11-14 19:37:58 -08:00
Saurabh Misra
8a41cbaddb
Merge pull request #15 from codeflash-ai/saurabh/pytest-support-fix
Fix support for PyTest by logging test data with sqlite3
2023-11-14 15:40:48 -08:00
Saurabh Misra
06fd5ce764 Remove unncessary test 2023-11-14 15:40:31 -08:00
Saurabh Misra
705f160ac8 Env var utils 2023-11-14 15:39:12 -08:00
afik.cohen
b0979d3b4c Ensure codeflash api key exists via function 2023-11-14 12:56:38 -08:00
afik.cohen
977c4f6b79 Merge branch 'dev' into saurabh/pytest-support-fix 2023-11-14 12:51:51 -08:00
Saurabh Misra
69a85da558 Assert CODEFLASH_API_KEY as set 2023-11-13 22:20:03 -08:00
Saurabh Misra
97b8d3895f A little ONI bug 2023-11-13 22:10:17 -08:00
Saurabh Misra
648916d290 A little bug 2023-11-13 22:00:49 -08:00
Saurabh Misra
b7f18cc215 Fix PyTest!!
Fix XML and Binary file tests merging logic. Fix a bug.
Add a lot of tests, fix the Pytest tests.
2023-11-13 21:53:35 -08:00
afik.cohen
f46bc244b4 Install workflow from .github/workflows/optimize.yaml 2023-11-13 21:08:21 -08:00
afik.cohen
257e50b2a1 Store api keys in either env variable or in ~/.codeflash/env.yml 2023-11-13 19:53:36 -08:00
Saurabh Misra
ea3b223873 Fix test perf injector tests 2023-11-13 15:17:50 -08:00
Saurabh Misra
b3aaf36df1 Test instrumentation seems to be working. Fixed 1 test.
WIP whole workflow
2023-11-13 14:26:45 -08:00
Saurabh Misra
ee9416f798 Add the instrumentation to log test data in sqlite file and add a function to read that data 2023-11-11 17:21:50 -08:00
Saurabh Misra
8a49e2d7b8 Make a few testing fixes.
Create a test file that works for pytest sqlite3 instrumentation
2023-11-11 16:15:04 -08:00
Saurabh Misra
bde1e4c3e8
Merge pull request #14 from codeflash-ai/saurabh/unit-test-gh-action
Take out the unit test github action out separately
2023-11-09 23:17:14 -08:00
afik.cohen
6878ec3358 Github app creates workflows now 2023-11-09 21:42:24 -08:00
Saurabh Misra
b66822d867
Merge branch 'main' into saurabh/unit-test-gh-action 2023-11-09 20:40:19 -08:00
Saurabh Misra
1872557849 Take out the unit test github action out separately 2023-11-09 20:38:45 -08:00
Saurabh Misra
e9c02e730a
Merge pull request #13 from codeflash-ai/afik/new_get_code
Afik/new get code
2023-11-09 15:29:11 -08:00
Saurabh Misra
bb2bd20d14
Merge branch 'main' into afik/new_get_code 2023-11-09 15:21:46 -08:00
Saurabh Misra
93dbd6e989 Fix some regressions and make the --optimize_all and --function cmd arg work 2023-11-09 15:21:02 -08:00
afik.cohen
084d90d745 Fix test generation to include correct import line for Class.function cases 2023-11-09 13:29:39 -08:00
afik.cohen
88503ad9ba Impl FunctionParent dataclass to capture parents 2023-11-08 21:05:30 -08:00
afik.cohen
0da0bdcf8e Rv to older get_code impl 2023-11-08 20:33:46 -08:00
afik.cohen
294da2f475 Add get_code test for single function in module 2023-11-08 20:16:31 -08:00