Commit 76d7790
committed
kernel_patch_verify: Clean up AI review output in report
The AI review section previously included verbose worktree creation
output ("Updating files...", "Processing SHA...", directory paths) and
full Claude analysis stdout, resulting in 200+ lines per patch even when
no issues were found.
This commit improves the output format by:
- Removing stderr redirect from review_one.sh call - worktree creation
progress and debugging output now goes to terminal only (visible during
execution but not in the final report)
- Extracting review-inline.txt and review.md files before worktree cleanup
- Adding clear separators between commit reviews
- Including metadata summary (issue count, severity, AI-authorship score)
when problems are found
Results:
- Clean patches: One line summary (e.g., "abc123: No issues found")
- Patches with issues: Metadata header + actionable comments (review-inline.txt)
+ detailed analysis (review.md)
- 98.5% reduction in report size for clean patches (8 lines vs 550 lines)
Users still see all progress information during execution, but the final
report only contains actionable results, making it much easier to identify
which commits need attention.
Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Nishanth Menon <nm@ti.com>1 parent 81835ec commit 76d7790
1 file changed
Lines changed: 50 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
491 | 491 | | |
492 | | - | |
| 492 | + | |
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
497 | 545 | | |
498 | 546 | | |
499 | 547 | | |
| |||
0 commit comments