remove failing generated tests#894
Conversation
PR Reviewer Guide 🔍(Review updated until commit cef9891)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to cef9891
Previous suggestionsSuggestions up to commit 5933149
|
|
Persistent review updated to latest commit cef9891 |
| ] | ||
|
|
||
| if not failing_test_names: | ||
| logger.info("All generated tests pass ✅") |
There was a problem hiding this comment.
this message is not necessary
| from codeflash.code_utils.edit_generated_tests import _compile_function_patterns | ||
|
|
||
| test_env = self.get_test_env(codeflash_loop_index=0, codeflash_test_iteration=0, codeflash_tracer_disable=1) | ||
| behavioral_results, _ = self.run_and_parse_tests( |
There was a problem hiding this comment.
we cant run tests again. we already have this info
There was a problem hiding this comment.
we don't have this info, I'm doing this before the behavioral and performance tests run
PR Type
Enhancement, Bug fix
Description
Auto-remove failing generated regression tests
Add async safety by pruning bad tests early
Insert console rule after cleanup step
Minor typing: import
Patternfor regex useDiagram Walkthrough
File Walkthrough
function_optimizer.py
Pre-baseline pruning of failing generated testscodeflash/optimization/function_optimizer.py
remove_failing_teststo prune bad generated testsremove_tests_from_sourcewith regex-based deletionPattern