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

Issue 15789010: rebaseline.py: --tests and --configs are now FILTERS within json results (Closed)

Created:
7 years, 6 months ago by epoger
Modified:
6 years, 10 months ago
Reviewers:
Stephen White
CC:
skia-review_googlegroups.com, robertphillips, bsalomon
Visibility:
Public.

Description

rebaseline.py: --tests and --configs are now FILTERS within json results Before this change, if --tests were specified, all results for those tests would be rebaselined without regard for the json result summary. After this change, --tests and --configs are used to *filter* the list of tests to rebaseline (in case you want to rebaseline aaclip tests, because you know someone else is going to rebaseline the blur tests). In other words... After this change, specifying --tests or --configs will only *reduce* the number of tests to be rebaselined.

Patch Set 1 #

Patch Set 2 : add_unimplemented_add_new_option #

Total comments: 2

Patch Set 3 : implement_add_new_option #

Total comments: 2

Patch Set 4 : add_missing_json_is_fatal #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -900 lines) Patch
tools/rebaseline.py View 1 2 3 6 chunks +96 lines, -84 lines 1 comment Download
A tools/tests/rebaseline/output/add-new-tests/output-expected/command_line View 1 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/rebaseline/output/add-new-tests/output-expected/return_value View 1 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/rebaseline/output/add-new-tests/output-expected/stdout View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
tools/tests/rebaseline/output/all/output-expected/command_line View 1 chunk +1 line, -1 line 0 comments Download
tools/tests/rebaseline/output/all/output-expected/stdout View 1 chunk +45 lines, -742 lines 0 comments Download
tools/tests/rebaseline/output/configs/output-expected/command_line View 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/rebaseline/output/configs/output-expected/return_value View 1 chunk +1 line, -0 lines 0 comments Download
tools/tests/rebaseline/output/configs/output-expected/stdout View 1 chunk +33 lines, -0 lines 0 comments Download
D tools/tests/rebaseline/output/subset/output-expected/command_line View 1 chunk +0 lines, -1 line 0 comments Download
D tools/tests/rebaseline/output/subset/output-expected/return_value View 1 chunk +0 lines, -1 line 0 comments Download
D tools/tests/rebaseline/output/subset/output-expected/stdout View 1 chunk +0 lines, -44 lines 0 comments Download
tools/tests/rebaseline/output/tests/output-expected/command_line View 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/rebaseline/output/tests/output-expected/return_value View 1 chunk +1 line, -0 lines 0 comments Download
tools/tests/rebaseline/output/tests/output-expected/stdout View 1 chunk +27 lines, -0 lines 0 comments Download
tools/tests/rebaseline/output/using-json1/output-expected/command_line View 1 chunk +0 lines, -1 line 0 comments Download
tools/tests/rebaseline/output/using-json1/output-expected/return_value View 1 chunk +0 lines, -1 line 0 comments Download
tools/tests/rebaseline/output/using-json1/output-expected/stdout View 1 chunk +0 lines, -19 lines 0 comments Download
tools/tests/run.sh View 1 3 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
epoger
I had been tracking the development of this CL at https://codereview.chromium.org/16306010 , but that issue ...
7 years, 6 months ago (2013-06-06 19:18:23 UTC) #1
epoger
https://codereview.chromium.org/15789010/diff/3001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/15789010/diff/3001/tools/rebaseline.py#newcode237 tools/rebaseline.py:237: parser.add_argument('--add-new', action='store_true', Patchset 2 adds a new --add-new option, ...
7 years, 6 months ago (2013-06-06 20:02:17 UTC) #2
epoger
Ready for review at patchset 3! https://codereview.chromium.org/15789010/diff/15001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/15789010/diff/15001/tools/rebaseline.py#newcode174 tools/rebaseline.py:174: if self._add_new: Patchset ...
7 years, 6 months ago (2013-06-06 20:19:02 UTC) #3
Stephen White
LGTM
7 years, 6 months ago (2013-06-07 14:30:08 UTC) #4
epoger
Thanks, Stephen. Since most Chapel Hillians are out of the office today, and I will ...
7 years, 6 months ago (2013-06-07 14:34:50 UTC) #5
epoger
https://codereview.chromium.org/15789010/diff/21001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/15789010/diff/21001/tools/rebaseline.py#newcode98 tools/rebaseline.py:98: self._missing_json_is_fatal = False Made one more change in patchset ...
7 years, 6 months ago (2013-06-07 15:15:00 UTC) #6
epoger
7 years, 6 months ago (2013-06-07 15:51:52 UTC) #7
Rats, I just realized that it's too early in the transition process to commit
this change.

The problem is: the actual-results.json file generated by the Android bots does
not contain valid information about whether tests passed or failed.  That's
because the Android bots, unlike the Mac/Windows/Linux ones, don't have access
to the expected images when GM is run.  (We don't want to copy all those image
files down to the Android device; it takes too long.)

See https://code.google.com/p/skia/issues/detail?id=1300 ('buildbots: copy
expected image CHECKSUMS down to Android devices before GenerateGMs step')

The good news is: the actual-results.json file generated on all bots DOES
contain valid bitmap hash values for all the actually-generated images.  So we
CAN rely on those hash values to download actual images from Google Storage (as
noted in Step 1 of https://goto.google.com/ChecksumTransitionDetail )

So here's my plan:

1. I will create new CLs to commit the other parts of this change (adding
--add-new option, renaming --dry_run to --dry-run, etc).

2. As for the "filter" behavior change... we can evaluate that again once we
have completed Step 4 in https://goto.google.com/ChecksumTransitionDetail

Comments welcome.

Powered by Google App Engine
This is Rietveld 408576698