-
Notifications
You must be signed in to change notification settings - Fork 314
[code_review] Rank comments based on importance #5019
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
547b883
to
825f4e3
Compare
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.
Pull Request Overview
This PR introduces a ranking mechanism for code review comments by including an order field to specify comment priority, along with related adjustments in both the evaluation tool and comment model. Key changes include enabling verbose mode in the evaluator for debugging, adding the new_comment_order field in the processed output, and updating the inline comment structure and review prompt instructions to support ranking.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
scripts/code_review_tool_evaluator.py | Enabled verbose logging and updated diff output to include new_comment_order; changed tool variant string. |
bugbug/tools/code_review.py | Added the order field to InlineComment and updated review generation instructions to expect a ranking order. |
Comments suppressed due to low confidence (2)
Co-authored-by: Marco Castelluccio <mcastelluccio@mozilla.com>
Resolves #5018
I will report the experiment results here: https://docs.google.com/spreadsheets/d/1CIskQot4TVxHFXxOpXpYMReERuOobqeYQh25bmPHjxQ