Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(105)

Issue 7105056: Add VALIDATE_FAILURE_IS_A_TOOL_FAILURE to specify whether a failure in validation (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by reed1
Modified:
11 years, 8 months ago
Reviewers:
EricB
CC:
skia-review_googlegroups.com, edisonn
Base URL:
http://skia.googlecode.com/svn/
Visibility:
Public.

Description

Add VALIDATE_FAILURE_IS_A_TOOL_FAILURE to specify whether a failure in validation means the tool should return failure or not. For now it is not defined, which means any failed pixels are still reported to stdout, but the tool does not return an error, allowing the bots to go green (until we can fix these failures). Committed: https://code.google.com/p/skia/source/detail?r=7211

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M trunk/tools/render_pictures_main.cpp View 2 chunks +9 lines, -0 lines 10 comments Download

Messages

Total messages: 4
reed1
11 years, 8 months ago (2013-01-15 21:36:27 UTC) #1
EricB
https://codereview.appspot.com/7105056/diff/1/trunk/tools/render_pictures_main.cpp File trunk/tools/render_pictures_main.cpp (right): https://codereview.appspot.com/7105056/diff/1/trunk/tools/render_pictures_main.cpp#newcode26 trunk/tools/render_pictures_main.cpp:26: //#define VALIDATE_FAILURE_IS_A_TOOL_FAILURE I know this is a quick fix, ...
11 years, 8 months ago (2013-01-15 21:42:09 UTC) #2
reed1
https://codereview.appspot.com/7105056/diff/1/trunk/tools/render_pictures_main.cpp File trunk/tools/render_pictures_main.cpp (right): https://codereview.appspot.com/7105056/diff/1/trunk/tools/render_pictures_main.cpp#newcode26 trunk/tools/render_pictures_main.cpp:26: //#define VALIDATE_FAILURE_IS_A_TOOL_FAILURE On 2013/01/15 21:42:09, EricB wrote: > I ...
11 years, 8 months ago (2013-01-15 21:49:46 UTC) #3
EricB
11 years, 8 months ago (2013-01-15 21:52:20 UTC) #4
LGTM

https://codereview.appspot.com/7105056/diff/1/trunk/tools/render_pictures_mai...
File trunk/tools/render_pictures_main.cpp (right):

https://codereview.appspot.com/7105056/diff/1/trunk/tools/render_pictures_mai...
trunk/tools/render_pictures_main.cpp:26: //#define
VALIDATE_FAILURE_IS_A_TOOL_FAILURE
On 2013/01/15 21:49:47, reed1 wrote:
> On 2013/01/15 21:42:09, EricB wrote:
> > I know this is a quick fix, but maybe this could be useful as a command-line
> > flag?
> 
> Hmmm, do we think it will live beyond tomorrow, when Edison can do a cleaner
> fix?

Hopefully not...

https://codereview.appspot.com/7105056/diff/1/trunk/tools/render_pictures_mai...
trunk/tools/render_pictures_main.cpp:216: return false;
On 2013/01/15 21:49:47, reed1 wrote:
> On 2013/01/15 21:42:09, EricB wrote:
> > Should we also switch on VALIDATE_FAILURE_IS_A_TOOL_FAILURE here?
> 
> Possibly, though I really only think of this as a stop-gap, and not a
long-lived
> feature. Also, these are not currently failing (afaik), and perhaps they are
> significant enough that we *should* return failure.

Fair enough.

https://codereview.appspot.com/7105056/diff/1/trunk/tools/render_pictures_mai...
trunk/tools/render_pictures_main.cpp:238: goto DONE;
On 2013/01/15 21:49:47, reed1 wrote:
> On 2013/01/15 21:42:09, EricB wrote:
> > Is there any benefit in leaving the #else block out and therefore printing
out
> > all of the pixel mismatches?
> 
> That would be (possibly very) different behavior, in that we might print out
> 1000s of lines per tile (if they were different). I was trying for a surgical
> strike, minimizing changes.

Makes sense.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b