<?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>209455</bug_id>
          
          <creation_ts>2020-03-23 17:33:08 -0700</creation_ts>
          <short_desc>[Win] http/tests/misc/last-modified-parsing.html always fails on Windows EWS</short_desc>
          <delta_ts>2021-05-13 19:13:28 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=128221</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>fujii</cc>
    
    <cc>jbedard</cc>
    
    <cc>jlewis3</cc>
    
    <cc>pnormand</cc>
    
    <cc>pvollan</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>tsavell</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1633154</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-03-23 17:33:08 -0700</bug_when>
    <thetext>http/tests/misc/last-modified-parsing.html always fails on Windows EWS.

Looks like a timezone issue (off by 8 hours):

--- /home/buildbot/worker/Windows-EWS/build/layout-test-results/http/tests/misc/last-modified-parsing-expected.txt
+++ /home/buildbot/worker/Windows-EWS/build/layout-test-results/http/tests/misc/last-modified-parsing-actual.txt
@@ -3,34 +3,34 @@
 --------
 Frame: &apos;&lt;!--frame1--&gt;&apos;
 --------
-Fri, 21 Nov 2008 01:03:33 GMT
+Fri, 21 Nov 2008 09:03:33 GMT
 
 --------
 Frame: &apos;&lt;!--frame2--&gt;&apos;
 --------
-Fri, 21 Nov 2008 01:03:33 GMT
+Fri, 21 Nov 2008 09:03:33 GMT
 
 --------
 Frame: &apos;&lt;!--frame3--&gt;&apos;
 --------
-Fri, 21 Nov 1997 01:03:33 GMT
+Fri, 21 Nov 1997 09:03:33 GMT
 
 --------
 Frame: &apos;&lt;!--frame4--&gt;&apos;
 --------
-Fri, 21 Nov 2008 01:03:33 GMT
+Fri, 21 Nov 2008 09:03:33 GMT
 
 --------
 Frame: &apos;&lt;!--frame5--&gt;&apos;
 --------
-Thu, 21 Feb 2008 01:03:33 GMT
+Thu, 21 Feb 2008 09:03:33 GMT
 
 --------
 Frame: &apos;&lt;!--frame6--&gt;&apos;
 --------
-Sun, 03 Feb 2008 01:03:33 GMT
+Sun, 03 Feb 2008 09:03:33 GMT
 
 --------
 Frame: &apos;&lt;!--frame7--&gt;&apos;
 --------
-Mon, 03 Mar 2008 01:03:33 GMT
+Mon, 03 Mar 2008 09:03:33 GMT</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1633164</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-03-23 17:43:15 -0700</bug_when>
    <thetext>Committed r258892: &lt;https://trac.webkit.org/changeset/258892/webkit&gt;

This should speed up the Windows EWS bot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1633167</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-03-23 17:50:06 -0700</bug_when>
    <thetext>It&apos;s been failing for a while:
&lt;https://results.webkit.org/?suite=layout-tests&amp;test=http%2Ftests%2Fmisc%2Flast-modified-parsing.html&amp;platform=win&gt;

Looks like it regressed between r258625 (working) and r258626 (failing).

&lt;https://trac.webkit.org/changeset/258626/webkit&gt;

I wonder how a change to build scripts could have caused this regression?

[GTK][WPE] Migrate to Flatpak-based dev SDK
&lt;​https://bugs.webkit.org/show_bug.cgi?id=205658&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1633254</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-03-24 01:53:12 -0700</bug_when>
    <thetext>Is this bot running on a ... linux platform? :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1633517</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-03-24 14:55:31 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #3)
&gt; Is this bot running on a ... linux platform? :)

Of course not.  I&apos;m just reporting what I noticed in the results:

&lt;https://results.webkit.org/?suite=layout-tests&amp;test=http%2Ftests%2Fmisc%2Flast-modified-parsing.html&amp;platform=win&gt;

Note that there is shared Python and Perl code used by the Windows platform in build/test scripts, too, which were modified as part of the patch.  (I did not review the patch to see if code shared by the Windows port was modified, though.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1633820</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-03-25 03:07:12 -0700</bug_when>
    <thetext>As commented in the other bug, can you check if the TZ env var has any effect on your bots? I suspect this is the source of the problem, because if it&apos;s set on your bots, it is now white-listed into the test environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1633887</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-03-25 08:55:21 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #5)
&gt; As commented in the other bug, can you check if the TZ env var has any
&gt; effect on your bots? I suspect this is the source of the problem, because if
&gt; it&apos;s set on your bots, it is now white-listed into the test environment.

Thanks Phillippe!  I&apos;ve added some folks to the Cc list that can check this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759970</commentid>
    <comment_count>7</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-05-13 19:13:28 -0700</bug_when>
    <thetext>There are two problems.

run-webkit-tests set &apos;TZ&apos; env var to &apos;US/Pacific&apos; (Bug 186612).
However, Windows&apos; std::localtime doesn&apos;t understand it, and treats it GMT.
&apos;TZ&apos; env var should be &apos;PST8PDT&apos; for Windows.

_tzset | Microsoft Docs
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/tzset

Date.parse() doesn&apos;t take &apos;TZ&apos; env var into account.
It always assumes the local timezone.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>