-
Notifications
You must be signed in to change notification settings - Fork 22
remove failing generated tests #894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we cant run tests again. we already have this info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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