<?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>144866</bug_id>
          
          <creation_ts>2015-05-11 04:35:22 -0700</creation_ts>
          <short_desc>Fix run-javascriptcore-tests step on the WinCairo bot</short_desc>
          <delta_ts>2015-09-24 06:58:42 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>144888</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Csaba Osztrogonác">ossy</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ossy</cc>
    
    <cc>peavo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1093737</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-11 04:35:22 -0700</bug_when>
    <thetext>It fails with the following message long long time ago:

C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:357:in `symlink&apos;: symlink() function is unimplemented on this machine (NotImplementedError)
	from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:357:in `block in ln_s&apos;
	from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:1586:in `fu_each_src_dest0&apos;
	from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:355:in `ln_s&apos;
	from Tools/Scripts/run-jsc-stress-tests:1179:in `block in prepareBundle&apos;
	from Tools/Scripts/run-jsc-stress-tests:1174:in `chdir&apos;
	from Tools/Scripts/run-jsc-stress-tests:1174:in `prepareBundle&apos;
	from Tools/Scripts/run-jsc-stress-tests:1576:in `runNormal&apos;
	from Tools/Scripts/run-jsc-stress-tests:1608:in `&lt;main&gt;&apos;

http://stackoverflow.com/questions/21511347/how-to-create-a-symlink-on-windows-via-ruby
It says that creating symlinks with symlink() isn&apos;t supported on Windows, it can
be done with only workaround. How does it work on the Apple Windows buildbots?
And it worked previously on the WinCairo bot too. What changed?

Maybe we can fix it with setting $copyVM to true based on OS. 
But I can&apos;t test if this fix is enough or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093739</commentid>
    <comment_count>1</comment_count>
      <attachid>252856</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-11 04:43:16 -0700</bug_when>
    <thetext>Created attachment 252856
Patch

speculative fix, could somebody test it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093741</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-11 04:49:52 -0700</bug_when>
    <thetext>Just to document my findings:

latest pass:
- r181974
- Wed Mar 25 15:39:49 2015
https://build.webkit.org/builders/WinCairo%2064-Bit%20Release/builds/44990

(build failure during this period)

first failure:
- r183565
- Wed Apr 29 12:20:43 2015
https://build.webkit.org/builders/WinCairo%2064-Bit%20Release/builds/45143</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093767</commentid>
    <comment_count>3</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-05-11 08:52:31 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; It says that creating symlinks with symlink() isn&apos;t supported on Windows, it
&gt; can
&gt; be done with only workaround. How does it work on the Apple Windows
&gt; buildbots?
&gt; And it worked previously on the WinCairo bot too. What changed?
&gt; 

Thanks for looking into this :) I believe the WinCairo bot is now set up without cygwin.

&gt; Maybe we can fix it with setting $copyVM to true based on OS. 
&gt; But I can&apos;t test if this fix is enough or not.

Another possibility is to catch all exceptions:

Index: run-jsc-stress-tests
===================================================================
--- run-jsc-stress-tests        (revisjon 184067)
+++ run-jsc-stress-tests        (arbeidskopi)
@@ -1177,7 +1177,10 @@
             else
                 begin
                     FileUtils.ln_s source, destination
-                rescue
+                rescue Exception =&gt; e
+                    puts &quot;Exception raised&quot;
+                    puts [e, e.backtrace].flatten.join(&quot;\n&quot;)
+
                     FileUtils.cp_r source, destination
                 end
             end</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093857</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-05-11 12:45:23 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; And it worked previously on the WinCairo bot too. What changed?
WinCairo bot does not use cygwin.  AppleWin bots do.  WinCairo bot used to.
Still under construction: http://trac.webkit.org/wiki/WindowsWithoutCygwin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093876</commentid>
    <comment_count>5</comment_count>
      <attachid>252856</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-05-11 13:44:05 -0700</bug_when>
    <thetext>Comment on attachment 252856
Patch

Clearing flags on attachment: 252856

Committed r184119: &lt;http://trac.webkit.org/changeset/184119&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093877</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-05-11 13:44:08 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093941</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-05-11 16:34:35 -0700</bug_when>
    <thetext>This broke JSC tests on Apple Windows:

https://build.webkit.org/builders/Apple%20Win%207%20Release%20(Tests)?numbuilds=50</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093942</commentid>
    <comment_count>8</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-05-11 16:36:38 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; This broke JSC tests on Apple Windows:
&gt; 
&gt; https://build.webkit.org/builders/
&gt; Apple%20Win%207%20Release%20(Tests)?numbuilds=50
Those are just warnings.  Do we want to cover up the warnings or rollout this patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093944</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-05-11 16:37:38 -0700</bug_when>
    <thetext>Re-opened since this is blocked by bug 144888</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1094134</commentid>
    <comment_count>10</comment_count>
      <attachid>252956</attachid>
    <who name="">peavo</who>
    <bug_when>2015-05-12 05:25:30 -0700</bug_when>
    <thetext>Created attachment 252956
Patch to catch symlink exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1094135</commentid>
    <comment_count>11</comment_count>
      <attachid>252956</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-12 05:30:23 -0700</bug_when>
    <thetext>Comment on attachment 252956
Patch to catch symlink exception.

LGTM, let&apos;s try this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1094136</commentid>
    <comment_count>12</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-05-12 05:33:15 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; Comment on attachment 252956 [details]
&gt; Patch to catch symlink exception.
&gt; 
&gt; LGTM, let&apos;s try this one.

Thanks :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1094155</commentid>
    <comment_count>13</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-05-12 07:27:33 -0700</bug_when>
    <thetext>Committed r184201: &lt;http://trac.webkit.org/changeset/184201&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1094167</commentid>
    <comment_count>14</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-12 08:33:58 -0700</bug_when>
    <thetext>The bot is still broken, but at least the sylink problem is fixed now.

process_begin: CreateProcess(NULL, sh test_script_0, ...) failed.
make (e=2): The system cannot find the file specified.

make: *** [test_done_0] Error 2
Tools/Scripts/run-jsc-stress-tests:79:in `mysys&apos;: Command failed: #&lt;Process::Status: pid 5988 exit 2&gt; (RuntimeError)
	from Tools/Scripts/run-jsc-stress-tests:1411:in `runAndMonitorTestRunnerCommand&apos;
	from Tools/Scripts/run-jsc-stress-tests:1499:in `block in runTestRunner&apos;
	from Tools/Scripts/run-jsc-stress-tests:1498:in `chdir&apos;
	from Tools/Scripts/run-jsc-stress-tests:1498:in `runTestRunner&apos;
	from Tools/Scripts/run-jsc-stress-tests:1579:in `runNormal&apos;
	from Tools/Scripts/run-jsc-stress-tests:1609:in `&lt;main&gt;&apos;

