Saurabh Misra
8f607755a3
Merge pull request #1164 from codeflash-ai/catch-one-more-exception-type
...
minor crash fix
2024-11-01 18:13:41 -07:00
Saurabh Misra
13cdbc522e
Merge pull request #1168 from codeflash-ai/tracer-fixes
...
Fix Tracer and Replay Tests
2024-11-01 17:11:30 -07:00
Saurabh Misra
6d66f17f80
revert to the previous code
2024-11-01 16:53:56 -07:00
Saurabh Misra
5c7f6cd4b9
Merge pull request #1170 from codeflash-ai/tracer-e2e-test
...
Add an end to end test for tracer
2024-11-01 16:50:18 -07:00
Saurabh Misra
17cce857c8
trace 3 function calls
2024-11-01 16:26:55 -07:00
Saurabh Misra
d1737bfe86
Merge branch 'refs/heads/tracer-fixes' into tracer-e2e-test
2024-11-01 16:25:26 -07:00
Saurabh Misra
8db220e430
github action workflow
2024-10-31 20:00:48 -07:00
Saurabh Misra
d76f77bae8
Add an end to end test for tracer
2024-10-31 19:57:48 -07:00
Saurabh Misra
af5c6d29d0
Fix replay testing execution
2024-10-31 19:48:57 -07:00
Saurabh Misra
a3d061faf4
Fix replay testing
2024-10-31 15:37:31 -07:00
Saurabh Misra
8006ac51c0
Merge remote-tracking branch 'origin/tracer-fixes' into tracer-fixes
2024-10-31 12:04:04 -07:00
Saurabh Misra
1d6a588bcf
fix a tracer path bug
2024-10-31 12:03:50 -07:00
Saurabh Misra
0f1c0d57f1
Merge pull request #1169 from codeflash-ai/codeflash/optimize-TestResults.get_by_id-2024-10-31T04.52.39
...
⚡ ️ Speed up method `TestResults.get_by_id` by 28% in `cli/codeflash/verification/test_results.py`
2024-10-30 22:05:25 -07:00
codeflash-ai[bot]
6c16c6d617
⚡ ️ Speed up method TestResults.get_by_id by 28%
...
To optimize the provided Python code for runtime and memory efficiency, various changes can be made, such as avoiding repeated computations, using more efficient data structures, and reducing unnecessary calls. Here is the optimized version of the program.
Here are the key optimizations made.
1. Inline variable calculation: Removed unnecessary recomputation of the test class and function string during the `id()` method.
2. Simplified `from_str_id`: Used more concise splitting and assignment for `test_class_name` and `test_function_name`.
3. Cached `other` test results in `__eq__` method using a dictionary for faster lookup.
4. Streamlined `get_by_id` method by switching to a direct loop instead of using a generator expression with `next()`.
5. Added `test_results` attribute declaration in `TestResults` dataclass to avoid potential `AttributeError`.
These adjustments help in reducing overhead, unnecessary computations, and improving the clarity of the code, ultimately making the program execute faster.
2024-10-31 04:52:42 +00:00
Saurabh Misra
d2afc0a66c
Fix Tracer pathlib issues
2024-10-30 21:45:59 -07:00
Saurabh Misra
3963c3633c
Merge pull request #1166 from codeflash-ai/progress-bars-for-optimization-candidates
...
add progress bar for optimization candidate run as well
2024-10-30 21:28:30 -07:00
Saurabh Misra
84bdccdec7
add progress bar for optimization candidate run as well
2024-10-30 20:53:31 -07:00
Saurabh Misra
82238ec641
fix testname parsing crash
2024-10-30 18:14:01 -07:00
Saurabh Misra
3876999300
log one more failure, make the exception more general
2024-10-30 16:03:24 -07:00
Saurabh Misra
d10d700ac8
minor crash fix
2024-10-30 13:53:35 -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