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

Issue 22293006: Truly ignore failures in skimage. (Closed)

Created:
7 years, 4 months ago by scroggo
Modified:
7 years, 2 months ago
Reviewers:
epoger
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Truly ignore failures in skimage. If the expectation is set to ignore failures, do not return a negative 1 (indicating a failure) when a successful decode does not match the expectation. If the file could not be decoded at all, report this to the user depending on the input expectations file: No expectations: Report failure. The user wanted to know if the file could be decoded. Expectations expected a valid result: Report failure. The decode should have matched the result. Empty expectations: Print a message that the expectation was missing, but still return success from skimage, since this is a newly added file (i.e. it has no expectation yet). Ignore failure: Return success from skimage, since it is a known failure. Update the self tests to ensure these behaviors. R=epoger@google.com Committed: https://code.google.com/p/skia/source/detail?r=11790

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : More tests! #

Total comments: 15

Patch Set 4 : Respond to comments. #

Total comments: 2

Patch Set 5 : Fix a typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -33 lines) Patch
M tools/skimage_main.cpp View 1 2 3 4 9 chunks +55 lines, -23 lines 0 comments Download
A + tools/tests/skimage/input/bad-images/empty-results.json View 1 1 chunk +4 lines, -1 line 0 comments Download
A tools/tests/skimage/input/bad-images/ignore-results.json View 1 1 chunk +16 lines, -0 lines 0 comments Download
A tools/tests/skimage/input/bad-images/incorrect-results.json View 1 1 chunk +16 lines, -0 lines 0 comments Download
A tools/tests/skimage/input/bad-images/invalid.png View 1 2 3 4 Binary file 0 comments Download
A tools/tests/skimage/input/images-with-known-hashes/ignore-failures.json View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
A + tools/tests/skimage/input/images-with-known-hashes/incorrect-results.json View 1 2 3 1 chunk +1 line, -7 lines 0 comments Download
M tools/tests/skimage_self_test.py View 1 2 3 3 chunks +64 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
scroggo
7 years, 4 months ago (2013-08-06 20:32:18 UTC) #1
epoger
LGTM Do we have any self-tests for this code, like we do for gm? That ...
7 years, 4 months ago (2013-08-07 15:03:57 UTC) #2
scroggo
On 2013/08/07 15:03:57, epoger wrote: > LGTM > > Do we have any self-tests for ...
7 years, 2 months ago (2013-10-14 21:44:27 UTC) #3
scroggo
https://codereview.chromium.org/22293006/diff/10001/tools/tests/skimage/input/images-with-known-hashes/ignore-failures.json File tools/tests/skimage/input/images-with-known-hashes/ignore-failures.json (right): https://codereview.chromium.org/22293006/diff/10001/tools/tests/skimage/input/images-with-known-hashes/ignore-failures.json#newcode11 tools/tests/skimage/input/images-with-known-hashes/ignore-failures.json:11: [ "bitmap-64bitMD5", 1209453360120438600 ] Should I add a comment ...
7 years, 2 months ago (2013-10-14 21:44:38 UTC) #4
epoger
Thanks for adding the tests! As a reward, I have new complaints/suggestions to register, since ...
7 years, 2 months ago (2013-10-15 15:31:03 UTC) #5
scroggo
https://codereview.chromium.org/22293006/diff/10001/tools/skimage_main.cpp File tools/skimage_main.cpp (right): https://codereview.chromium.org/22293006/diff/10001/tools/skimage_main.cpp#newcode198 tools/skimage_main.cpp:198: * @param missingArray Array to add missing expectation to ...
7 years, 2 months ago (2013-10-15 19:50:59 UTC) #6
epoger
lgtm https://codereview.chromium.org/22293006/diff/10001/tools/tests/skimage_self_test.py File tools/tests/skimage_self_test.py (right): https://codereview.chromium.org/22293006/diff/10001/tools/tests/skimage_self_test.py#newcode54 tools/tests/skimage_self_test.py:54: print "\"%s\" should have reported failure!" % " ...
7 years, 2 months ago (2013-10-15 20:20:55 UTC) #7
scroggo
https://codereview.chromium.org/22293006/diff/23001/tools/skimage_main.cpp File tools/skimage_main.cpp (right): https://codereview.chromium.org/22293006/diff/23001/tools/skimage_main.cpp#newcode216 tools/skimage_main.cpp:216: * @param ignoreArray Array to add failure message to ...
7 years, 2 months ago (2013-10-15 20:29:10 UTC) #8
scroggo
7 years, 2 months ago (2013-10-15 20:29:55 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 manually as r11790 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698