<?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>136363</bug_id>
          
          <creation_ts>2014-08-29 04:35:09 -0700</creation_ts>
          <short_desc>[JSC] Some JSC stress tests are dependent on the machine time zone.</short_desc>
          <delta_ts>2018-06-13 17:37:14 -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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=186612</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>138303</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>dpino</cc>
    
    <cc>fpizlo</cc>
    
    <cc>mhahnenb</cc>
    
    <cc>mrobinson</cc>
    
    <cc>msaboff</cc>
    
    <cc>ossy</cc>
    
    <cc>sun.shin</cc>
    
    <cc>wingo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1032142</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-08-29 04:35:09 -0700</bug_when>
    <thetext>I have noticed that some of the JSC stress tests fail if your timezone is not PDT (At least on the GTK port, didn&apos;t tested other ports).

They pass all OK if your timezone is PDT:

$ export TZ=&quot;US/Pacific&quot;
$ Tools/Scripts/run-javascriptcore-tests --release --gtk --no-build
[...]
9887/9887         

Results for JSC stress tests:
    0 failures found.
    OK.


But some fail if you have another timezone:

$ export TZ=&quot;Europe/Madrid&quot;
$ Tools/Scripts/run-javascriptcore-tests --release --gtk --no-build
[...]
9887/9887 (failed 4)         

** The following JSC stress test failures have been introduced:
	mozilla-tests.yaml/ecma_3/Date/15.9.5.6.js.mozilla
	mozilla-tests.yaml/ecma_3/Date/15.9.5.6.js.mozilla-baseline
	mozilla-tests.yaml/ecma_3/Date/15.9.5.6.js.mozilla-dfg-eager-no-cjit-validate-phases
	mozilla-tests.yaml/ecma_3/Date/15.9.5.6.js.mozilla-llint

Results for JSC stress tests:
    4 failures found.



To workaround this, maybe we can just export the environment variable TZ to US/Pacific on the script run-javascriptcore-tests ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032146</commentid>
    <comment_count>1</comment_count>
    <who name="Andy Wingo">wingo</who>
    <bug_when>2014-08-29 05:35:37 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; I have noticed that some of the JSC stress tests fail if your timezone is not PDT (At least on the GTK port, didn&apos;t tested other ports).

Yep, a long-standing bug present in these tests since they were imported from Mozilla.  Note that these aren&apos;t the main tests for JSC -- those are in LayoutTests.

&gt; To workaround this, maybe we can just export the environment variable TZ to US/Pacific on the script run-javascriptcore-tests ?

Sure, sounds like a good idea to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032147</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-08-29 05:44:16 -0700</bug_when>
    <thetext>It is a very old bug: bug4930 . The workaround for us was always 
to set TZ to Apple time zone if you want to run JSC tests. :)

+1 for adding this workaround if nobody wants to fix the buggy test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032148</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-08-29 05:53:44 -0700</bug_when>
    <thetext>Adding $ENV{TZ}=&quot;US/Pacific&quot;; to run-javascriptcore-tests works for me,
feel free to create a patch for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032151</commentid>
    <comment_count>4</comment_count>
      <attachid>237347</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-08-29 06:30:48 -0700</bug_when>
    <thetext>Created attachment 237347
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032152</commentid>
    <comment_count>5</comment_count>
      <attachid>237347</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-08-29 06:32:43 -0700</bug_when>
    <thetext>Comment on attachment 237347
Patch

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

&gt; Tools/Scripts/run-javascriptcore-tests:237
&gt; +    # Some tests fail if the time zone is not set to US/Pacific (&lt;https://webkit.org/b/136363&gt;)
&gt; +    $ENV{TZ}=&quot;US/Pacific&quot;;

We can apply this if we only run the mozilla tests for some reason.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032155</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-08-29 06:43:25 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 237347 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=237347&amp;action=review
&gt; 
&gt; &gt; Tools/Scripts/run-javascriptcore-tests:237
&gt; &gt; +    # Some tests fail if the time zone is not set to US/Pacific (&lt;https://webkit.org/b/136363&gt;)
&gt; &gt; +    $ENV{TZ}=&quot;US/Pacific&quot;;
&gt; 
&gt; We can apply this if we only run the mozilla tests for some reason.

Not sure if I understand what you mean. Exporting it inside:

if ($runMozilla) {
[...]
}

Don&apos;t fixes the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032156</commentid>
    <comment_count>7</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-08-29 06:44:31 -0700</bug_when>
    <thetext>Also, running &quot;Tools/Scripts/run-javascriptcore-tests [...] --no-jsc-stress&quot; don&apos;t fails</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032157</commentid>
    <comment_count>8</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-08-29 06:47:12 -0700</bug_when>
    <thetext>I meant Tools/Scripts/run-javascriptcore-tests --no-jsc-stress 
