Releases: codeflash-ai/codeflash
Release v0.20.0
What's Changed
Release 0.20.0 of codeflash.
Full Changelog: https://github.com/codeflash-ai/codeflash/commits/v0.20.0
What's Changed
- ⚡️ Speed up method
AssertCleanup.transform_assertsby 25% by @codeflash-ai[bot] in #1034 - simplify E2E replay test to reduce load in CI by @KRRT7 in #1033
- Add numba and tensorflow in test dependency group by @aseembits93 in #1038
- Disable Line Profiler Execution when dealing with a jit compiled function by @aseembits93 in #1020
- Optimization effort by @mohammedahmed18 in #978
- Non-CPU device synchronization for accurate profiling by @aseembits93 in #1015
- refresh lockfile by @KRRT7 in #1032
- More stringent unit tests for gpu-instrumentation by @aseembits93 in #1044
- Update docs by @mashraf-222 in #1047
- fix: validate if trace_file exists by @KRRT7 in #1030
- upgrade cli to review prompt changes by @Saga4 in #1043
- feat: add --limit option to codeflash optimize -m pytest by @KRRT7 in #1031
- Comparator for torch.device by @aseembits93 in #1053
- AST Parser for detecting numerical code (numpy/scipy/torch/tensorflow/jax/numba) by @aseembits93 in #1051
- AST parser for detecting common jit decorators by @aseembits93 in #1048
- display RO / RW context (--verbose) by @KRRT7 in #1054
- fix: improve error handling in get_blocklisted_functions by @KRRT7 in #1029
- JIT rewrite endpoint for testgen more suitable for JIT compiled functions by @aseembits93 in #1055
- fix --benchmark not working on codeflash itself by @KRRT7 in #1028
- feat: add --server flag and set local AI service timeout by @KRRT7 in #1042
- fix: validate CrossHair-generated tests before use by @KRRT7 in #1103
- ⚡️ Speed up method
TestFiles.get_test_type_by_original_file_pathby 73% in PR #1086 (fix-path-resolution/no-gen-tests) by @codeflash-ai[bot] in #1102 - ⚡️ Speed up method
TestFiles.get_by_original_file_pathby 702% in PR #1086 (fix-path-resolution/no-gen-tests) by @codeflash-ai[bot] in #1101 - bring Claude.md in by @KRRT7 in #1121
- FIX: --no-gen-tests Flag Causes Path Resolution Error with Module-Root by @mashraf-222 in #1086
- add vsc extension docs by @mashraf-222 in #1083
- [Feat] Add a line profiler for VS Code by @HeshamHM28 in #1111
- Comparator for wrapped exceptions by @aseembits93 in #1120
- extend comparator to pytest temp paths by @aseembits93 in #1112
- reduce invalid crosshair tests noise by @KRRT7 in #1146
- Extend comparator to numba data types by @aseembits93 in #1114
- feat: concurrency-aware async benchmarking by @KRRT7 in #1023
- extend comparator support for np.clongdouble by @aseembits93 in #1115
- Bump wheel from 0.45.1 to 0.46.2 by @dependabot[bot] in #1142
- feat: clarify improvement type in async optimization display by @KRRT7 in #1149
- ⚡️ Speed up function
detect_unused_helper_functionsby 15% in PR #1166 (skyvern-grace) by @codeflash-ai[bot] in #1169 - Disable jit during tracing by @aseembits93 in #1164
- feat: improve dependency tracking and base class extraction by @KRRT7 in #1166
- support MappingProxyType by @KRRT7 in #1147
- chore: add tessl registry for AI agent library docs by @KRRT7 in #1170
- release/v0.20 by @aseembits93 in #1173
New Contributors
- @dependabot[bot] made their first contribution in #1142
Full Changelog: v0.19.1...v0.20.0
Release v0.19.1
What's Changed
Release 0.19.1 of codeflash.
Full Changelog: https://github.com/codeflash-ai/codeflash/commits/v0.19.1
What's Changed
- Add Claude Code GitHub Workflow by @KRRT7 in #985
- docs: add image and language update by @misrasaurabh1 in #986
- ⚡️ Speed up function
should_stopby 438% in PR #967 (exp/consistent-loop-break) by @codeflash-ai[bot] in #984 - calling cf-api while setting up github actions during init command by @mashraf-222 in #907
- limit Claude Code reviews by @KRRT7 in #995
- fix future house test expectation by @KRRT7 in #996
- No Generated Tests Argument (cf-953) by @aseembits93 in #988
- Don't cleanup replays and traces by @KRRT7 in #993
- let's add diversity to our optimizations by @KRRT7 in #990
- [Enhancement] Stop looping when runtime is stable (CF-934) by @mohammedahmed18 in #967
- adopt conventional + atomic commits by @KRRT7 in #1006
- Fix: add support for numpy.dtypes for the comparator by @aseembits93 in #1007
- comparator fix for more numpy types by @aseembits93 in #1008
- [FEAT][EXP] Adaptive optimizations (CF-831) by @mohammedahmed18 in #1003
- Disable the adaptive optimization until we have the effort param. by @mohammedahmed18 in #1010
- [Code-Repair] Disable repair if there was correct candidates (CF-970) by @mohammedahmed18 in #1012
- Unstructured fixes by @KRRT7 in #1005
- [Chore] Refine candidates in parallel while testing others and apply the weighted ranking afterwards (CF-960) by @mohammedahmed18 in #1011
- for local dev set timeout to None by @KRRT7 in #1013
- Common JIT disable flags to ensure coverage works by @aseembits93 in #1018
- Fix for VSC windows by @mashraf-222 in #948
- feat: extract imported class definitions for testgen context by @KRRT7 in #1014
- feat: display the optimization reviewer result in the CLI by @KRRT7 in #1026
- fix: resolve Windows path case sensitivity in optimize changed code by @mashraf-222 in #1027
- fix: improve worktree path handling for cross-platform compatibility by @mashraf-222 in #1035
- FIX: Windows bug during remove worktree permission error by @mashraf-222 in #1036
- release/v0.19.1 by @mashraf-222 in #1037
Full Changelog: v0.19.0...v0.19.1
Release v0.19.0
What's Changed
Release 0.19.0 of codeflash.
Full Changelog: https://github.com/codeflash-ai/codeflash/commits/v0.19.0
What's Changed
- ⚡️ Speed up function
parse_test_failures_from_stdoutby 16% in PR #945 (feat/feedback-loop-for-unmatched-test-results) by @codeflash-ai[bot] in #946 - use pytest as the execution engine for all tests by @KRRT7 in #951
- apply cancel-in-progress to all GHA by @KRRT7 in #956
- [FIX] incorrect PR message shown when --no-pr flag is passed by @mohammedahmed18 in #958
- Split test generation and optimizations generation into separate methods by @KRRT7 in #957
- CF-928 remove test_framework from pyproject.toml by @KRRT7 in #955
- extract logic for processing a candidate into a method for separation of concerns by @KRRT7 in #959
- chore: combine test errors for LSP by @HeshamHM28 in #961
- ⚡️ Speed up method
AiServiceClient._get_valid_candidatesby 45% in PR #945 (feat/feedback-loop-for-unmatched-test-results) by @codeflash-ai[bot] in #966 - Show Progress while profiling the candidate by @mohammedahmed18 in #968
- lsp tests validation by @mashraf-222 in #944
- shorten error string, more enhancements needed by @aseembits93 in #965
- Comparator support for tensorflow, dict views, slices, 0-d numpy arrays, torch dtypes by @misrasaurabh1 in #979
- [Enhancement] Use weighted ranking to cap refinement candidates (CF-931) by @mohammedahmed18 in #962
- tracer improvements by @KRRT7 in #970
- [FEAT] Code-repair for candidates with unmatched test results by @mohammedahmed18 in #945
- release/v0.19.0 by @misrasaurabh1 in #982
Full Changelog: v0.18.7...v0.19.0
Release v0.18.7
What's Changed
Release 0.18.7 of codeflash.
Full Changelog: https://github.com/codeflash-ai/codeflash/commits/v0.18.7
What's Changed
- CF-900 allow async optimizations by default by @KRRT7 in #938
- [LSP] Runtime info for sucessful opt & cancel demo optimization by @mohammedahmed18 in #942
- ensure custom test root directory exists during init command by @mashraf-222 in #943
- saving the API key correctly for windows PowerShell by @mashraf-222 in #940
- Enhance CLI init GitHub app installation prompt visibility with ENTER in caps and >>> indicator by @mashraf-222 in #941
- release/v0.18.7 by @misrasaurabh1 in #952
Full Changelog: v0.18.6...v0.18.7
Release v0.18.6
What's Changed
Release 0.18.6 of codeflash.
Full Changelog: https://github.com/codeflash-ai/codeflash/commits/v0.18.6
What's Changed
- ⚡️ Speed up function
levenshtein_distanceby 12% in PR #924 (small-fixes) by @codeflash-ai[bot] in #927 - log unknown comparator input types by @KRRT7 in #925
- refactor how async decorators are applied at source site by @KRRT7 in #897
- CF-815: check if branch is pushed for --file as well by @KRRT7 in #883
- Language update and more helpful error message by @misrasaurabh1 in #924
- [LSP][FIX] prefill the existing config values from the client by @mohammedahmed18 in #926
- [Chore] Validate API key in the init flow by @HeshamHM28 in #932
- Add Optimization Review Label in VSC Extension by @aseembits93 in #905
- Correct sample code for demo optimization (CF-876) by @mohammedahmed18 in #929
- Pytest discovery with fixtures for class instantiation by @aseembits93 in #934
- [FIX] Extract the required module names inside the read-writable context (CF-862) by @mohammedahmed18 in #935
- [Feat] CLI Login by @HeshamHM28 in #928
- Update version.py by @Saga4 in #937
Full Changelog: v0.18.5...v0.18.6
Release v0.18.5
What's Changed
Release 0.18.5 of codeflash.
Full Changelog: https://github.com/codeflash-ai/codeflash/commits/v0.18.5
What's Changed
- submodule bugs by @misrasaurabh1 in #914
- dont format generated code if no formatter provided by @aseembits93 in #917
- Add VSC extension page by @Saga4 in #906
- only tag the single commit by codeflash bot and then revert to defaults by @misrasaurabh1 in #915
- [VSC] pyproject setup fix by @aseembits93 in #919
- misc fixes [VSC] by @Saga4 in #918
- release/v0.18.5 by @KRRT7 in #923
Full Changelog: v0.18.4...v0.18.5
Release v0.18.4
What's Changed
Release 0.18.4 of codeflash.
Full Changelog: https://github.com/codeflash-ai/codeflash/commits/v0.18.4
What's Changed
- fix the tracer by @KRRT7 in #884
- Always use isort.code with exception catching everywhere by @aseembits93 in #896
- [FIX] Handle new added classes by @mohammedahmed18 in #898
- fix docs link by @misrasaurabh1 in #899
- Run Formatter on generated tests by @aseembits93 in #895
- dont display generated file if there are no test functions passing for that file by @aseembits93 in #900
- [LSP] Send the configured project settings to the client as default values by @mohammedahmed18 in #893
- [Chore] Better config file validation for the lsp by @mohammedahmed18 in #912
- v0.18.4 by @misrasaurabh1 in #913
Full Changelog: v0.18.3...v0.18.4
Release v0.18.3
What's Changed
Release 0.18.3 of codeflash.
Full Changelog: https://github.com/codeflash-ai/codeflash/commits/v0.18.3
What's Changed
- fix publish workflow by @misrasaurabh1 in #888
- release/v0.18.3 by @misrasaurabh1 in #889
Full Changelog: v0.18.2...v0.18.3
v0.14.7
What's Changed
- Made codeflash generate better reporting
- fix important errors while finding optimizations
- Codeflash can also optimize random functions now
- don't fail for open source packages for external contributors
- make test generation a lot faster.
Full release notes -
- release/v0.14.6 by @misrasaurabh1 in #377
- patch randomness while running tests by @misrasaurabh1 in #378
- uuid comparator test by @misrasaurabh1 in #382
- [Chore] Error message on missing API key for forks (CF-675) by @mohammedahmed18 in #371
- barebones LSP Server implementation by @KRRT7 in #309
- [LSP] discover existing tests and return the best candidate to the client by @mohammedahmed18 in #441
- minor modification for checking replay tests passing by @aseembits93 in #443
- Rename the test files and Workflow name as all of them have same name by @Saga4 in #442
- avoid serializing optimized code by @mohammedahmed18 in #446
- concolic time from 64 to 20s per condition by @misrasaurabh1 in #445
- Add no-pr argument to CF LSP by @Saga4 in #449
- improve codeflash debugging exp on VSC by @KRRT7 in #444
- disable concolic testing in LSP mode by @KRRT7 in #450
- Just clean all leftover instrumented tests by @misrasaurabh1 in #454
- [FIX] Circular dependency and global assignments imports by @mohammedahmed18 in #448
- saga4/fix optimizable functions by @Saga4 in #452
- cleanup by @misrasaurabh1 in #457
Full Changelog: v0.14.6...v0.14.7
v0.13.0
What's Changed
- remove set while runnin formatters by @misrasaurabh1 in #252
- Refactor checking of formatter by using existing function
format_codeby @aseembits93 in #254 - propagate cf-api errors by @KRRT7 in #241
- release v0.12.4 by @misrasaurabh1 in #253
- docs improvement by @misrasaurabh1 in #257
- optimize codeflash import time by @KRRT7 in #245
- Replay test template bug by @aseembits93 in #255
- don't count nested functions as it's own func by @KRRT7 in #258
- increase the min number of test cases passed by @misrasaurabh1 in #259
- Do not output formmater check output by @aseembits93 in #260
- coverage undefined bug fix by @Saga4 in #263
- Rich error output during baseline establishment (CF-646) by @aseembits93 in #265
- More precise stdout capture by @misrasaurabh1 in #273
Full Changelog: v0.12.4...v0.13.0