Repository navigation
reviewhelper: describe the patch stack to the review agent - #7662
Conversation
Only `expand_context` applied the patch stack, so the agent checked stacked patches against mozilla-central and flagged code added earlier in the stack as missing. The first message now lists the patches before and after the reviewed one, with the files the nearest ancestors touch, and the Searchfox tools warn that they do not see the stack. Refs mozilla#7350
padenot
left a comment
There was a problem hiding this comment.
We need to make this async and parallel. I think the async client isn't amazing and creates a new object each time, so the ergonomics from the outside aren't amazing, but it's easily fixed.
As things stand, this will make sync requests for each revs and we don't want that.
One revision search per side of the stack and one diff query for the nearest ancestors' files replace two calls per patch.
# Conflicts: # bugbug/tools/core/platforms/phabricator.py
Ancestors reuse the cached `get_stack_patches`, so they load concurrently and are shared with `expand_context`. Descendants load with one revision search.
Uh oh! Looks like an error!Taskcluster-GitHub attempted to create a task for this event with the following scopes: The expansion of these scopes is not sufficient to create the task, leading to the following: Client ID static/taskcluster/github does not have sufficient scopes and is missing the following scopes: This request requires the client to satisfy the following scope expression:
|
|
Rebased onto the async-client changes after #7685. The stack now reuses |
Only
expand_contextapplied the patch stack, so the agent checked stacked patchesagainst mozilla-central and flagged code added earlier in the stack as missing. The
first message now lists the patches before and after the reviewed one, with the files
the nearest ancestors touch, and the Searchfox tools warn that they do not see the
stack.
Refs #7350