<?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>63784</bug_id>
          
          <creation_ts>2011-06-30 23:28:42 -0700</creation_ts>
          <short_desc>Ensure that NWRT workers can always enforce timeouts on DRT/WebKitTestRunner</short_desc>
          <delta_ts>2012-05-08 14:35:08 -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>
          
          
          <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="Adam Barth">abarth</reporter>
          <assigned_to name="Dirk Pranke">dpranke</assigned_to>
          <cc>dpranke</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>431001</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-06-30 23:28:42 -0700</bug_when>
    <thetext>Now that we don&apos;t have wedge detection, we need to make sure that new-run-webkit-tests can always kill DumpRenderTree if DumpRenderTree misbehaves.  dpranke says this is the case on non-Mac platforms already, but it might not be the case on Chromium for reasons I don&apos;t fully understand.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>431392</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-07-01 13:17:52 -0700</bug_when>
    <thetext>See https://bugs.webkit.org/show_bug.cgi?id=63767#c32 background on this. 

I am editing the subject for this ... it&apos;s not that the NRWT worker&apos;s can&apos;t kill DRT; they can, obviously. It&apos;s that they can&apos;t enforce a timeout generically. They rely on the Port&apos;s implementation of run_test() to enforce the timeout. In the Chromium bots case, that implementation relies on DRT enforcing it directly. On the non-Chromium webkit ports, the webkit.py/server_process.py code implements non-blocking I/O and enforces the timeout directly. 

Note that the apple win port (where non-blocking I/O will be trickier) doesn&apos;t work at all, and will need to be made to work with non-blocking I/O (or rely on DRT&apos;s internal timeout like Chromium does).

I think you have misquoted me in the description; hopefully this clarifies things.

Also, removing the [Chromium] from this since it will apply to Apple Win as well; of course, you can put the [Chromium] back and file a separate bug (or leverage the existing &apos;apple win port doesn&apos;t work&apos; bug. 

The reason I put this here is because the non-blocking i/o code is complicated enough that it probably makes sense to be shared across all the ports by revising the server_process code or providing some other common implementation of &quot;spawn this process, write this line to stdin, and read lines from stdout and stderr without blocking for longer than X&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>618815</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-05-08 14:35:08 -0700</bug_when>
    <thetext>this was fixed with r115903 (and preceding changes). Note that Chromium SL is still using the old mode, but that&apos;s a separate issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>