-
Notifications
You must be signed in to change notification settings - Fork 314
adding the comment typing generation #5110
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: master
Are you sure you want to change the base?
Conversation
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.
Thank you, @olewicki! Please take a look at my comments.
bugbug/tools/code_review.py
Outdated
@@ -1376,6 +1491,8 @@ def run(self, patch: Patch) -> list[InlineComment] | None: | |||
return_only_outputs=True, | |||
)["text"] | |||
|
|||
raw_output = self._get_comment_type(raw_output) |
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.
I would move the process after running generate_processed_output()
, then attach the types to the structured output instead of parsing the raw output twice.
bugbug/tools/code_review.py
Outdated
"code_line": 458, | ||
"comment" : "In the third code block, you are using `nsAutoStringN<256>` instead of `nsString`. This is a good change as `nsAutoStringN<256>` is more efficient for small strings. However, you should ensure that the size of `tempString` does not exceed 256 characters, as `nsAutoStringN<256>` has a fixed size." | ||
"label": "Performance", | ||
"label_justification": "Functional - Performance Optimization: Specific performance-focused refactoring." |
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.
This seems like a subcategory, not a justification.
Co-authored-by: Suhaib Mujahid <[email protected]>
Co-authored-by: Suhaib Mujahid <[email protected]>
Co-authored-by: Suhaib Mujahid <[email protected]>
Co-authored-by: Suhaib Mujahid <[email protected]>
…end of the pipeline
No description provided.