-
Notifications
You must be signed in to change notification settings - Fork 21
Don't cleanup replays and traces #993
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
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Pull Request Review: Don't cleanup replays and tracesSummaryThis PR removes cleanup logic for replay test directories and trace files by:
Code Quality & Best Practices ✅Positive aspects:
Concerns:
Potential Bugs 🐛
Performance Considerations ⚡
Security Concerns 🔒Low Risk, but consider:
Test Coverage 🧪Major Concern: No tests were added or modified to cover the new behavior Recommendations:
Questions for the Author 🤔
Recommendations 📋Before merging:
Optional improvements:
VerdictThe simplification is good, but the lack of context and potential resource leaks are concerning. This PR needs:
Recommendation: Request changes to address disk space management and documentation before merging. Review generated by Claude Code |
Code Review: Don't cleanup replays and tracesSummaryThis PR removes cleanup logic for trace and replay files, allowing them to persist after execution. The changes affect the optimizer and tracer modules, simplifying cleanup logic and adding warning suppression for pickle operations. ✅ Positive Aspects
|
PR Type
Enhancement
Description
Stop deleting trace and replay files
Remove replay cleanup logic in optimizer
Persist traces after tracer execution
Simplify temporary paths cleanup
Diagram Walkthrough
File Walkthrough
optimizer.py
Remove replay/trace cleanup; simplify optimizer cleanupcodeflash/optimization/optimizer.py
tracer.py
Keep traces/replays; remove post-run deletionscodeflash/tracer.py