<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>64135</bug_id>
          
          <creation_ts>2011-07-07 17:12:11 -0700</creation_ts>
          <short_desc>Some tests rely on a /tmp/LayoutTests symlink pointing to the LayoutTests directory</short_desc>
          <delta_ts>2011-09-07 11:53:10 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>67239</dependson>
          <blocked>65781</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Gustavo Noronha (kov)">gustavo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abecsi</cc>
    
    <cc>dpranke</cc>
    
    <cc>jarred</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>433798</commentid>
    <comment_count>0</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2011-07-07 17:12:11 -0700</bug_when>
    <thetext>Old run-webkit-tests used to create a symlink to the LayoutTests directory in /tmp. A few tests rely on that symlink existing, such as these:

fast/dom/frame-loading-via-document-write.html
fast/loader/local-CSS-from-local.html
fast/loader/local-JavaScript-from-local.html
fast/loader/local-image-from-local.html

Here&apos;s where it creates the symlink:

http://trac.webkit.org/browser/trunk/Tools/Scripts/old-run-webkit-tests#L501

If nobody beats me to it, I&apos;ll write a patch as soon as my tree is free from a bisect I just started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>434022</commentid>
    <comment_count>1</comment_count>
      <attachid>100112</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2011-07-08 06:02:19 -0700</bug_when>
    <thetext>Created attachment 100112
create and remove the symlink like old-run-webkit-tests used to</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>435201</commentid>
    <comment_count>2</comment_count>
      <attachid>100112</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-07-11 14:11:44 -0700</bug_when>
    <thetext>Comment on attachment 100112
create and remove the symlink like old-run-webkit-tests used to

Please just fix the tests.  This patch is wrong on several levels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>435208</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-07-11 14:31:13 -0700</bug_when>
    <thetext>Ugh. I wonder why we haven&apos;t seen the mac NRWT port failling this test more often.

Adam already R-&apos;ed this, but at any rate, this is the wrong way to work around this. The top-level run_webkit_tests.py script is just a wrapper around controllers/manager.py which does all the real work. 

Assuming we did want NRWT to hack this, we should create the link (if it doesn&apos;t already exist) in manager.py:824 set_up_run(), and remove the link (if and only if we created it) in clean_up_run() in 951.

However, we really shouldn&apos;t have to be doing this at all, and NRWT shouldn&apos;t need to be aware of this. Chromium, for example, is smart enough to dynamically remap this in pathToLocalResource(), and the other ports probably should be as well.

Can you file a separate bug to get the DRT&apos;s fixed if we can&apos;t just fix the tests?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>435274</commentid>
    <comment_count>4</comment_count>
      <attachid>100112</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-07-11 16:13:50 -0700</bug_when>
    <thetext>Comment on attachment 100112
create and remove the symlink like old-run-webkit-tests used to

Yeah, definitely the wrong layer.  What tests depend on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>435601</commentid>
    <comment_count>5</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2011-07-12 05:59:23 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 100112 [details])
&gt; Yeah, definitely the wrong layer.  What tests depend on this?

There&apos;s a (probably not exhaustive) list at the first comment. Here they are:

fast/dom/frame-loading-via-document-write.html
fast/loader/local-CSS-from-local.html
fast/loader/local-JavaScript-from-local.html
fast/loader/local-image-from-local.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>459142</commentid>
    <comment_count>6</comment_count>
    <who name="Jarred Nicholls">jarred</who>
    <bug_when>2011-08-30 13:32:11 -0700</bug_when>
    <thetext>Gonna fix this, it&apos;s bothering me as well.  And no, this should not be fixed in the NRWT (especially not outside of the manager).  I think the tests can be fixed instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>459234</commentid>
    <comment_count>7</comment_count>
    <who name="Jarred Nicholls">jarred</who>
    <bug_when>2011-08-30 14:53:42 -0700</bug_when>
    <thetext>Ok, so I don&apos;t want to lower the integrity of the fast/loader tests by making the urls relative (as opposed to fully qualified file:// scheme), which was my original intent.  Similarly, those tests in http/tests/security which test loading local resources from a remote document still need the pathToLocalResource normalization.

I&apos;ll open a ticket to fix the DRTs pathToLocalResource() so it normalizes file:///tmp/LayoutTests like Chromium&apos;s.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>461170</commentid>
    <comment_count>8</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2011-09-02 05:16:34 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 100112 [details])
