-
Notifications
You must be signed in to change notification settings - Fork 1
fix: increase MAX_DIFF_SIZE default from 800KB to 5MB #19
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
Allows larger PRs to be reviewed without manual configuration. The 800KB limit was too restrictive for many real-world PRs.
Adds the following environment variables to reduce token usage: - INCLUDE_PREVIOUS_REVIEWS (default: true) - INCLUDE_HUMAN_COMMENTS (default: true) - INCLUDE_CHECK_RUNS (default: true) - INCLUDE_LABELS (default: true) - INCLUDE_PR_DESCRIPTION (default: true) - INCLUDE_COMMIT_MESSAGES (default: true) Set any to 'false' to exclude that context and reduce token count. This helps handle large PRs that would otherwise exceed model context limits.
|
AI response could not be processed. Please check the workflow logs for debugging information. |
When DEBUG_MODE is enabled, the workflow captures both debug output (stderr) and JSON output (stdout) together. This caused JSON parsing to fail because it tried to parse the entire mixed output. Now the workflow extracts just the JSON object from the mixed output before attempting to parse it.
AI Code ReviewThis PR effectively addresses the 800KB size limit and JSON parsing issues from debug output mixing, but introduces fragile extraction logic and potential performance concerns that should be addressed before merge. 🔒 SecurityPotential Data Leakage in Debug Mode
No Input Validation on Environment Variables
⚡ Performance & Resource UsageSubstantial Token Usage Increase
Inefficient JSON Extraction Pipeline
🐛 Code Quality & ReliabilityFragile JSON Extraction Logic
Magic Numbers Without Documentation
Inconsistent Error Handling
Code Duplication
💡 Best PracticesConfiguration Defaults
Missing Documentation
Dependency Assumption
✅ Verdict: Approved with RecommendationsThe changes solve real problems but need refinement:
These issues are not blocking but significantly impact reliability and maintainability. Review by Friendly AI Reviewer - made with ❤️ AI Code ReviewThis PR effectively addresses the 800KB size limit and JSON parsing issues from debug output mixing, but introduces fragile extraction logic and potential performance concerns that should be addressed before merge. 🔒 SecurityPotential Data Leakage in Debug Mode
No Input Validation on Environment Variables
⚡ Performance & Resource UsageSubstantial Token Usage Increase
Inefficient JSON Extraction Pipeline
🐛 Code Quality & ReliabilityFragile JSON Extraction Logic
Magic Numbers Without Documentation
Inconsistent Error Handling
Code Duplication
💡 Best PracticesConfiguration Defaults
Missing Documentation
Dependency Assumption
✅ Verdict: Approved with RecommendationsThe changes solve real problems but need refinement:
These issues are not blocking but significantly impact reliability and maintainability. Review by Friendly AI Reviewer - made with ❤️ |
AI Code ReviewIncreases diff limits and adds context controls, but fragile JSON parsing and insecure debug logging require fixes before merge. 🔒 SecuritySensitive Data Exposure in Debug Mode
Silent Configuration Failures
⚡ PerformanceExcessive Token Usage by Default
Inefficient JSON Extraction
🐛 Critical Reliability IssuesBroken JSON Extraction Logic
Undocumented Magic Numbers
Code Duplication
❌ Request ChangesBlocking issues:
Address these before merge to ensure reliability and security. Review by Friendly AI Reviewer - made with ❤️ AI Code ReviewIncreases diff limits and adds context controls, but fragile JSON parsing and insecure debug logging require fixes before merge. 🔒 SecuritySensitive Data Exposure in Debug Mode
Silent Configuration Failures
⚡ PerformanceExcessive Token Usage by Default
Inefficient JSON Extraction
🐛 Critical Reliability IssuesBroken JSON Extraction Logic
Undocumented Magic Numbers
Code Duplication
❌ Request ChangesBlocking issues:
Address these before merge to ensure reliability and security. Review by Friendly AI Reviewer - made with ❤️ |
Fixes 'Unable to process file command env' error by: 1. Adding quotes around $GITHUB_ENV variable 2. Trimming whitespace/newlines from DECISION value before setting it
AI Code Review❌ Error: Invalid JSON response from AI model Review by Friendly AI Reviewer - made with ❤️ |
AI Code Review❌ Error: Invalid JSON response from AI model Review by Friendly AI Reviewer - made with ❤️ |
Reverts the fragile awk/perl JSON extraction that was causing failures. Changes: - Removed AI_JSON extraction logic - Removed 2>&1 to prevent stderr mixing with JSON output - Debug messages now go to workflow logs naturally - Keeps DECISION trimming and GITHUB_ENV quoting fixes The script outputs JSON to stdout and debug to stderr, so they don't need complex extraction - just capture stdout for JSON.
AI Code ReviewThis PR effectively increases diff size limits and adds granular context controls while fixing shell scripting robustness issues. The changes demonstrate good iterative development based on real-world failures. 🔒 Security
✅ Code Quality & Best PracticesRobustness Improvements:
Performance & Flexibility:
Design:
Inference (not verified): Debug mode output may be harder to correlate with specific AI response failures since stderr is no longer captured in Review by Friendly AI Reviewer - made with ❤️ |
Summary
Context
The AI Code Reviewer workflow in local-deep-research failed with:
Changes
Impact