<?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>45261</bug_id>
          
          <creation_ts>2010-09-06 06:10:14 -0700</creation_ts>
          <short_desc>[NRWT] Add temp directory to all running drivers</short_desc>
          <delta_ts>2010-09-08 05:15: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>PC</rep_platform>
          <op_sys>All</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="Gabor Rapcsanyi">rgabor</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abecsi</cc>
    
    <cc>cjerdonek</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>ojan</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>274578</commentid>
    <comment_count>0</comment_count>
    <who name="Gabor Rapcsanyi">rgabor</who>
    <bug_when>2010-09-06 06:10:14 -0700</bug_when>
    <thetext>NRWT doesn&apos;t give temp directory to DRT.
See this bug for details: https://bugs.webkit.org/show_bug.cgi?id=36899</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274580</commentid>
    <comment_count>1</comment_count>
      <attachid>66632</attachid>
    <who name="Gabor Rapcsanyi">rgabor</who>
    <bug_when>2010-09-06 06:16:08 -0700</bug_when>
    <thetext>Created attachment 66632
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274762</commentid>
    <comment_count>2</comment_count>
      <attachid>66632</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-09-06 13:23:10 -0700</bug_when>
    <thetext>Comment on attachment 66632
proposed patch

OK.  I assume this makes Qt&apos;s DRT work better when running multiple copies?  I see the ORWT has similar code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274785</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-06 14:53:43 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 66632 [details])
&gt; OK.  I assume this makes Qt&apos;s DRT work better when running multiple copies?  I see the ORWT has similar code.

Yes, you&apos;re right. It is important when we run multiple run-webkit-tests.
If we didn&apos;t separate temp directories, the local storage and 
icon database could be damage because of concurent file accesses.

This method works correctly for a long time with ORWT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274865</commentid>
    <comment_count>4</comment_count>
      <attachid>66632</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-07 00:30:55 -0700</bug_when>
    <thetext>Comment on attachment 66632
proposed patch

Clearing flags on attachment: 66632

Committed r66863: &lt;http://trac.webkit.org/changeset/66863&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274866</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-07 00:31:01 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275340</commentid>
    <comment_count>6</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2010-09-07 15:28:46 -0700</bug_when>
    <thetext>Hmm. It&apos;s not great that we&apos;re doing this work in the constructor and destructor; I&apos;ve found that can lead to indeterminate results in general (although it&apos;s fine in this case).

There&apos;s actually a port.setup_test_run() method that would be the appropriate place to create the temp dir - it&apos;s called only when we&apos;re sure we actually want to start running tests, but before DumpRenderTree is ever launched. Unfortunately, there isn&apos;t a cleanup_test_run() method to match it.

I&apos;ll add both of those and refactor this (in a separate bug/change), unless there&apos;s an objection ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275765</commentid>
    <comment_count>7</comment_count>
    <who name="Gabor Rapcsanyi">rgabor</who>
    <bug_when>2010-09-08 05:15:45 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Hmm. It&apos;s not great that we&apos;re doing this work in the constructor and destructor; I&apos;ve found that can lead to indeterminate results in general (although it&apos;s fine in this case).
&gt; 
&gt; There&apos;s actually a port.setup_test_run() method that would be the appropriate place to create the temp dir - it&apos;s called only when we&apos;re sure we actually want to start running tests, but before DumpRenderTree is ever launched. Unfortunately, there isn&apos;t a cleanup_test_run() method to match it.
&gt; 
&gt; I&apos;ll add both of those and refactor this (in a separate bug/change), unless there&apos;s an objection ...

Ok, you&apos;re right. We don&apos;t know when the gc delete this temp directory, so maybe a better way is your idea.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66632</attachid>
            <date>2010-09-06 06:16:08 -0700</date>
            <delta_ts>2010-09-07 00:30:55 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>drt_tmp.patch</filename>
            <type>text/plain</type>
            <size>1795</size>
            <attacher name="Gabor Rapcsanyi">rgabor</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDY2ODIwKQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr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data>

          </attachment>
      

    </bug>

</bugzilla>