<?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>107328</bug_id>
          
          <creation_ts>2013-01-18 14:38:35 -0800</creation_ts>
          <short_desc>[chromium] DumpRenderTree is getting the contents of a previous test</short_desc>
          <delta_ts>2013-04-08 15:58:45 -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>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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hin-Chung Lam">hclam</reporter>
          <assigned_to name="Nate Chapin">japhet</assigned_to>
          <cc>abarth</cc>
    
    <cc>dpranke</cc>
    
    <cc>japhet</cc>
    
    <cc>schenney</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>811057</commentid>
    <comment_count>0</comment_count>
    <who name="Hin-Chung Lam">hclam</who>
    <bug_when>2013-01-18 14:38:35 -0800</bug_when>
    <thetext>This test is reported to be MISSING:

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fcache%2Fcancel-multiple-post-xhrs.html

But however the actual results comes from a previous test run.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>811063</commentid>
    <comment_count>1</comment_count>
    <who name="Hin-Chung Lam">hclam</who>
    <bug_when>2013-01-18 14:44:46 -0800</bug_when>
    <thetext>Committed r140210: &lt;http://trac.webkit.org/changeset/140210&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>819260</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2013-01-29 13:12:01 -0800</bug_when>
    <thetext>So, what seems to be happening here is that http/tests/cache/cancel-during-revalidation-succeeded.html is somehow messing up state inside DRT so that when we run the next test (http/tests/cache/cancel-multiple-post-xhrs.html), the dumpAsText() call is not having any effect, and we&apos;re incorrectly dumping out a render tree and generating a pixel result (and since there&apos;s no -expected.png, we report this as MISSING). If you look at the actual results being generated on the flakiness dashboard, you can see the incorrect render tree.

This is kinda interesting, since it&apos;s at least the first case I&apos;ve seen which deterministically (reliably) is causing dumpAsText() to have no effect and we can&apos;t blame this on a script not getting loaded.

As an aside, the second test (cancel-multiple-post-xhrs) is also printing out output  inside WebProxyTestBase::willSendRequest) *before* we print the test headers in TestEventPrinter::handleTextHeader(). This is probably bad, not the least of which is because the NRWT driver.py code is handling this only by accident.

So, there&apos;s a couple of different bugs being revealed here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>819262</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2013-01-29 13:16:21 -0800</bug_when>
    <thetext>Note that the http/tests/cache/cancel-during-revalidation-succeeded.html appears to be a known problem (at least on linux) as noted from bug 96950. 

Also, the &quot;actual results come from a previous test run&quot; part refers the output from cancel-during-revalidation-succeeded.html showing up as the -actual for cancel-multiple-post-xhrs.html .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>819324</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2013-01-29 14:19:50 -0800</bug_when>
    <thetext>Punting this to Nate ... it appears that both NRWT and DRT are working correctly, and when we attempt to load the second URL, we&apos;re getting the contents of the first URL (in some form) back. 

I am able to reproduce this consistently on my mac sync&apos;ed to r141137 in a release build. It does not appear to reproduce in a debug build at the same revision (at least, not easily).

run-webkit-tests --chromium --no-new-test-results --clobber-old-results http/tests/cache/cancel-during-revalidation-succeeded.html http/tests/cache/cancel-multiple-post-xhrs.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>819326</commentid>
    <comment_count>5</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2013-01-29 14:21:03 -0800</bug_when>
    <thetext>Also, editing the subject line to reflect my current understanding.

Was: &quot;Layout test runner is confused with output from different tests&quot;
Now: &quot;[chromium] DumpRenderTree is getting the contents of a previous test&quot;

I have no idea yet if this reproduces on other ports.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>819343</commentid>
    <comment_count>6</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2013-01-29 14:43:15 -0800</bug_when>
    <thetext>It does not appear to reproduce on the apple mac port at the same revision.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>