Commit graph

3376 commits

Author SHA1 Message Date
RD
c56828ccef Lots of various fixes. 2024-11-01 02:23:59 -07:00
RD
5c3a2e18d0 End-to-end done. 2024-10-31 19:08:20 -07:00
RD
cafc1ecbaa Resolving conflicts 2024-10-30 01:50:44 -07:00
RD
973ae53052 Merge branch 'main' of github.com:codeflash-ai/codeflash into Concolicity
# Conflicts:
#	cli/codeflash/optimization/function_context.py
#	cli/codeflash/optimization/optimizer.py
2024-10-30 01:46:59 -07:00
RD
5259ae3822 WIP diffbehavior support, up to and including full replacement module code for each optimization candidate. Remaining: writing module code to each git worktree, running diffbehavior vs each candidate worktree, collecting results. TODO comment driven programming at its finest. 2024-10-30 01:30:10 -07:00
Saurabh Misra
20323b4755
Merge pull request #1162 from codeflash-ai/better-debug-logging-for-crash-here
better logging for future to debug whats wrong
2024-10-29 22:00:37 -07:00
Saurabh Misra
d019f9ac57
Merge branch 'main' into better-debug-logging-for-crash-here 2024-10-29 21:46:34 -07:00
Saurabh Misra
ecd059b366
Merge pull request #1161 from codeflash-ai/pytest-new-process
Pytest discovery in isolated process [CF-436]
2024-10-29 21:44:41 -07:00
Saurabh Misra
d640adef8b better logging for future to debug whats wrong 2024-10-29 21:44:15 -07:00
Saurabh Misra
dcdbe10856 display the exit code name 2024-10-29 21:38:34 -07:00
Saurabh Misra
f494d4b93b change imports a bit 2024-10-29 20:08:53 -07:00
Saurabh Misra
09e63620d7 use the right exitcode 2024-10-29 20:05:29 -07:00
Saurabh Misra
98a73e08bc formatting 2024-10-29 20:02:39 -07:00
Saurabh Misra
e5e12781b7 make the changes work 2024-10-29 19:56:22 -07:00
Saurabh Misra
60498f4436 WIP changes 2024-10-29 16:39:47 -07:00
Saurabh Misra
0327cac119
Merge pull request #1160 from codeflash-ai/fix-ruff-warning-imports
imports should not be in type checking block
2024-10-29 13:29:31 -07:00
Kevin Turcios
d2ddfe7371 imports should not be in type checking block 2024-10-29 15:07:27 -05:00
Saurabh Misra
69e002bcb2
Merge pull request #1158 from codeflash-ai/release/v0.7.4
release v0.7.4
2024-10-28 23:42:17 -07:00
Saurabh Misra
cce2bd749d release v0.7.4 2024-10-28 23:21:19 -07:00
Saurabh Misra
cbc6558037
Merge pull request #1157 from codeflash-ai/fix-optimized-candidate-result
Fix optimized candidate result
2024-10-28 23:17:19 -07:00
Saurabh Misra
21eb0cffa9 set loop_count as 0 if things fail 2024-10-28 23:06:17 -07:00
Saurabh Misra
ba53f7a61a Merge branch 'refs/heads/main' into fix-optimized-candidate-result 2024-10-28 23:03:25 -07:00
Saurabh Misra
099f555f95 Ensure loop_count is measured correctly and test_results is not an empty object. clarify the scope of the function run_optimized_candidate 2024-10-28 23:03:02 -07:00
Kevin Turcios
ac2fc90d4d
Merge pull request #1153 from codeflash-ai/paperqa-bugs
Paperqa bugs
2024-10-29 05:12:38 +00:00
Kevin Turcios
e25155f17b Update testgen.py 2024-10-28 23:48:27 -05:00
Kevin Turcios
d9b24d1b84 revert recent django changes
This reverts commit c87ed40c0c.

Revert "add logical retrying for the openai client"

This reverts commit 94a9e8efbf.
2024-10-28 23:22:58 -05:00
Kevin Turcios
c87ed40c0c poetry oof 2024-10-28 23:21:03 -05:00
Kevin Turcios
94a9e8efbf add logical retrying for the openai client 2024-10-28 23:18:16 -05:00
Kevin Turcios
f882e01cda Update cfapi.py 2024-10-28 22:19:52 -05:00
Kevin Turcios
e89c0b5284 another pickle handle 2024-10-28 21:49:20 -05:00
Kevin Turcios
eb33a1ef51 Merge branch 'main' of https://github.com/codeflash-ai/codeflash into paperqa-bugs 2024-10-28 21:19:09 -05:00
Saurabh Misra
274c7b3aa5
Merge pull request #1155 from codeflash-ai/fix-quantity-of-tests-critic
Use the right way to count passing tests
2024-10-28 19:06:14 -07:00
Saurabh Misra
398860cdb4 Use the right way to count passing tests 2024-10-28 18:16:14 -07:00
KRRT7
84b42aa6cf various improvements
- Refactor cfapi.py to handle error responses from the API and return appropriate messages.
- make the CF-API clearer when returning responses
formatting & ruff

make ruff happy
2024-10-28 18:17:19 -05:00
KRRT7
108aa2ea0d part two 2024-10-28 05:59:24 +00:00
Ubuntu
382bc8ff68 part one 2024-10-28 04:54:32 +00:00
Kevin Turcios
4211f68c21
Merge pull request #1138 from codeflash-ai/QOL-impls
CLI visual QOL improvement and AI service reliability
2024-10-28 04:43:26 +00:00
Saurabh Misra
1c1be3f0bc
Merge branch 'main' into QOL-impls 2024-10-27 20:52:17 -07:00
Saurabh Misra
8ea8e38ef2
Merge pull request #1148 from codeflash-ai/handle-pytest-with-classes
Fix failures for running tests with Classes within Pytest
2024-10-27 20:51:03 -07:00
Kevin Turcios
1341ba5368 Merge branch 'main' of https://github.com/codeflash-ai/codeflash into QOL-impls 2024-10-27 21:42:14 -05:00
Saurabh Misra
80678ab026
Merge branch 'main' into handle-pytest-with-classes 2024-10-27 19:27:11 -07:00
Saurabh Misra
e477d0f681
Merge pull request #1129 from codeflash-ai/reformat-the-project-with-new-ruff
Ruff reformat and fix codeflash dependencies
2024-10-27 19:22:47 -07:00
Saurabh Misra
ae66e89321 Fix failures for running tests with Classes within Pytest 2024-10-27 19:17:31 -07:00
Kevin Turcios
7e40312880 the grinch
revert retrying logic
2024-10-27 19:16:07 -05:00
Kevin Turcios
3047020c63 event loop closed fix.
upgrade version due to bug:
https://github.com/encode/httpcore/issues/670

create new Async client per created open_ai_client due to bad connection pooling:
https://github.com/encode/httpx/discussions/2959

when we raise exceptions we can leave the client in a bad state, creating the client from within the coroutine helps.
2024-10-27 19:03:28 -05:00
Kevin Turcios
483356f687 fix tests 2024-10-27 16:43:28 -05:00
Kevin Turcios
4785d8b26c hooks, not on=
you're supposed to use hooks from stamina, the on=callable wasn't reliable.
2024-10-27 16:34:08 -05:00
Kevin Turcios
9bda7bf470 add retrying to our aiservice requests 2024-10-27 12:52:36 -05:00
Kevin Turcios
cbe5fcc989 CLI visual QOL changes 2024-10-27 12:02:06 -05:00
Saurabh Misra
7bfb3dfa4f update formatting rules 2024-10-25 16:24:24 -07:00