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

Issue 18416005: rebaseline.py: error out early if --expectations-root not pointing at gm-expected dir (Closed)

Created:
7 years, 5 months ago by epoger
Modified:
7 years, 5 months ago
Reviewers:
Stephen White
CC:
skia-review_googlegroups.com, sugoi
Visibility:
Public.

Description

rebaseline.py: error out early if --expectations-root not pointing at gm-expected dir BUG=https://code.google.com/p/skia/issues/detail?id=1403 R=senorblanco@chromium.org Committed: https://code.google.com/p/skia/source/detail?r=9961

Patch Set 1 #

Total comments: 1

Patch Set 2 : add_test_to_exercise_bad_dir_warning #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -81 lines) Patch
M tools/rebaseline.py View 2 chunks +6 lines, -4 lines 0 comments Download
M tools/rebaseline_imagefiles.py View 4 chunks +24 lines, -26 lines 0 comments Download
A tools/tests/rebaseline/input/fake-gm-expected-dir/README View 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/rebaseline/input/fake-gm-expected-dir/base-android-galaxy-nexus/README View 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/rebaseline/input/fake-gm-expected-dir/base-shuttle-win7-intel-float/README View 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/rebaseline/output/exercise-bug1403/output-expected/command_line View 1 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/rebaseline/output/exercise-bug1403/output-expected/return_value View 1 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout View 1 1 chunk +6 lines, -0 lines 4 comments Download
M tools/tests/rebaseline/output/subset/output-expected/command_line View 1 chunk +1 line, -1 line 0 comments Download
M tools/tests/rebaseline/output/subset/output-expected/stdout View 1 chunk +2 lines, -3 lines 0 comments Download
M tools/tests/rebaseline/output/using-json1-add-new/output-expected/command_line View 1 chunk +1 line, -1 line 0 comments Download
M tools/tests/rebaseline/output/using-json1-add-new/output-expected/stdout View 2 chunks +36 lines, -36 lines 0 comments Download
M tools/tests/rebaseline/output/using-json1/output-expected/command_line View 1 chunk +1 line, -1 line 0 comments Download
M tools/tests/rebaseline/output/using-json1/output-expected/stdout View 1 chunk +6 lines, -6 lines 0 comments Download
M tools/tests/run.sh View 1 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
epoger
https://codereview.chromium.org/18416005/diff/1/tools/rebaseline.py File tools/rebaseline.py (left): https://codereview.chromium.org/18416005/diff/1/tools/rebaseline.py#oldcode192 tools/rebaseline.py:192: print ('Skipped these tests due to test/config filters: %s' ...
7 years, 5 months ago (2013-07-10 16:24:03 UTC) #1
epoger
Ready for review at patchset 2. https://codereview.chromium.org/18416005/diff/3001/tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout File tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout (right): https://codereview.chromium.org/18416005/diff/3001/tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout#newcode6 tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout:6: Exception: Could not ...
7 years, 5 months ago (2013-07-10 16:28:39 UTC) #2
Stephen White
LGTM https://codereview.chromium.org/18416005/diff/3001/tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout File tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout (right): https://codereview.chromium.org/18416005/diff/3001/tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout#newcode6 tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout:6: Exception: Could not find "base-android-galaxy-nexus" subdir within expectations_root ...
7 years, 5 months ago (2013-07-10 16:47:36 UTC) #3
epoger
https://codereview.chromium.org/18416005/diff/3001/tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout File tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout (right): https://codereview.chromium.org/18416005/diff/3001/tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout#newcode6 tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout:6: Exception: Could not find "base-android-galaxy-nexus" subdir within expectations_root "tools/tests/rebaseline/input". ...
7 years, 5 months ago (2013-07-10 16:53:33 UTC) #4
epoger
Committed patchset #2 manually as r9961 (presubmit successful).
7 years, 5 months ago (2013-07-10 16:54:14 UTC) #5
epoger
https://codereview.chromium.org/18416005/diff/3001/tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout File tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout (right): https://codereview.chromium.org/18416005/diff/3001/tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout#newcode6 tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout:6: Exception: Could not find "base-android-galaxy-nexus" subdir within expectations_root "tools/tests/rebaseline/input". ...
7 years, 5 months ago (2013-07-10 17:14:27 UTC) #6
epoger
7 years, 5 months ago (2013-07-10 17:24:26 UTC) #7
Message was sent while issue was closed.
On 2013/07/10 17:14:27, epoger wrote:
>
https://codereview.chromium.org/18416005/diff/3001/tools/tests/rebaseline/out...
> File tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout
> (right):
> 
>
https://codereview.chromium.org/18416005/diff/3001/tools/tests/rebaseline/out...
> tools/tests/rebaseline/output/exercise-bug1403/output-expected/stdout:6:
> Exception: Could not find "base-android-galaxy-nexus" subdir within
> expectations_root "tools/tests/rebaseline/input".  Are you sure
> --expectations-root is pointing at a valid gm-expected directory?
> On 2013/07/10 16:53:34, epoger wrote:
> > On 2013/07/10 16:47:36, Stephen White wrote:
> > > On 2013/07/10 16:28:39, epoger wrote:
> > > > Since this test case sets --expecations-root to a directory without the
> > > expected
> > > > platform subdirs, it fails right away with a helpful error message.
> > > 
> > > More a design question, but should we actually be providing tracebacks in
> this
> > > case, or just catching the exception at the top level and printing an
error
> > > message?
> > 
> > Advantages of printing the stack trace:
> > - gives you more info
> > 
> > Disadvantages:
> > - would be confusing to mortals (but woe be to mortals running
rebaseline.py)
> > - more output that changes in the tool self-tests
> > 
> > I think I'll leave it as-is for now, but I wouldn't be opposed to changing
it.
> 
> Disadvantage of printing the stack trace: the stack trace shows up differently
> on the bot, so this CL broke the Housekeeper-PerCommit build.
> 
>
http://108.170.217.252:10117/builders/Housekeeper-PerCommit/builds/752/steps/...
> 
> I'll change it to just print out the error message, not the whole stack trace.
> :-)

Fixed in https://code.google.com/p/skia/source/detail?r=9965

Powered by Google App Engine
This is Rietveld 408576698