case should be workarounded too, not only the stress test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032183</commentid>
    <comment_count>9</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-08-29 10:08:19 -0700</bug_when>
    <thetext>I see.

There are some mozilla test skipped due to this issue with the timezone. See r99580 &lt;http://trac.webkit.org/r99580&gt;.

I have tested to unskip them and they fail only with a non US/Pacific timezone, but pass on US/Pacific.

I&apos;m going to unskip this tests and set the TZ environment variable on the main body of the script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032185</commentid>
    <comment_count>10</comment_count>
      <attachid>237355</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-08-29 10:26:16 -0700</bug_when>
    <thetext>Created attachment 237355
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032203</commentid>
    <comment_count>11</comment_count>
      <attachid>237355</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-08-29 11:15:45 -0700</bug_when>
    <thetext>Comment on attachment 237355
Patch

Clearing flags on attachment: 237355

Committed r173116: &lt;http://trac.webkit.org/changeset/173116&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032204</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-08-29 11:15:49 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>237347</attachid>
            <date>2014-08-29 06:30:48 -0700</date>
            <delta_ts>2014-08-29 10:26:09 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-136363-20140829153040.patch</filename>
            <type>text/plain</type>
            <size>1544</size>
            <attacher name="Carlos Alberto Lopez Perez">clopez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTczMTEyCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggNWZiMDVhYTUwOTJmNjFmNTNmNTY0ZDc0M2UyN2FiMWI4
ZTY0Y2UxZS4uNzM0NWQ0YWQ3ZmE0N2QwYWMxOTg4ZWZiNjcwMzEyZTUyMWY4OWM3MyAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEy
IEBACisyMDE0LTA4LTI5ICBDYXJsb3MgQWxiZXJ0byBMb3BleiBQZXJleiAgPGNsb3BlekBpZ2Fs
aWEuY29tPgorCisgICAgICAgIFtKU0NdIFNvbWUgSlNDIHN0cmVzcyB0ZXN0cyBhcmUgZGVwZW5k
ZW50IG9uIHRoZSBtYWNoaW5lIHRpbWUgem9uZS4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtp
dC5vcmcvc2hvd19idWcuY2dpP2lkPTEzNjM2MworCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9E
WSAoT09QUyEpLgorCisgICAgICAgICogU2NyaXB0cy9ydW4tamF2YXNjcmlwdGNvcmUtdGVzdHM6
IEV4cG9ydCBUWiBlbnZpcm9ubWVudCB2YXJpYWJsZSB0byBVUy9QYWNpZmljLgorCiAyMDE0LTA4
LTI5ICBFdmEgQmFsYXpzZmFsdmkgIDxldmFiLnUtc3plZ2VkQHBhcnR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c3NEcml2ZXJDbWQgPSAoCiAgICAgICAgICIvdXNyL2Jp
bi9lbnYiLCAicnVieSIsICJUb29scy9TY3JpcHRzL3J1bi1qc2Mtc3RyZXNzLXRlc3RzIiwKICAg
ICAgICAgIi1qIiwganNjUGF0aCgkcHJvZHVjdERpciksICItbyIsICRqc2NTdHJlc3NSZXN1bHRz
RGlyLAo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>237355</attachid>
            <date>2014-08-29 10:26:16 -0700</date>
            <delta_ts>2014-08-29 11:15:44 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-136363-20140829192609.patch</filename>
            <type>text/plain</type>
            <size>2023</size>
            <attacher name="Carlos Alberto Lopez Perez">clopez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTczMTEzCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggNWZiMDVhYTUwOTJmNjFmNTNmNTY0ZDc0M2UyN2FiMWI4
ZTY0Y2UxZS4uYzBmYmIxNGI5MTYzYzBkZTNjZDU0MjYxY2IzMjI4Y2EwMGYxNWRiZCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEz
IEBACisyMDE0LTA4LTI5ICBDYXJsb3MgQWxiZXJ0byBMb3BleiBQZXJleiAgPGNsb3BlekBpZ2Fs
aWEuY29tPgorCisgICAgICAgIFtKU0NdIFNvbWUgSlNDIHRlc3RzIGFyZSBkZXBlbmRlbnQgb24g
dGhlIG1hY2hpbmUgdGltZSB6b25lLgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z
aG93X2J1Zy5jZ2k/aWQ9MTM2MzYzCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BT
ISkuCisKKyAgICA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