-
Notifications
You must be signed in to change notification settings - Fork 22
Optimization Impact #750
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
Optimization Impact #750
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
| try: | ||
| # modify argument of staging vs pr based on the impact | ||
| opt_impact_response = self.aiservice_client.get_optimization_impact(**data) | ||
| if opt_impact_response == "low": |
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.
nit: add a statement for logging on response here
| payload = { | ||
| "code_diff": code_diff, | ||
| "explanation": explanation.raw_explanation_message, | ||
| "existing_tests": existing_tests_source, |
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.
Q: How much existing tests and generated tests are effective in context. Did we try the results ignoring them as well?
PR Type
Enhancement
Description
Add optimization impact assessment endpoint call
Gate PR creation by impact level
Include profiler and runtime metadata
Minor typing and import improvements
Diagram Walkthrough
File Walkthrough
aiservice.py
Add API client for optimization impact computationcodeflash/api/aiservice.py
get_optimization_impactAPI method.humanize_runtime, typing casts, and Path handling.function_optimizer.py
Gate PR creation based on impact resultcodeflash/optimization/function_optimizer.py
env_utils.py
Minor formatting in env utilscodeflash/code_utils/env_utils.py