Bug 62194 - new-run-webkit-tests: 'images' links on results.html don't work
Summary: new-run-webkit-tests: 'images' links on results.html don't work
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: ToolsHitList
Depends on:
Blocks: 34984
  Show dependency treegraph
 
Reported: 2011-06-06 23:52 PDT by Ryosuke Niwa
Modified: 2011-06-10 23:04 PDT (History)
5 users (show)

See Also:


Attachments
fixes the bug (2.26 KB, patch)
2011-06-10 15:39 PDT, Ryosuke Niwa
ojan: review-
Details | Formatted Diff | Diff
Added _output_testname (1.84 KB, patch)
2011-06-10 16:20 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2011-06-06 23:52:28 PDT
Reproduction steps:
1. Open http://build.webkit.org/results/Chromium%20Mac%20Release%20(Tests)/r88219%20(7942)/results.html
2. Click any 'images'

Expected result:
Actual and expected images are shown.

Actual result:
No images are shown.

The problem is that nrwt's diffs.html contain absolute path to local files instead of relatives paths:
See http://build.webkit.org/results/Chromium%20Mac%20Release%20(Tests)/r88219%20(7942)/css2.1/t1508-c527-font-05-b-diffs.html for example.
Comment 2 Ojan Vafai 2011-06-08 16:39:34 PDT
We should use the same trick we use on the results.html page (http://trac.webkit.org/browser/trunk/LayoutTests/fast/harness/results.html#L366). If it's a file URL, we load the full path, if it's not, load the relative path.
Comment 3 Ryosuke Niwa 2011-06-10 15:39:34 PDT
Created attachment 96808 [details]
fixes the bug

I don't know if I should be adding a test or where I should be adding a test since test_result_writer.py doesn't seem to have any tests.
Comment 4 WebKit Review Bot 2011-06-10 15:42:42 PDT
Attachment 96808 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/Scripts/webkitpy..." exit_code: 1

Tools/Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py:247:  whitespace after '{'  [pep8/E201] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Ojan Vafai 2011-06-10 15:51:26 PDT
Comment on attachment 96808 [details]
fixes the bug

View in context: https://bugs.webkit.org/attachment.cgi?id=96808&action=review

> Tools/Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py:119
> +    def output_filename(self, modifier, local=False):

I'd rather you just create an output_testname method. I think that results in better self-documenting code.
Comment 6 Dirk Pranke 2011-06-10 16:01:20 PDT
(In reply to comment #3)
> Created an attachment (id=96808) [details]
> fixes the bug
> 
> I don't know if I should be adding a test or where I should be adding a test since test_result_writer.py doesn't seem to have any tests.

Hm. That's a bit odd. Feel free to start writing some in a test_result_writer_unittest.py class, but I probably wouldn't R- you for this.

(In reply to comment #5)
> (From update of attachment 96808 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=96808&action=review
> 
> > Tools/Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py:119
> > +    def output_filename(self, modifier, local=False):
> 
> I'd rather you just create an output_testname method. I think that results in better self-documenting code.

Agreed.
Comment 7 Ryosuke Niwa 2011-06-10 16:03:59 PDT
(In reply to comment #6)
> (In reply to comment #3)
> > Created an attachment (id=96808) [details] [details]
> > fixes the bug
> > 
> > I don't know if I should be adding a test or where I should be adding a test since test_result_writer.py doesn't seem to have any tests.
> 
> Hm. That's a bit odd. Feel free to start writing some in a test_result_writer_unittest.py class, but I probably wouldn't R- you for this.

Okay.  I actually don't know how I can test that local path isn't included in the generated html.
Comment 8 Ryosuke Niwa 2011-06-10 16:20:59 PDT
Created attachment 96821 [details]
Added _output_testname

The previous test also had a bug :(
Comment 9 Ryosuke Niwa 2011-06-10 22:08:53 PDT
Comment on attachment 96821 [details]
Added _output_testname

Oops, forgot r?
Comment 10 WebKit Review Bot 2011-06-10 22:11:45 PDT
Attachment 96821 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/Scripts/webkitpy..." exit_code: 1

Tools/Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py:248:  whitespace after '{'  [pep8/E201] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 Ryosuke Niwa 2011-06-10 23:04:32 PDT
Comment on attachment 96821 [details]
Added _output_testname

Clearing flags on attachment: 96821

Committed r88598: <http://trac.webkit.org/changeset/88598>
Comment 12 Ryosuke Niwa 2011-06-10 23:04:37 PDT
All reviewed patches have been landed.  Closing bug.