<?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>70619</bug_id>
          
          <creation_ts>2011-10-21 10:46:14 -0700</creation_ts>
          <short_desc>REGRESSION (r97496-r97499): 6 fast/workers tests failing on SnowLeopard Intel Release (Tests)</short_desc>
          <delta_ts>2011-12-09 18:27:04 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r97499%20(33907)/results.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LayoutTestFailure, MakingBotsRed, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>71695</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="David Levin">levin</assigned_to>
          <cc>ap</cc>
    
    <cc>atwilson</cc>
    
    <cc>dslomov</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>levin</cc>
    
    <cc>michaeln</cc>
    
    <cc>oliver</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>488479</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-10-21 10:46:14 -0700</bug_when>
    <thetext>The following tests started failing on SnowLeopard Intel Release (Tests) between r97497 and r97499 (inclusive):

    fast/workers/shared-worker-lifecycle.html
    fast/workers/shared-worker-frame-lifecycle.html
    fast/workers/storage/interrupt-database.html
    fast/workers/worker-close-more.html
    fast/workers/dedicated-worker-lifecycle.html
    fast/workers/worker-lifecycle.html

http://trac.webkit.org/log/trunk?rev=97499&amp;stop_rev=97497&amp;limit=4

http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r97496%20(33906)/results.html passed
http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r97499%20(33907)/results.html failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>488480</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-10-21 10:46:34 -0700</bug_when>
    <thetext>Please can you try to make these workers tests less flakey? They cause so much bot redness.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>488497</commentid>
    <comment_count>2</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-10-21 11:01:28 -0700</bug_when>
    <thetext>Adding dslomov as fyi.

I think Drew added most of these except for the interrupt-database one which I think Michael owns.

I think everyone is booked at the moment but hopefully one of us will be able to look at this soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495075</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-11-02 17:10:06 -0700</bug_when>
    <thetext>We need to get these workers tests skipped, or passing. Their flakiness is not acceptable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495078</commentid>
    <comment_count>4</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-11-02 17:14:41 -0700</bug_when>
    <thetext>Feel free to skip them unless someone volunteers to fix them (which doesn&apos;t look like it is happening at present).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495081</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-11-02 17:16:51 -0700</bug_when>
    <thetext>Skipped in http://trac.webkit.org/changeset/99125</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495082</commentid>
    <comment_count>6</comment_count>
    <who name="Andrew Wilson">atwilson</who>
    <bug_when>2011-11-02 17:19:19 -0700</bug_when>
    <thetext>Yeah, if you look at the failures, they look to be DRT failures more than anything else.

Looking at fast/workers/resources/worker-lifecycle.js:

if (window.layoutTestController) {
    layoutTestController.dumpAsText();
    layoutTestController.waitUntilDone();
    waitUntilWorkerThreadsExit(runTests);
} else {
    log(&quot;NOTE: Test relies on window.layoutTestController to detect when worker threads have exited. Please run this test via DumpRenderTree&quot;);
    waitUntilWorkerThreadsExit(runTests);
}

function runTests()
{
    if (window.layoutTestController)
        log(&quot;PASS: workerThreadCount = &quot; + layoutTestController.workerThreadCount);

I don&apos;t see how it&apos;s possible for the test output to be missing &quot;PASS: workerThreadCount =&quot; unless layoutTestController.workerThreadCount() just blocks.

So, yeah, it&apos;d be nice for someone to diagnose why DRT is not working with workers on the bots, but it doesn&apos;t specifically look like a failure in the worker code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495087</commentid>
    <comment_count>7</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-11-02 17:22:59 -0700</bug_when>
    <thetext>I think all of these tests rely on waitUntilWorkerThreadsExit which to my memory is just plain flaky for jsc due to how garbage collection is done there.

I think Drew Wilson tried to fix this but it was usually a form of let&apos;s try this because it is hard to force the gc to happen and recognize that an object is not referred to anymore.

I bet they started failing due to all the gc changes that have been happening and I suspect that it isn&apos;t worth the trouble to keep them running on jsc. (I believe they work for v8 and this in turn will test the shared code in WebKit for this stuff which is the most important thing.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495092</commentid>
    <comment_count>8</comment_count>
    <who name="Andrew Wilson">atwilson</who>
    <bug_when>2011-11-02 17:27:30 -0700</bug_when>
    <thetext>Still not 100% clear why we&apos;re not getting *any* output, but maybe if we get a timeout we don&apos;t dump the current text contents of the DOM (clearly my WebKit-fu is getting rusty).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495093</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-11-02 17:28:08 -0700</bug_when>
    <thetext>cc some JSC/GC folks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>516940</commentid>
    <comment_count>10</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-12-07 14:53:58 -0800</bug_when>
    <thetext>I bet this is the same as 71695.  If so, this is related to changing to NRWT.


After landing that fix, I&apos;ll unskip these and we&apos;ll see if they start passing, so I&apos;ll take this for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518497</commentid>
    <comment_count>11</comment_count>
      <attachid>118635</attachid>
    <who name="David Levin">levin</who>
    <bug_when>2011-12-09 14:14:26 -0800</bug_when>
    <thetext>Created attachment 118635
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518514</commentid>
    <comment_count>12</comment_count>
      <attachid>118635</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-12-09 14:23:46 -0800</bug_when>
    <thetext>Comment on attachment 118635
Patch

This kind of change generally doesn&apos;t need review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518721</commentid>
    <comment_count>13</comment_count>
      <attachid>118635</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-12-09 18:26:59 -0800</bug_when>
    <thetext>Comment on attachment 118635
Patch

Clearing flags on attachment: 118635

Committed r102510: &lt;http://trac.webkit.org/changeset/102510&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518722</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-12-09 18:27:04 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>118635</attachid>
            <date>2011-12-09 14:14:26 -0800</date>
            <delta_ts>2011-12-09 18:26:59 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-70619-20111209141424.patch</filename>
            <type>text/plain</type>
            <size>1610</size>
            <attacher name="David Levin">levin</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTAyNDczCmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggNmUxYTE4N2U0OGI0MzNhMTlmZDc5
OGFlYzgzZjk2M2RjNjk3NzFhNy4uNWNhYjczNWY0YTA4MThmNWRlZTEzY2RiOWRjNjVkZjBlN2U2
MTEwZiAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSw1ICsxLDE1IEBACiAyMDExLTEyLTA5ICBEYXZpZCBMZXZpbiAgPGxl
dmluQGNocm9taXVtLm9yZz4KIAorICAgICAgICBSRUdSRVNTSU9OIChyOTc0OTYtcjk3NDk5KTog
NiBmYXN0L3dvcmtlcnMgdGVzdHMgZmFpbGluZyBvbiBTbm93TGVvcGFyZCBJbnRlbCBSZWxlYXNl
IChUZXN0cykKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTcwNjE5CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAg
KiBwbGF0Zm9ybS9tYWMvU2tpcHBlZDogVW5za2lwIHZhcmlvdXMgd29ya2VyIHRlc3RzIGFzIHRo
ZXkgc2hvdWxkIHdvcmsKKyAgICAgICAgbm93IHRoYXQgYnVnIDcxNjk1IGlzIGZpeGVkLgorCisy
MDExLTEyLTA5ICBEYXZ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