-
Notifications
You must be signed in to change notification settings - Fork 22
cleanup properly #375
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
cleanup properly #375
Conversation
add verbose mode to --verify-setup
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
we don't want this event + slows down cleanup, and the user might exit the cleanup before we get a chance
User description
also add verbose mode to --verify-setup
PR Type
Enhancement
Description
Add verbose flag to end-to-end test command
Use console.out instead of console.print
Refactor generated files cleanup in FunctionOptimizer
Track and cleanup current function optimizer
Changes walkthrough 📝
cmd_init.py
Support verbose end-to-end testscodeflash/cli_cmds/cmd_init.py
--verboseflag support to end-to-end tests--verboseto the subprocess commandconsole.printwithconsole.outfor outputfunction_optimizer.py
Simplify generated files cleanupcodeflash/optimization/function_optimizer.py
cleanup_generated_filesimplementationself.test_filesto collect cleanup pathsoptimizer.py
Track and cleanup current function optimizercodeflash/optimization/optimizer.py
current_function_optimizerin constructorcurrent_function_optimizerinruncleanup_generated_filesincleanup_temporary_paths