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

Issue 2765863003: Refactoring: Replace test_prefix_list variables with TestBaselineSet objects. (Closed)

Created:
3 years, 9 months ago by qyearsley
Modified:
3 years, 9 months ago
Reviewers:
wkorman
CC:
blink-reviews, chromium-reviews, jeffcarp, Xianzhu
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring: Replace test_prefix_list variables with TestBaselineSet objects. Purpose: I think that this improves the readability of the code, since it replaces dicts with a specific format that are being passed around with instances of a class, and that class has documentation and tests. Also, this should make it easier to fix http://crbug.com/673966; I'm thinking that TestBaselineSet could be expanded to specify port names separately from build names, so that rebaseline_cl could specify for example that it wants to get baselines for some test from some Build, but that the baseline location should correspond to another port's baseline location. This is a refactoring CL, so behavior should not change. In this CL: - Adds a class called TestBaselineSet (I'm open to name suggestions...) which represents some combinations of tests and platforms to rebaseline. - Adds a test for that class. - Updates other tests. - Removes _log_test_prefix_list; this is replaced with __str__ on the new class. - Refactors iteration through the collection of tests/builds to rebaseline. - Removes redundant method test_execute_with_issue_number_from_branch in rebaseline_cl_unittest. BUG=702819 Review-Url: https://codereview.chromium.org/2765863003 Cr-Commit-Position: refs/heads/master@{#458592} Committed: https://chromium.googlesource.com/chromium/src/+/09067d4bab0caeb8e1409148c9d6beabf762fd39

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix typo, return set from _builders_to_fetch_from #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -244 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/auto_rebaseline.py View 5 chunks +8 lines, -16 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py View 1 12 chunks +132 lines, -126 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py View 5 chunks +12 lines, -24 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py View 5 chunks +6 lines, -15 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py View 1 17 chunks +103 lines, -63 lines 0 comments Download

Messages

Total messages: 18 (13 generated)
qyearsley
Hi Walter, if you have time could you take a look at this? This was ...
3 years, 9 months ago (2017-03-21 18:20:54 UTC) #3
wkorman
lgtm Sweet, name seems good to me, only a couple minor comments. https://codereview.chromium.org/2765863003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py ...
3 years, 9 months ago (2017-03-21 19:02:14 UTC) #6
qyearsley
https://codereview.chromium.org/2765863003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py (right): https://codereview.chromium.org/2765863003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py#newcode382 third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py:382: A list of builders that we may fetch from. ...
3 years, 9 months ago (2017-03-21 21:47:22 UTC) #9
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/2765863003/20001
3 years, 9 months ago (2017-03-21 22:24:14 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 22:54:35 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/09067d4bab0caeb8e1409148c9d6...

Powered by Google App Engine
This is Rietveld 408576698