&gt; Yeah, definitely the wrong layer.  What tests depend on this?

I&apos;m not sure whether all these tests still exist, but in BUG 33153 I found a bunch of these which also cause problems when running multiple instances of run-webkit-tests with differing repositories.

LayoutTests/fast/dom/frame-loading-via-document-write.html
LayoutTests/fast/loader/local-CSS-from-local.html
LayoutTests/fast/loader/local-JavaScript-from-local.html
LayoutTests/fast/loader/local-iFrame-source-from-local.html
LayoutTests/fast/loader/local-image-from-local.html
LayoutTests/fast/loader/user-style-sheet-resource-load-callbacks.html
LayoutTests/http/tests/misc/image-blocked-src-change.html
LayoutTests/http/tests/misc/image-blocked-src-no-change.html
LayoutTests/http/tests/security/frame-loading-via-document-write.html
LayoutTests/http/tests/security/local-CSS-from-remote.html
LayoutTests/http/tests/security/local-JavaScript-from-remote.html
LayoutTests/http/tests/security/local-iFrame-from-remote.html
LayoutTests/http/tests/security/local-image-from-remote.html
LayoutTests/http/tests/security/local-user-CSS-from-remote.html
LayoutTests/http/tests/security/local-video-poster-from-remote.html
LayoutTests/http/tests/security/local-video-source-from-remote.html
LayoutTests/http/tests/security/local-video-src-from-remote.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>461195</commentid>
    <comment_count>9</comment_count>
    <who name="Jarred Nicholls">jarred</who>
    <bug_when>2011-09-02 06:36:34 -0700</bug_when>
    <thetext>Output of a &quot;grep -r &quot;pathToLocalResource(&quot; * | awk &apos;{ print $1 }&apos;&quot; on LayoutTests:

fast/dom/frame-loading-via-document-write.html:
fast/loader/local-image-from-local-expected.txt:Currently
fast/loader/local-JavaScript-from-local-expected.txt:Currently
fast/loader/local-iFrame-source-from-local.html:
fast/loader/local-iFrame-source-from-local.html:
fast/loader/local-image-from-local.html:
fast/loader/local-image-from-local.html:
fast/loader/local-iFrame-source-from-local-expected.txt:Currently
fast/loader/local-CSS-from-local.html:
fast/loader/local-CSS-from-local.html:
fast/loader/local-CSS-from-local-expected.txt:Currently
fast/loader/local-JavaScript-from-local.html:
fast/loader/local-JavaScript-from-local.html:
http/tests/security/local-CSS-from-remote.html:
http/tests/security/local-CSS-from-remote.html:
http/tests/security/local-video-poster-from-remote.html:
http/tests/security/local-JavaScript-from-remote-expected.txt:Currently
http/tests/security/local-JavaScript-from-remote.html:
http/tests/security/local-JavaScript-from-remote.html:
http/tests/security/local-CSS-from-remote-expected.txt:Currently
http/tests/security/local-image-from-remote-expected.txt:Currently
http/tests/security/local-iFrame-from-remote.html:
http/tests/security/local-iFrame-from-remote.html:
http/tests/security/local-video-source-from-remote.html:
http/tests/security/local-image-from-remote.html:
http/tests/security/local-image-from-remote.html:
http/tests/security/frame-loading-via-document-write.html:
http/tests/security/local-image-from-remote-whitelisted.html:var
http/tests/security/local-iFrame-from-remote-expected.txt:Currently
http/tests/security/local-video-src-from-remote.html:
http/tests/plugins/post-url-file.html:


Output of a &quot;grep -r &quot;/tmp/LayoutTests/&quot; * | awk &apos;{ print $1 }&apos;&quot; on LayoutTests:

fast/dom/frame-loading-via-document-write.html:
fast/loader/local-iFrame-source-from-local.html:
fast/loader/user-style-sheet-resource-load-callbacks.html:
fast/loader/local-image-from-local.html:
fast/loader/local-CSS-from-local.html:
fast/loader/local-JavaScript-from-local.html:
http/tests/security/local-CSS-from-remote.html:
http/tests/security/local-video-poster-from-remote.html:
http/tests/security/local-user-CSS-from-remote.html:
http/tests/security/local-JavaScript-from-remote.html:
http/tests/security/local-iFrame-from-remote.html:
http/tests/security/local-video-source-from-remote.html:
http/tests/security/local-image-from-remote.html:
http/tests/security/frame-loading-via-document-write.html:
http/tests/security/local-image-from-remote-whitelisted.html:var
http/tests/security/local-video-src-from-remote.html:
http/tests/misc/image-blocked-src-no-change.html:
http/tests/misc/image-blocked-src-no-change.html:
http/tests/misc/image-blocked-src-change.html:</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>100112</attachid>
            <date>2011-07-08 06:02:19 -0700</date>
            <delta_ts>2011-07-11 16:13:50 -0700</delta_ts>
            <desc>create and remove the symlink like old-run-webkit-tests used to</desc>
            <filename>0001-2011-07-08-Gustavo-Noronha-Silva-gustavo.noronha-col.patch</filename>
            <type>text/plain</type>
            <size>2375</size>
            <attacher name="Gustavo Noronha (kov)">gustavo</attacher>
            
              <data encoding="base64">RnJvbSA2ZmRhOWRj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YS9Ub29scy9TY3JpcHRzL3dlYmtpdHB5L2xheW91dF90ZXN0
cy9ydW5fd2Via2l0X3Rlc3RzLnB5CisrKyBiL1Rvb2xzL1NjcmlwdHMvd2Via2l0cHkvbGF5b3V0
X3Rlc3RzL3J1bl93ZWJraXRfdGVzdHMucHkKQEAgLTQzMCw3ICs0MzAsMjIgQEAgZGVmIHBhcnNl
X2FyZ3MoYXJncz1Ob25lKToKIGRlZiBtYWluKCk6CiAgICAgb3B0aW9ucywgYXJncyA9IHBhcnNl
X2FyZ3MoKQogICAgIHBvcnRfb2JqID0gcG9ydC5nZXQob3B0aW9ucy5wbGF0Zm9ybSwgb3B0aW9u
cykKLSAgICByZXR1cm4gcnVuKHBvcnRfb2JqLCBvcHRpb25zLCBhcmdzKQorCisgICAgIyBDcmVh
dGUgYSBzeW1saW5rIHRvIHRoZSBsYXlvdXQgdGVzdHMgZGlyZWN0b3J5LiBTb21lIHRlc3RzIHJl
bHkgb24gdGhpcy4KKyAgICB0ZXN0c19kaXJlY3RvcnkgPSBwb3J0X29iai5wYXRoX2Zyb21fd2Vi
a2l0X2Jhc2UoJ0xheW91dFRlc3RzJykKKyAgICB0cnk6CisgICAgICAgIG9zLnN5bWxpbmsodGVz
dHNfZGlyZWN0b3J5LCAnL3RtcC9MYXlvdXRUZXN0cycpCisgICAgZXhjZXB0IE9TRXJyb3I6Cisg
ICAgICAgIHBhc3MKKworICAgIHJlc3VsdCA9IHJ1bihwb3J0X29iaiwgb3B0aW9ucywgYXJncykK
KworICAgIHRyeToKKyAgICAgICAgb3MudW5saW5rKCcvdG1wL0xheW91dFRlc3RzJykKKyAgICBl
eGNlcHQgT1NFcnJvcjoKKyAgICAgICAgcGFzcworCisgICAgcmV0dXJuIHJlc3VsdAogCiAKIGlm
ICdfX21haW5fXycgPT0gX19uYW1lX186Ci0tIAoxLjcuNS4zCgo=
</data>
<flag name="review"
          id="94737"
          type_id="1"
          status="-"
          setter="abarth"
    />
          </attachment>
      

    </bug>

</bugzilla>