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

Issue 9476021: Updating Layout test analyzer to add control to show issue detail or not. (Closed)

Created:
8 years, 10 months ago by imasaki1
Modified:
8 years, 9 months ago
Reviewers:
dennis_jeffrey
CC:
chromium-reviews, feature-media-reviews_chromium.org, pam+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Updating Layout test analyzer. It includes: * intoducing -z commandline option to show/not-show issue details * fix the issues discovered by gpylint * adding bug link and flakiness dashboard link to test expection file display BUG=109008, 107773 TEST= unit test passes and run script locally. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=124746

Patch Set 1 #

Total comments: 26

Patch Set 2 : Modication based on CR comments and some minor doc change. #

Patch Set 3 : One minor change. #

Total comments: 4

Patch Set 4 : Modification based on CR comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -182 lines) Patch
M media/tools/layout_tests/bug.py View 1 2 chunks +11 lines, -8 lines 0 comments Download
M media/tools/layout_tests/layouttest_analyzer.py View 1 11 chunks +29 lines, -18 lines 0 comments Download
M media/tools/layout_tests/layouttest_analyzer_helpers.py View 1 2 3 11 chunks +145 lines, -114 lines 0 comments Download
M media/tools/layout_tests/layouttest_analyzer_helpers_unittest.py View 1 3 chunks +9 lines, -7 lines 0 comments Download
M media/tools/layout_tests/layouttest_analyzer_runner.py View 1 3 chunks +9 lines, -1 line 0 comments Download
M media/tools/layout_tests/layouttests.py View 1 9 chunks +18 lines, -12 lines 0 comments Download
M media/tools/layout_tests/layouttests_unittest.py View 1 2 chunks +2 lines, -3 lines 0 comments Download
M media/tools/layout_tests/test_expectations.py View 1 1 chunk +1 line, -1 line 0 comments Download
M media/tools/layout_tests/test_expectations_history.py View 1 2 chunks +5 lines, -5 lines 0 comments Download
M media/tools/layout_tests/test_expectations_history_unittest.py View 1 1 chunk +2 lines, -2 lines 0 comments Download
M media/tools/layout_tests/test_expectations_unittest.py View 1 4 chunks +4 lines, -4 lines 0 comments Download
M media/tools/layout_tests/testname/media.csv View 1 chunk +1 line, -0 lines 0 comments Download
M media/tools/layout_tests/trend_graph.py View 1 2 chunks +2 lines, -3 lines 0 comments Download
M media/tools/layout_tests/trend_graph_unittest.py View 1 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
imasaki1
Thanks in advance.
8 years, 10 months ago (2012-02-27 23:48:36 UTC) #1
dennis_jeffrey
https://chromiumcodereview.appspot.com/9476021/diff/1/media/tools/layout_tests/layouttest_analyzer.py File media/tools/layout_tests/layouttest_analyzer.py (right): https://chromiumcodereview.appspot.com/9476021/diff/1/media/tools/layout_tests/layouttest_analyzer.py#newcode416 media/tools/layout_tests/layouttest_analyzer.py:416: file_object.write(( nit: I think the second ( in this ...
8 years, 9 months ago (2012-02-29 17:50:32 UTC) #2
imasaki1
Thank you. https://chromiumcodereview.appspot.com/9476021/diff/1/media/tools/layout_tests/layouttest_analyzer.py File media/tools/layout_tests/layouttest_analyzer.py (right): https://chromiumcodereview.appspot.com/9476021/diff/1/media/tools/layout_tests/layouttest_analyzer.py#newcode416 media/tools/layout_tests/layouttest_analyzer.py:416: file_object.write(( On 2012/02/29 17:50:32, dennis_jeffrey wrote: > ...
8 years, 9 months ago (2012-03-02 19:12:07 UTC) #3
dennis_jeffrey
LGTM Just two minor comments to consider before you submit. Thanks! https://chromiumcodereview.appspot.com/9476021/diff/1/media/tools/layout_tests/layouttest_analyzer.py File media/tools/layout_tests/layouttest_analyzer.py (right): ...
8 years, 9 months ago (2012-03-02 20:55:15 UTC) #4
imasaki1
8 years, 9 months ago (2012-03-02 21:50:50 UTC) #5
Thanks. I am going to commit.

https://chromiumcodereview.appspot.com/9476021/diff/1/media/tools/layout_test...
File media/tools/layout_tests/layouttest_analyzer.py (right):

https://chromiumcodereview.appspot.com/9476021/diff/1/media/tools/layout_test...
media/tools/layout_tests/layouttest_analyzer.py:416: file_object.write((
On 2012/03/02 20:55:15, dennis_jeffrey wrote:
> On 2012/03/02 19:12:07, imasaki1 wrote:
> > On 2012/02/29 17:50:32, dennis_jeffrey wrote:
> > > nit: I think the second ( in this line might be unnecessary, and the same
> with
> > > the first ) in line 422 down below.
> > 
> > I got gpylint error like the one below when I remove the brackets.
> > "W0106:416:UpdateDashboard: Expression "(file_object.write('<tr><td><a
> > href="%s">%s</a></td><td><a href="%s">dashboard</a></td><td>%s</td></tr>'))
%
> > (((layouttest_root_path) + (testname), testname,
> >
>
('http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=%s')
> > % (testname), data_map[tg][0][testname]))" is assigned to nothing"
> 
> Ok, I must have read the line incorrectly the first time.

Done.

https://chromiumcodereview.appspot.com/9476021/diff/13003/media/tools/layout_...
File media/tools/layout_tests/layouttest_analyzer_helpers.py (right):

https://chromiumcodereview.appspot.com/9476021/diff/13003/media/tools/layout_...
media/tools/layout_tests/layouttest_analyzer_helpers.py:347: true. Otherwise,
always send email after each run.
On 2012/03/02 20:55:15, dennis_jeffrey wrote:
> nit: 'true' --> 'True'

Done.

https://chromiumcodereview.appspot.com/9476021/diff/13003/media/tools/layout_...
media/tools/layout_tests/layouttest_analyzer_helpers.py:410: rev_str += "<ul><a
href='%s'>%s->%s</a>\n" % (link, old_rev, new_rev)
On 2012/03/02 20:55:15, dennis_jeffrey wrote:
> I think this line was fine before you swapped the quotes here: we'd like the
> python string to be defined with single quotes, and then the html string
inside
> of it can use double quotes:
> 
> rev_str += '<ul><a href="%s">%s->%s</a>\n' % (link, old_rev, new_rev)

Done.

Powered by Google App Engine
This is Rietveld 408576698