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

Issue 2070333003: 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, Dirk Pranke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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}

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -29 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 chunks +2 lines, -17 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/multi_command_tool_unittest.py View 1 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch.py View 2 chunks +35 lines, -1 line 1 comment Download

Messages

Total messages: 14 (5 generated)
qyearsley
4 years, 6 months ago (2016-06-16 16:15:55 UTC) #2
Dirk Pranke
lgtm
4 years, 6 months ago (2016-06-16 22:22:24 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2070333003/20001
4 years, 6 months ago (2016-06-17 04:36:40 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-17 05:44:45 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/b5277f6feda049f0941928ae198ed8fed41e15a2 Cr-Commit-Position: refs/heads/master@{#400369}
4 years, 6 months ago (2016-06-17 05:45:52 UTC) #9
Xianzhu
This seems to break rebaseline-o-matic: https://build.chromium.org/p/chromium.infra.cron/builders/rebaseline-o-matic/builds/356250/steps/webkit-patch%20auto-rebaseline/logs/stdio
4 years, 6 months ago (2016-06-17 06:03:13 UTC) #10
Xianzhu
The CL needs modification to work. Would you mind if I revert it? https://codereview.chromium.org/2070333003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch.py File ...
4 years, 6 months ago (2016-06-17 06:16:40 UTC) #12
Xianzhu
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2075073002/ by wangxianzhu@chromium.org. ...
4 years, 6 months ago (2016-06-17 06:17:32 UTC) #13
qyearsley
4 years, 6 months ago (2016-06-17 15:08:18 UTC) #14
Message was sent while issue was closed.
On 2016/06/17 at 06:17:32, wangxianzhu wrote:
> A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2075073002/ by wangxianzhu@chromium.org.
> 
> The reason for reverting is: Broke rebaseline-o-matic because commands are not
bound to tool..

Ah, didn't catch this -- will make a reland CL with a patch to fix this.

Powered by Google App Engine
This is Rietveld 408576698