Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Issue 2073893004: Reland of Use an explicit list of webkit-patch commands instead of using auto-discovery. (Closed)

Created:
4 years, 6 months ago by qyearsley
Modified:
4 years, 6 months ago
Reviewers:
Dirk Pranke, Xianzhu
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -36 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/__init__.py View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool.py View 1 2 3 4 5 2 chunks +6 lines, -20 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool_unittest.py View 1 2 3 4 5 5 chunks +13 lines, -6 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch.py View 1 2 2 chunks +35 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
qyearsley
Created Reland of Use an explicit list of webkit-patch commands instead of using auto-discovery.
4 years, 6 months ago (2016-06-17 16:19:23 UTC) #1
Dirk Pranke
I can't really tell what the fix is here?
4 years, 6 months ago (2016-06-17 16:47:48 UTC) #2
qyearsley
https://codereview.chromium.org/2073893004/diff/130001/third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch.py (right): https://codereview.chromium.org/2073893004/diff/130001/third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch.py#newcode80 third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch.py:80: ]) Fix is here -- previously, self.commands was set ...
4 years, 6 months ago (2016-06-17 16:58:36 UTC) #3
Dirk Pranke
okay. why did the unit tests not catch that?
4 years, 6 months ago (2016-06-17 17:10:31 UTC) #4
qyearsley
On 2016/06/17 at 17:10:31, dpranke wrote: > okay. why did the unit tests not catch ...
4 years, 6 months ago (2016-06-17 17:41:28 UTC) #5
Dirk Pranke
lgtm w/ potential improvements or follow-up changes. https://codereview.chromium.org/2073893004/diff/190001/third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool.py (right): https://codereview.chromium.org/2073893004/diff/190001/third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool.py#newcode50 third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool.py:50: self.commands = ...
4 years, 6 months ago (2016-06-17 19:09:25 UTC) #6
qyearsley
https://codereview.chromium.org/2073893004/diff/190001/third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool.py (right): https://codereview.chromium.org/2073893004/diff/190001/third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool.py#newcode50 third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool.py:50: self.commands = commands or [] On 2016/06/17 at 19:09:25, ...
4 years, 6 months ago (2016-06-17 20:10:06 UTC) #7
Dirk Pranke
It's called webkit-patch because the original purpose of this tool was to upload patches to ...
4 years, 6 months ago (2016-06-17 20:12:49 UTC) #8
qyearsley
On 2016/06/17 at 20:12:49, dpranke wrote: > It's called webkit-patch because the original purpose of ...
4 years, 6 months ago (2016-06-17 20:22:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2073893004/210001
4 years, 6 months ago (2016-06-17 20:22:44 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:210001)
4 years, 6 months ago (2016-06-17 20:23:41 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 20:26:22 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1b8faf8a0ea9a61359b5866cacec5d6da573c82a
Cr-Commit-Position: refs/heads/master@{#400487}

Powered by Google App Engine
This is Rietveld 408576698