Chromium Code Reviews
DescriptionReland of Use an explicit list of webkit-patch commands instead of using auto-discovery. (patchset #1 id:1 of https://codereview.chromium.org/2075073002/ )
Reason for revert:
I believe the problem was that the commands weren't passed to the MultiCommandTool constructor, so command.bind_to_tool(multi_command_tool) wasn't called for the commands.
Original issue's description:
> Revert of Use an explicit list of webkit-patch commands instead of using auto-discovery. (patchset #2 id:20001 of https://codereview.chromium.org/2070333003/ )
>
> Reason for revert:
> Broke rebaseline-o-matic because commands are not bound to tool.
>
> Original issue's description:
> > Use an explicit list of webkit-patch commands instead of using auto-discovery.
> >
> > This is a followup to http://crrev.com/1950773002 and related CLs,
> > which removed remove imports from other __init__.py files; after this,
> > all of the __init__.py files in webkitpy are empty.
> >
> > Before this CL, webkit-patch relies on all commands being imported (by
> > importing the package webkitpy.tool.commands) and then discovering all
> > subclasses of command using the magic method __subclasses__.
> >
> > This CL makes it so that commands that are part of webkit-patch are
> > explicitly listed, and there is no class discovery.
> >
> > BUG=598897
> >
> > Committed: https://crrev.com/b5277f6feda049f0941928ae198ed8fed41e15a2
> > Cr-Commit-Position: refs/heads/master@{#400369}
>
> TBR=dpranke@chromium.org,qyearsley@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=598897
>
> Committed: https://crrev.com/e0afd0716fe7c94d890cf94b8771692bd827884e
> Cr-Commit-Position: refs/heads/master@{#400376}
TBR=dpranke@chromium.org,wangxianzhu@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=598897
Committed: https://crrev.com/1b8faf8a0ea9a61359b5866cacec5d6da573c82a
Cr-Commit-Position: refs/heads/master@{#400487}
Patch Set 1 #Patch Set 2 : Pass list of commands to MultiCommandTool constructor. #
Total comments: 2
Patch Set 3 : Removed extra newline. #Patch Set 4 : Add test method to assert that MultiCommandTool constructor calls bind_to_tool. #Patch Set 5 : Added a FIXME note about a possible refactoring. #
Total comments: 2
Patch Set 6 : Remove parameter name, make parameter commands mandatory. #
Messages
Total messages: 15 (3 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||