<?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>110144</bug_id>
          
          <creation_ts>2013-02-18 11:50:37 -0800</creation_ts>
          <short_desc>clear databases before running read-transactions-running-concurrently test</short_desc>
          <delta_ts>2013-02-18 13:53:45 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</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>jochen</reporter>
          <assigned_to>jochen</assigned_to>
          <cc>thakis</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>835664</commentid>
    <comment_count>0</comment_count>
    <who name="">jochen</who>
    <bug_when>2013-02-18 11:50:37 -0800</bug_when>
    <thetext>clear databases before running read-transactions-running-concurrently test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835665</commentid>
    <comment_count>1</comment_count>
      <attachid>188926</attachid>
    <who name="">jochen</who>
    <bug_when>2013-02-18 11:51:19 -0800</bug_when>
    <thetext>Created attachment 188926
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835703</commentid>
    <comment_count>2</comment_count>
      <attachid>188926</attachid>
    <who name="Nico Weber">thakis</who>
    <bug_when>2013-02-18 12:59:38 -0800</bug_when>
    <thetext>Comment on attachment 188926
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=188926&amp;action=review

&gt; LayoutTests/ChangeLog:9
&gt; +        of databases from previous tests are hanging around.

Shouldn&apos;t the test runner do this before running a test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835705</commentid>
    <comment_count>3</comment_count>
    <who name="">jochen</who>
    <bug_when>2013-02-18 13:01:54 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 188926 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=188926&amp;action=review
&gt; 
&gt; &gt; LayoutTests/ChangeLog:9
&gt; &gt; +        of databases from previous tests are hanging around.
&gt; 
&gt; Shouldn&apos;t the test runner do this before running a test?

it&apos;s a rather expensive operation, as it hits the filesystem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835707</commentid>
    <comment_count>4</comment_count>
    <who name="Nico Weber">thakis</who>
    <bug_when>2013-02-18 13:05:10 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 188926 [details] [details])
&gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=188926&amp;action=review
&gt; &gt; 
&gt; &gt; &gt; LayoutTests/ChangeLog:9
&gt; &gt; &gt; +        of databases from previous tests are hanging around.
&gt; &gt; 
&gt; &gt; Shouldn&apos;t the test runner do this before running a test?
&gt; 
&gt; it&apos;s a rather expensive operation, as it hits the filesystem.

How often? A single stat is relatively cheap since every test stats at least the html file and often a js and a css file. And I&apos;d guess in most cases there&apos;s nothing to clean up.

(stating a .d file in ninja takes ~6µs on a medium-warm cache.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835720</commentid>
    <comment_count>5</comment_count>
    <who name="">jochen</who>
    <bug_when>2013-02-18 13:27:42 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; (From update of attachment 188926 [details] [details] [details])
&gt; &gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=188926&amp;action=review
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; LayoutTests/ChangeLog:9
&gt; &gt; &gt; &gt; +        of databases from previous tests are hanging around.
&gt; &gt; &gt; 
&gt; &gt; &gt; Shouldn&apos;t the test runner do this before running a test?
&gt; &gt; 
&gt; &gt; it&apos;s a rather expensive operation, as it hits the filesystem.
&gt; 
&gt; How often? A single stat is relatively cheap since every test stats at least the html file and often a js and a css file. And I&apos;d guess in most cases there&apos;s nothing to clean up.
&gt; 
&gt; (stating a .d file in ninja takes ~6µs on a medium-warm cache.)

dunno, is that also true on e.g. android (or content shell, where we have to do this in another process)?

Anyway, this seems to be the common pattern, e.g. cookies tests also clean up after themselves, instead of DRT resetting the cookie store after every test (although you could argue that this would make sense as well)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835721</commentid>
    <comment_count>6</comment_count>
      <attachid>188926</attachid>
    <who name="Nico Weber">thakis</who>
    <bug_when>2013-02-18 13:28:59 -0800</bug_when>
    <thetext>Comment on attachment 188926
Patch

ok ok</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835733</commentid>
    <comment_count>7</comment_count>
      <attachid>188926</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-18 13:53:42 -0800</bug_when>
    <thetext>Comment on attachment 188926
Patch

Clearing flags on attachment: 188926

Committed r143261: &lt;http://trac.webkit.org/changeset/143261&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835734</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-18 13:53:45 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>188926</attachid>
            <date>2013-02-18 11:51:19 -0800</date>
            <delta_ts>2013-02-18 13:53:42 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-110144-20130218204741.patch</filename>
            <type>text/plain</type>
            <size>1454</size>
            <attacher>jochen</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTQzMjQ4CmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggNDM2YzhiM2I3YjdiZWE0NzNmZjU0
MmJjNmE4OWJiYzA2ZTQ2MjRhZS4uMTg1Yzc3NmM2M2ZiMTdkMTVmODU2MzI3ZTQ0ZjNiMjI3NzI2
ZWY1ZiAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDEzLTAyLTE4ICBKb2NoZW4gRWlzaW5nZXIg
IDxqb2NoZW5AY2hyb21pdW0ub3JnPgorCisgICAgICAgIGNsZWFyIGRhdGFiYXNlcyBiZWZvcmUg
cnVubmluZyByZWFkLXRyYW5zYWN0aW9ucy1ydW5uaW5nLWNvbmN1cnJlbnRseSB0ZXN0CisgICAg
ICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMTAxNDQKKworICAg
ICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBPdGhlcndpc2UsIHdl
IG1pZ2h0IG5vdCBoYXZlIGVub3VnaCBxdW90YSB3aGVuIHJ1bm5pbmcgdGhpcyB0ZXN0cyBhbmQg
bG90cworICAgICAgICBvZiBkYXRhYmFzZXMgZnJvbSBwcmV2aW91cyB0ZXN0cyBhcmUgaGFuZ2lu
ZyBhcm91bmQuCisKKyAgICAgICAgKiBzdG9yYWdlL3dlYnNxbC9yZWFkLXRyYW5zYWN0aW9ucy1y
dW5uaW5nLWNvbmN1cnJlbnR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