It would be great if the port maintainers could fix this issue.
I don&apos;t have any chance without WinCairo build environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1094169</commentid>
    <comment_count>15</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-12 08:42:27 -0700</bug_when>
    <thetext>Maybe installing some tools on the bot would solve this issue.

But it seems there are many unix tools are used by the runner scripts:
sh, touch, dirname, rm, awk, diff, ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1094184</commentid>
    <comment_count>16</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-05-12 10:01:18 -0700</bug_when>
    <thetext>(In reply to comment #15)
&gt; Maybe installing some tools on the bot would solve this issue.
&gt; 
&gt; But it seems there are many unix tools are used by the runner scripts:
&gt; sh, touch, dirname, rm, awk, diff, ...

gnuwin32 has many of these tools, and there are many places where we should use a perl/python/ruby function instead of calling an executable from the command line.  I&apos;ll look into this soon.  Ideally we would get all the bots running without cygwin, but that will take a significant amount of work</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1128480</commentid>
    <comment_count>17</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-09-24 06:58:42 -0700</bug_when>
    <thetext>The WinCairo bot doesn&apos;t run tests long time ago.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>252856</attachid>
            <date>2015-05-11 04:43:16 -0700</date>
            <delta_ts>2015-05-11 13:44:05 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-144866-20150511044155.patch</filename>
            <type>text/plain</type>
            <size>1177</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTg0MDc1CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggN2M3ZjI3YjNiNGJiYTcxYmU5ZWIyZTBhOGFiYzUzMTA3
YzFlYzA4My4uZjJmYWU0NDA5NjYyOTRkOGY2NjQ2ZGIzMGRhNWEyMjQyNzk0ZTEwMCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEy
IEBACisyMDE1LTA1LTExICBDc2FiYSBPc3p0cm9nb27DoWMgIDxvc3N5QHdlYmtpdC5vcmc+CisK
KyAgICAgICAgRml4IHJ1bi1qYXZhc2NyaXB0Y29yZS10ZXN0cyBzdGVwIG9uIHRoZSBXaW5DYWly
byBib3QKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE0
NDg2NgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICog
U2NyaXB0cy9ydW4tanNjLXN0cmVzcy10ZXN0czoKKwogMjAxNS0wNS0xMCAgTWFydGluIFJvYmlu
c29uICA8bXJvYmluc29uQGlnYWxpYS5jb20+CiAKICAgICAgICAgW0dUS10gZmFzdC9ldmVudHMv
cGFnZS12aXNpYmlsaXR5LXRyYW5zaXRpb24tdGVzdC5odG1sIGlzIHRpbWluZyBvdXQKZGlmZiAt
LWdpdCBhL1Rvb2xzL1NjcmlwdHMvcnVuLWpzYy1zdHJlc3MtdGVzdHMgYi9Ub29scy9TY3JpcHRz
L3J1bi1qc2Mtc3RyZXNzLXRlc3RzCmluZGV4IDM3OWM3YmRmZDg0NDNhYmUyMzE3NWQ3OWEwN2Vk
YTYwNTJmZWYzMzEuLjQ1ZGYxMDlhZjJjZTJiZWE4MzRjZTIyZGJhMmE3OWRiMDMwMjAxMzEgMTAw
NzU1Ci0tLSBhL1Rvb2xzL1NjcmlwdHMvcnVuLWpzYy1zdHJlc3MtdGVzdHMKKysrIGIvVG9vbHMv
U2NyaXB0cy9ydW4tanNjLXN0cmVzcy10ZXN0cwpAQCAtMzM2LDYgKzMzNiwxMSBAQCBpZiAhJHRl
c3RSdW5uZXJUeXBlCiAgICAgZW5kCiBlbmQKIAorIyBGb3JjZSBjb3B5aW5nIFZNLCBiZWNhdXNl
IGNyZWF0aW5nIHN5bWxpbmtzIHdpdGggc3ltbGluaygpIGlzbid0IHN1cHBvcnRlZCBvbiBXaW5k
b3dzCitpZiAkaG9zdE9TID09ICJ3aW5kb3dzIgorICAgICRjb3B5Vk0gPSB0cnVlCitlbmQKKwog
JG51bUZhaWx1cmVzID0gMAogCiBCQVNFX09QVElPTlMgPSBbIi0tdXNlRlRMSklUPWZhbHNlIiwg
Ii0tZW5hYmxlRnVuY3Rpb25Eb3RBcmd1bWVudHM9dHJ1ZSJdCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>252956</attachid>
            <date>2015-05-12 05:25:30 -0700</date>
            <delta_ts>2015-05-12 05:30:23 -0700</delta_ts>
            <desc>Patch to catch symlink exception.</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1220</size>
            <attacher>peavo</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzam9uIDE4NDE5OSkKKysrIFRvb2xzL0NoYW5nZUxvZwkoYXJiZWlkc2tvcGkpCkBAIC0xLDMg
KzEsMTQgQEAKKzIwMTUtMDUtMTIgIFBlciBBcm5lIFZvbGxhbiAgPHBlYXZvQG91dGxvb2suY29t
PgorCisgICAgICAgIEZpeCBydW4tamF2YXNjcmlwdGNvcmUtdGVzdHMgc3RlcCBvbiB0aGUgV2lu
Q2Fpcm8gYm90CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9p
ZD0xNDQ4NjYKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAg
ICBDYXRjaCBleGNlcHRpb24gd2hlbiBmYWlsaW5nIHRvIGNyZWF0ZSBzb2Z0IGxpbmssIHNvIHdl
IGNhbiBmYWxsIGJhY2sgdG8gY29weS4KKworICAgICAgICAqIFNjcmlwdHMvcnVuLWpzYy1zdHJl
c3MtdGVzdHM6CisKIDIwMTUtMDUtMTIgIEpvYW5tYXJpZSBEaWdncyAgPGpkaWdnc0BpZ2FsaWEu
Y29tPgogCiAgICAgICAgIFtHVEtdW1dLMl0gcm93QXRJbmRleCBpcyBub3QgaW1wbGVtZW50ZWQg
aW4gRFJUL1dLVFIKSW5kZXg6IFRvb2xzL1NjcmlwdHMvcnVuLWpzYy1zdHJlc3MtdGVzdHMKPT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PQotLS0gVG9vbHMvU2NyaXB0cy9ydW4tanNjLXN0cmVzcy10ZXN0cwkocmV2aXNqb24g
MTg0MTA2KQorKysgVG9vbHMvU2NyaXB0cy9ydW4tanNjLXN0cmVzcy10ZXN0cwkoYXJiZWlkc2tv
cGkpCkBAIC0xMTc3LDcgKzExNzcsOCBAQAogICAgICAgICAgICAgZWxzZQogICAgICAgICAgICAg
ICAgIGJlZ2luIAogICAgICAgICAgICAgICAgICAgICBGaWxlVXRpbHMubG5fcyBzb3VyY2UsIGRl
c3RpbmF0aW9uCi0gICAgICAgICAgICAgICAgcmVzY3VlCisgICAgICAgICAgICAgICAgcmVzY3Vl
IEV4Y2VwdGlvbgorICAgICAgICAgICAgICAgICAgICAkc3RkZXJyLnB1dHMgIldhcm5pbmc6IHVu
YWJsZSB0byBjcmVhdGUgc29mdCBsaW5rLCB0cnlpbmcgdG8gY29weS4iCiAgICAgICAgICAgICAg
ICAgICAgIEZpbGVVdGlscy5jcF9yIHNvdXJjZSwgZGVzdGluYXRpb24KICAgICAgICAgICAgICAg
ICBlbmQKICAgICAgICAgICAgIGVuZAo=
</data>
<flag name="review"
          id="277812"
          type_id="1"
          status="+"
          setter="ossy"
    />
          </attachment>
      

    </bug>

</bugzilla>