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

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

Created:
7 years, 6 months ago by epoger
Modified:
7 years, 6 months ago
Reviewers:
Stephen White
CC:
skia-review_googlegroups.com
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 #

Total comments: 1

Patch Set 2 : rename_command_line_options #

Total comments: 1

Patch Set 3 : delete_non_json_driven_path #

Total comments: 3

Patch Set 4 : add_blank_lines #

Total comments: 1

Patch Set 5 : add_filter_tests_but_no_filtering_yet #

Total comments: 1

Patch Set 6 : add_filtering #

Patch Set 7 : add_filtering #

Patch Set 8 : add_filtering #

Patch Set 9 : add_filtering #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -891 lines) Patch
tools/rebaseline.py View 1 2 3 4 5 6 chunks +57 lines, -75 lines 4 comments Download
tools/tests/rebaseline/output/all/output-expected/command_line View 1 2 1 chunk +1 line, -1 line 0 comments Download
tools/tests/rebaseline/output/all/output-expected/stdout View 1 2 3 1 chunk +45 lines, -742 lines 0 comments Download
tools/tests/rebaseline/output/configs/output-expected/command_line View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
tools/tests/rebaseline/output/configs/output-expected/return_value View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
tools/tests/rebaseline/output/configs/output-expected/stdout View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
tools/tests/rebaseline/output/subset/output-expected/command_line View 1 2 1 chunk +0 lines, -1 line 0 comments Download
tools/tests/rebaseline/output/subset/output-expected/return_value View 1 2 1 chunk +0 lines, -1 line 0 comments Download
tools/tests/rebaseline/output/subset/output-expected/stdout View 1 2 1 chunk +0 lines, -44 lines 0 comments Download
tools/tests/rebaseline/output/tests/output-expected/command_line View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
tools/tests/rebaseline/output/tests/output-expected/return_value View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
tools/tests/rebaseline/output/tests/output-expected/stdout View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
tools/tests/rebaseline/output/using-json1/output-expected/command_line View 1 2 1 chunk +0 lines, -1 line 0 comments Download
tools/tests/rebaseline/output/using-json1/output-expected/return_value View 1 2 1 chunk +0 lines, -1 line 0 comments Download
tools/tests/rebaseline/output/using-json1/output-expected/stdout View 1 2 1 chunk +0 lines, -19 lines 0 comments Download
tools/tests/run.sh View 1 2 3 4 3 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
epoger
https://codereview.chromium.org/16306010/diff/1/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16306010/diff/1/tools/rebaseline.py#newcode181 tools/rebaseline.py:181: self._DownloadFile(source_url=url, dest_filename=outfilename) Patchset 1 makes the script fail early ...
7 years, 6 months ago (2013-06-06 17:53:29 UTC) #1
epoger
https://codereview.chromium.org/16306010/diff/2001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16306010/diff/2001/tools/rebaseline.py#newcode251 tools/rebaseline.py:251: parser.add_argument('--dry-run', action='store_true', Patchset 2 renames the command-line arguments: use ...
7 years, 6 months ago (2013-06-06 17:54:30 UTC) #2
epoger
https://codereview.chromium.org/16306010/diff/11001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16306010/diff/11001/tools/rebaseline.py#newcode205 tools/rebaseline.py:205: json_url = '/'.join([self._json_base_url, Patchset 3 deletes the code path ...
7 years, 6 months ago (2013-06-06 18:29:52 UTC) #3
epoger
https://codereview.chromium.org/16306010/diff/3006/tools/tests/rebaseline/output/all/output-expected/stdout File tools/tests/rebaseline/output/all/output-expected/stdout (right): https://codereview.chromium.org/16306010/diff/3006/tools/tests/rebaseline/output/all/output-expected/stdout#newcode2 tools/tests/rebaseline/output/all/output-expected/stdout:2: # Patchset 4 just adds some blank lines to ...
7 years, 6 months ago (2013-06-06 18:38:26 UTC) #4
epoger
https://codereview.chromium.org/16306010/diff/26001/tools/tests/run.sh File tools/tests/run.sh (right): https://codereview.chromium.org/16306010/diff/26001/tools/tests/run.sh#newcode201 tools/tests/run.sh:201: rebaseline_test "$BASELINE_OPTIONS --configs 8888 pdf" "$REBASELINE_OUTPUT/configs" Patchset 5 adds ...
7 years, 6 months ago (2013-06-06 18:46:26 UTC) #5
epoger
This codereview issue somehow got in a bad state... moved my code over to https://codereview.chromium.org/15789010/
7 years, 6 months ago (2013-06-06 19:22:09 UTC) #6
Stephen White
https://codereview.chromium.org/16306010/diff/20002/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16306010/diff/20002/tools/rebaseline.py#newcode29 tools/rebaseline.py:29: # Make sure that the 'gm' dir is in ...
7 years, 6 months ago (2013-06-06 20:41:52 UTC) #7
epoger
7 years, 6 months ago (2013-06-07 14:15:21 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/16306010/diff/20002/tools/rebaseline.py
File tools/rebaseline.py (right):

https://codereview.chromium.org/16306010/diff/20002/tools/rebaseline.py#newco...
tools/rebaseline.py:29: # Make sure that the 'gm' dir is in the PYTHONPATH, but
add ir at the *end*
On 2013/06/06 20:41:52, Stephen White wrote:
> Nit: ir -> it?

Stephen- this is already fixed in the new home for this codereview,
https://codereview.chromium.org/15789010/ .  See my note from 
https://codereview.chromium.org/16306010/#msg6 :

"This codereview issue somehow got in a bad state... moved my code over to
https://codereview.chromium.org/15789010/ "

So, please take a look at the other codereview instead.

https://codereview.chromium.org/16306010/diff/20002/tools/rebaseline.py#newco...
tools/rebaseline.py:214: json_url = '/'.join([self._json_base_url,
On 2013/06/06 20:41:52, Stephen White wrote:
> Is there a way to force an override of the json file, and just grab what was
> explicitly requested directly, as it used to work? Otherwise if the json
> generator failed for some reason, you won't be able to rebaseline until the
> upstream script runs (I know, I'm being pessimistic).

Pessimism is underrated.

I am a bit anxious about relying fully on the json, too.  But I think that's
what we have to do, because before long we will NEED the json file to tell us
the hash digest of the actual image result that we should download.  See step 2
in https://goto.google.com/ChecksumTransitionDetail .

The good news is, the advantages of the checksum-based system will outweigh the
generalized pessimistic fears that you and I share.

In fact, as of Step 6, the rebaseline script will ONLY copy checksums around, it
won't have to download images at all (except for viewing pixel diffs as needed
to approve the rebaseline).

Let me know if you think this is problematic... if so, maybe we can come up with
a backup system.  But it would be tricky.

Powered by Google App Engine
This is Rietveld 408576698