<?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>66991</bug_id>
          
          <creation_ts>2011-08-25 15:39:13 -0700</creation_ts>
          <short_desc>Instrument NRWT or DRT to check whether DRT is timing out too early</short_desc>
          <delta_ts>2012-06-08 16:20:37 -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>
          
          <blocked>64491</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Kasting">pkasting</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>457192</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-08-25 15:39:13 -0700</bug_when>
    <thetext>Dirk investigated two reports of mine of strange DRT behavior w.r.t. timeouts:

(1) Sometimes a test will be marked as TIMEOUT but will only claim to have taken a fraction of the available time.  See e.g. http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40DEPS%20-%20chromium.org&amp;tests=fast%2Fforms%2Fform-associated-element-crash3.html where some tests TIMEOUT after 9 seconds when they should get 60.

(2) Sometimes a test will be marked as TIMEOUT without reporting a time at all.  See e.g. http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Fdom%2FDOMImplementation%2FcreateDocumentType-err.html .

Dirk&apos;s comments to me were as follows:

&quot;So, NRWT (in the Chromium case) decides that a test has timed out
because it is told by DRT that it did ... we pass a timeout value to
use to DRT, and then it tells us whether or not it took too long.

&quot;This means that either (a) we&apos;re passing in the wrong value, or (b)
DRT is buggy and timing out too early. I verified that we were passing
in the correct value in at least one try, so I&apos;m wondering if (b) is
the problem here.

&quot;That would also explain how we can get some timeout results with no number.

&quot;It would be straightforward to instrument either NRWT or DRT to check
for this. Can you file a bug for this?&quot;

This is that bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457196</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-08-25 15:44:45 -0700</bug_when>
    <thetext>Adding Tony to this as well ... note that this has definitely been seen on Linux and looks like it happens on windows as well. Haven&apos;t checked to see if this is happening on the Mac.

It&apos;s a bit of a toss-up as to how to deal with such a thing (short of fixing the bug, obviously). My first though would be to instrument DRT to print to stderr when it thinks a test has timed out (and to print the timeout we were given), and/or instrument NRWT to log the timeout we passed it and how long the test did take.

There&apos;s a question of whether NRWT should override DRT&apos;s interpretation and consider the test some other kind of failure instead of a TIMEOUT, but I don&apos;t know that it matters that much. We don&apos;t really have any other way to indicate &quot;the testing infrastructure didn&apos;t work right&quot; as opposed to &quot;the test failed&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457220</commentid>
    <comment_count>2</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-08-25 16:13:02 -0700</bug_when>
    <thetext>In http://build.chromium.org/p/chromium.webkit/builders/Webkit%20Mac10.6%20%28CG%29/builds/342/steps/webkit_tests/logs/stdio , searching for pdf-as-background shows this output:

***
2011-08-25 15:54:43,868 26177 single_test_runner.py:221 DEBUG worker/13 fast/images/pdf-as-background.html output stderr lines:


2011-08-25 15:54:43,868 26177 worker.py:158 DEBUG worker/13 killing driver
2011-08-25 15:54:43,869 26177 worker.py:180 DEBUG worker/13 fast/images/pdf-as-background.html failed:
2011-08-25 15:54:43,869 26143 printing.py:469 INFO   fast/images/pdf-as-background.html -&gt; unexpected test timed out
2011-08-25 15:54:43,869 26177 worker.py:182 DEBUG worker/13  Test timed out
***

This suggests that in this case some other error is resulting in &quot;kill test, claim timeout&quot; which (looking at http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Fimages%2Fpdf-as-background.html ) is then getting reported as &quot;timeout, 2 seconds&quot; or similar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457272</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-08-25 17:12:42 -0700</bug_when>
    <thetext>I wonder if this could relate to bug 63981.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>645102</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-06-08 16:00:38 -0700</bug_when>
    <thetext>I&apos;m not sure if this is still an issue; I haven&apos;t seen anything suspicious like this in quite a while, and we use a totally different code path for handling timeouts now. Peter, are you okay with me closing this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>645119</commentid>
    <comment_count>5</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2012-06-08 16:20:37 -0700</bug_when>
    <thetext>If you don&apos;t think there&apos;s value in this bug, closing is fine.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>