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

Issue 16093025: rebaseline.py: if --tests is not specified, get test list from actual-results.json (Closed)

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

Description

rebaseline.py: if --tests is not specified, get test list from actual-results.json R=scroggo@google.com Committed: https://code.google.com/p/skia/source/detail?r=9443

Patch Set 1 #

Total comments: 1

Patch Set 2 : loop_over_subdirs_first #

Total comments: 2

Patch Set 3 : read_test_list_from_json_file #

Total comments: 1

Patch Set 4 : add_test_for_json_case #

Total comments: 3

Patch Set 5 : fix_json_case #

Total comments: 3

Patch Set 6 : cleanup #

Total comments: 9

Messages

Total messages: 12 (0 generated)
epoger
https://codereview.chromium.org/16093025/diff/1/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16093025/diff/1/tools/rebaseline.py#newcode190 tools/rebaseline.py:190: parser.add_argument('--json_base_url', Patchset 1 adds json_base_url argument (not used yet, ...
7 years, 6 months ago (2013-06-04 15:54:50 UTC) #1
epoger
https://codereview.chromium.org/16093025/diff/1002/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16093025/diff/1002/tools/rebaseline.py#newcode173 tools/rebaseline.py:173: for test in self._tests: Patchset 2 loops over subdirs ...
7 years, 6 months ago (2013-06-04 16:01:22 UTC) #2
epoger
https://codereview.chromium.org/16093025/diff/5002/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16093025/diff/5002/tools/rebaseline.py#newcode223 tools/rebaseline.py:223: if self._tests: Patchset 3: If --tests has been specified, ...
7 years, 6 months ago (2013-06-04 18:52:23 UTC) #3
epoger
https://codereview.chromium.org/16093025/diff/11008/tools/tests/rebaseline/using-json/base-android-galaxy-nexus/Test-Android-GalaxyNexus-SGX540-Arm7-Debug/base-android-galaxy-nexus/actual-results.json File tools/tests/rebaseline/using-json/base-android-galaxy-nexus/Test-Android-GalaxyNexus-SGX540-Arm7-Debug/base-android-galaxy-nexus/actual-results.json (right): https://codereview.chromium.org/16093025/diff/11008/tools/tests/rebaseline/using-json/base-android-galaxy-nexus/Test-Android-GalaxyNexus-SGX540-Arm7-Debug/base-android-galaxy-nexus/actual-results.json#newcode2 tools/tests/rebaseline/using-json/base-android-galaxy-nexus/Test-Android-GalaxyNexus-SGX540-Arm7-Debug/base-android-galaxy-nexus/actual-results.json:2: "actual-results" : { The actual-results.json files in patchset 4 ...
7 years, 6 months ago (2013-06-05 02:42:56 UTC) #4
epoger
Ready to review at patchset 5. I've nominated Leon as the official reviewer for this, ...
7 years, 6 months ago (2013-06-05 03:16:20 UTC) #5
epoger
https://codereview.chromium.org/16093025/diff/26001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16093025/diff/26001/tools/rebaseline.py#newcode84 tools/rebaseline.py:84: if configs and not tests: Patchset 6 throws an ...
7 years, 6 months ago (2013-06-05 03:41:00 UTC) #6
epoger
Still awaiting review, just adding one more note for discussion... https://codereview.chromium.org/16093025/diff/26001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16093025/diff/26001/tools/rebaseline.py#newcode76 ...
7 years, 6 months ago (2013-06-05 15:02:31 UTC) #7
scroggo
lgtm https://codereview.chromium.org/16093025/diff/26001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16093025/diff/26001/tools/rebaseline.py#newcode76 tools/rebaseline.py:76: # configs: which configs to run for each ...
7 years, 6 months ago (2013-06-05 15:11:14 UTC) #8
epoger
Committed patchset #6 manually as r9443 (presubmit successful).
7 years, 6 months ago (2013-06-05 15:43:43 UTC) #9
Stephen White
Some post-commit comments. https://codereview.chromium.org/16093025/diff/26001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16093025/diff/26001/tools/rebaseline.py#newcode30 tools/rebaseline.py:30: sys.path.append(GM_DIRECTORY) A comment about why this ...
7 years, 6 months ago (2013-06-05 16:44:20 UTC) #10
epoger
Thanks for the comments, Stephen. Congratulations- you've just volunteered to be the reviewer for my ...
7 years, 6 months ago (2013-06-05 17:46:39 UTC) #11
Stephen White
7 years, 6 months ago (2013-06-05 20:01:45 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/16093025/diff/26001/tools/rebaseline.py
File tools/rebaseline.py (right):

https://codereview.chromium.org/16093025/diff/26001/tools/rebaseline.py#newco...
tools/rebaseline.py:30: sys.path.append(GM_DIRECTORY)
On 2013/06/05 17:46:39, epoger wrote:
> On 2013/06/05 16:44:20, Stephen White wrote:
> > A comment about why this is necessary would be helpful.
> > 
> > Also, if we're assuming (or checking for) the gm directory, should we also
> check
> > that we're in (or near) the gm-expected directory? Do we now assume that
this
> > script will always be run from a whole-enchilada (root) skia checkout?
> 
> I'll add a comment in an upcoming CL.
> 
> This *does* now assume that the "gm" directory has been checked out as a
sibling
> of the "tools" directory (which is the case if "trunk" has been checked out as
a
> unit).

OK, I think that's a fair assumption to make: I don't think there are any useful
workflows that check out "gm" without checking out "tools".

(I mostly use a trunk checkout for day-to-day work, and a whole-enchilada (skia
root) checkout for rebaselining. If updating the whole-enchilada checkout is too
slow (e.g., on Windows), I also sometimes use a gm-expected only checkout, but
in that case I'm running rebaseline.py from my trunk checkout anyway, so gm
should be a sibling of tools regardless.)

All that to say, I'd say leave rebaseline.py where it is.

> It does NOT assume that we have a whole-enchilada checkout.
> 
> If you think it's cleaner, I could move the rebaseline.py tool from "tools" to
> "gm"... in a way that would be cleaner, because it is the GM rebaselining
tool,
> after all... what do you think?  Then we wouldn't need this cross-directory
> import at all.  Or I'm open to other suggestions...

Powered by Google App Engine
This is Rietveld 408576698