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

Issue 2397573002: Don't track SCM changes in rebaseline commands. (Closed)

Created:
4 years, 2 months ago by qyearsley
Modified:
4 years, 2 months ago
Reviewers:
Dirk Pranke, wkorman
CC:
blink-reviews, chromium-reviews, Dirk Pranke, jeffcarp, ojan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't track SCM changes in rebaseline commands. There's a fair amount of logic in the rebaseline-related command which is all for the purpose of tracking which files to add and remove to the source control management system. However, since we're now only using git, one possible simpler route is to just call `git add --all`. Pros: - Much simpler, fewer chances for bugs in SCM change tracking logic. Cons: - This would make rebaseline commands stage all new files from the user in the working tree even if they didn't intend to stage these files. One possible way to compensate for this would be to *not* call `git add --all` after all rebaselining, but instead call this seperately when (1) doing a w3c test auto-update or (2) doing a auto-rebaseline on rebaseline-o-matic. This is an alternative to http://crrev.com/2396433004. BUG=639410 Committed: https://crrev.com/ccd977fa5650bf395c59bbbb0afc81f5dbd3531c Cr-Commit-Position: refs/heads/master@{#424082}

Patch Set 1 #

Patch Set 2 : Update baselineoptimizer_unittest.py. #

Patch Set 3 : Rebased #

Total comments: 3

Patch Set 4 : - #

Patch Set 5 : Update message and docstring for has_working_directory_changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -276 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/baselineoptimizer.py View 5 chunks +12 lines, -45 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/baselineoptimizer_unittest.py View 1 8 chunks +9 lines, -72 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py View 1 2 3 4 2 chunks +12 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/scm.py View 1 2 3 3 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/scm_mock.py View 1 2 3 3 chunks +11 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/analyze_baselines.py View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/auto_rebaseline_unittest.py View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/optimize_baselines.py View 4 chunks +3 lines, -13 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/optimize_baselines_unittest.py View 2 chunks +1 line, -41 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py View 1 2 3 4 13 chunks +28 lines, -66 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py View 1 2 3 7 chunks +9 lines, -21 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
qyearsley
Dirk, Walter, can you think of any other disadvantages of trying to remove this logic ...
4 years, 2 months ago (2016-10-04 23:24:00 UTC) #5
Dirk Pranke
The idea sounds good to me; I didn't realize --all had that effect. I haven't ...
4 years, 2 months ago (2016-10-06 18:04:59 UTC) #12
wkorman
lgtm I support landing this and trying it out. I like the idea, nice win ...
4 years, 2 months ago (2016-10-06 21:10:22 UTC) #13
qyearsley
Making sure there are no unstaged files at start of script sounds like a good ...
4 years, 2 months ago (2016-10-06 23:05:57 UTC) #14
qyearsley
Update: This CL now makes it so that: - Before starting rebaselining, we check whether ...
4 years, 2 months ago (2016-10-07 20:33:25 UTC) #18
wkorman
lgtm
4 years, 2 months ago (2016-10-07 21:20:26 UTC) #19
qyearsley
Tried it out, didn't discover any problems, now trying to commit
4 years, 2 months ago (2016-10-08 17:24:27 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2397573002/80001
4 years, 2 months ago (2016-10-08 17:24:43 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-08 17:30:00 UTC) #27
commit-bot: I haz the power
4 years, 2 months ago (2016-10-08 17:32:22 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ccd977fa5650bf395c59bbbb0afc81f5dbd3531c
Cr-Commit-Position: refs/heads/master@{#424082}

Powered by Google App Engine
This is Rietveld 408576698