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

Issue 18348018: rebaseline.py: if expectations dir contains JSON format results, update those instead of image files (Closed)

Created:
7 years, 5 months ago by epoger
Modified:
7 years, 4 months ago
Reviewers:
Stephen White
CC:
skia-review_googlegroups.com, bsalomon, robertphillips, scroggo, jvanverth1
Visibility:
Public.

Description

rebaseline.py: if expectations dir contains JSON format results, update those instead of image files Part of Step 3 in https://goto.google.com/ChecksumTransitionDetail R=senorblanco@chromium.org Committed: https://code.google.com/p/skia/source/detail?r=9910

Patch Set 1 #

Total comments: 1

Patch Set 2 : now_works #

Total comments: 1

Patch Set 3 : ready_for_review #

Total comments: 13

Patch Set 4 : tweaks #

Total comments: 3

Patch Set 5 : sync_to_r9909 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -277 lines) Patch
M gm/gm_expectations.cpp View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M gm/gm_json.py View 1 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download
M tools/rebaseline.py View 1 2 3 4 7 chunks +96 lines, -262 lines 0 comments Download
M tools/tests/rebaseline/output/all/output-expected/command_line View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/tests/rebaseline/output/subset/output-expected/command_line View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/tests/rebaseline/output/using-json1-add-new/output-expected/command_line View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/tests/rebaseline/output/using-json1-expectations/output-expected/command_line View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/tests/rebaseline/output/using-json1-expectations/output-expected/gm-expectations/base-android-galaxy-nexus/expected-results.json View 1 2 3 4 Binary file 0 comments Download
M tools/tests/rebaseline/output/using-json1-expectations/output-expected/gm-expectations/base-shuttle-win7-intel-float/expected-results.json View 1 2 3 4 Binary file 0 comments Download
M tools/tests/rebaseline/output/using-json1-expectations/output-expected/return_value View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/tests/rebaseline/output/using-json1-expectations/output-expected/stdout View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M tools/tests/rebaseline/output/using-json1/output-expected/command_line View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/tests/run.sh View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
epoger
https://codereview.chromium.org/18348018/diff/1/tools/tests/rebaseline/output/using-json1-expectations/output-expected/gm-expectations/base-android-galaxy-nexus/expected-results.json File tools/tests/rebaseline/output/using-json1-expectations/output-expected/gm-expectations/base-android-galaxy-nexus/expected-results.json (right): https://codereview.chromium.org/18348018/diff/1/tools/tests/rebaseline/output/using-json1-expectations/output-expected/gm-expectations/base-android-galaxy-nexus/expected-results.json#newcode4 tools/tests/rebaseline/output/using-json1-expectations/output-expected/gm-expectations/base-android-galaxy-nexus/expected-results.json:4: "allowed-digests": null, In patchset 1, the code doesn't know ...
7 years, 5 months ago (2013-07-03 19:06:59 UTC) #1
epoger
As of patchset 2, it successfully updates entries within the expected-results.json file! I will add ...
7 years, 5 months ago (2013-07-03 20:07:52 UTC) #2
epoger
Ready for review at patchset 3! Stephen, let me know if you'd like to delegate ...
7 years, 5 months ago (2013-07-03 20:18:12 UTC) #3
Stephen White
The meat of the changes looks good. My comments are mostly just naming nits. https://codereview.chromium.org/18348018/diff/10001/tools/rebaseline.py ...
7 years, 5 months ago (2013-07-03 20:46:18 UTC) #4
epoger
Thanks, Stephen! Please take a look... https://codereview.chromium.org/18348018/diff/10001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/18348018/diff/10001/tools/rebaseline.py#newcode161 tools/rebaseline.py:161: sections = [gm_json.JSONKEY_ACTUALRESULTS_FAILED] ...
7 years, 5 months ago (2013-07-08 14:40:54 UTC) #5
Stephen White
LGTM, although consider the suggestion for "failure-ignored" docs. https://codereview.chromium.org/18348018/diff/10001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/18348018/diff/10001/tools/rebaseline.py#newcode161 tools/rebaseline.py:161: sections ...
7 years, 5 months ago (2013-07-08 17:15:19 UTC) #6
epoger
Committed patchset #5 manually as r9910 (presubmit successful).
7 years, 5 months ago (2013-07-08 17:52:03 UTC) #7
epoger
7 years, 5 months ago (2013-07-08 17:52:29 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/18348018/diff/18001/gm/gm_json.py
File gm/gm_json.py (right):

https://codereview.chromium.org/18348018/diff/18001/gm/gm_json.py#newcode45
gm/gm_json.py:45: # in the FAILED section or the FAILUREIGNORED section?
On 2013/07/08 17:15:20, Stephen White wrote:
> Just to be braindead-clear, perhaps this should say 'If marked as
> "ignore-failure", a test failure will be reported under the FAILUREINGORED
> section instead of the FAILED section." (If this will will also cause the bot
> not to go red, perhaps that should be documented here too?)

Good idea. Done.

Powered by Google App Engine
This is Rietveld 408576698