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

Issue 2547153002: In webkit-patch rebaseline-cl, abort if results are missing. (Closed)

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

Description

In webkit-patch rebaseline-cl, abort if results are missing. Reason: In general, if layout test results for some builder cannot be found in GS, and they are not downloaded, then when baselines are deduped, some old (incorrect) baselines may be left behind for those platforms that we couldn't get results for. As-is, rebaseline-cl sort of depends on having results for all support platforms whenever rebaselining in order to get correct results. Main changes in this CL: 1. Results are always fetched, even if tests are directly passed. This way the behavior is consistent regardless of whether the list of tests to rebaseline is explicitly specified or decided based on results. 2. Fetching of the results is done in a method called _fetch_results(), which may raise an exception if any results are missing; this exception is caught in execute(), and an error message is printed. 3. _builds_to_tests is removed, and part of _tests_to_rebaseline is moved to _fetch_results(). buildbot.fetch_results is used instead of buildbot.fetch_layout_test_results. Later, we might consider adding a flag to force continuing with rebaselining even if some results are not available, but I'm not sure if this is necessary. BUG=669653 Committed: https://crrev.com/ff4522901de3100f338fc1f606e301ede5e96c3d Cr-Commit-Position: refs/heads/master@{#436982}

Patch Set 1 #

Patch Set 2 : Add unit test #

Total comments: 14

Patch Set 3 : Rename exception, add raises section to docstring #

Patch Set 4 : Remove exception; use return value of None to indicate missing results. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -30 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py View 1 2 3 6 chunks +51 lines, -28 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py View 1 2 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
qyearsley
4 years ago (2016-12-03 00:21:39 UTC) #4
wkorman
lgtm https://codereview.chromium.org/2547153002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py (right): https://codereview.chromium.org/2547153002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py#newcode69 third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py:69: _log.debug('Getting results for Rietveld issue %d.', issue_number) Q ...
4 years ago (2016-12-05 05:58:35 UTC) #5
qyearsley
https://codereview.chromium.org/2547153002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py (right): https://codereview.chromium.org/2547153002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py#newcode69 third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py:69: _log.debug('Getting results for Rietveld issue %d.', issue_number) On 2016/12/05 ...
4 years ago (2016-12-05 17:55:21 UTC) #6
wkorman
https://codereview.chromium.org/2547153002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py (right): https://codereview.chromium.org/2547153002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py#newcode69 third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py:69: _log.debug('Getting results for Rietveld issue %d.', issue_number) On 2016/12/05 ...
4 years ago (2016-12-05 18:56:25 UTC) #7
qyearsley
https://codereview.chromium.org/2547153002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py (right): https://codereview.chromium.org/2547153002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py#newcode69 third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py:69: _log.debug('Getting results for Rietveld issue %d.', issue_number) On 2016/12/05 ...
4 years ago (2016-12-07 00:42:27 UTC) #8
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/2547153002/60001
4 years ago (2016-12-07 16:39:33 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-07 16:45:59 UTC) #17
commit-bot: I haz the power
4 years ago (2016-12-07 16:50:23 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ff4522901de3100f338fc1f606e301ede5e96c3d
Cr-Commit-Position: refs/heads/master@{#436982}

Powered by Google App Engine
This is Rietveld 408576698