<?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>29341</bug_id>
          
          <creation_ts>2009-09-17 12:00:32 -0700</creation_ts>
          <short_desc>REGRESSION: fast/workers/worker-cloneport.html failing intermittently on leopard bot</short_desc>
          <delta_ts>2009-09-18 17:20:38 -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>OS X 10.5</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="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Andrew Wilson">atwilson</assigned_to>
          <cc>ap</cc>
    
    <cc>atwilson</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>147876</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-17 12:00:32 -0700</bug_when>
    <thetext>fast/workers/worker-cloneport.html failing intermittently on leopard bot

Marking as regression since it causes the tree to be red when it didn&apos;t used to be. ;)  If that&apos;s not correct, please feel free to change.

http://build.webkit.org/results/Leopard%20Intel%20Release%20(Tests)/r48479%20(5083)/results.html

--- layout-test-results/fast/workers/worker-cloneport-expected.txt	2009-09-17 11:49:57.000000000 -0700
+++ layout-test-results/fast/workers/worker-cloneport-actual.txt	2009-09-17 11:49:57.000000000 -0700
@@ -1,7 +1,7 @@
 Test MessagePort messaging/entangle/detangle across threads. Should print &quot;SUCCESS&quot; when done.
 
 PASS: Received request for 50000 messages
-PASS: postBack complete, cloned &gt; 1000 times.
+FAIL: postBack complete, but only cloned 635 times.
 SUCCESS - received 50000 messages.
 DONE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147898</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Wilson">atwilson</who>
    <bug_when>2009-09-17 12:51:26 -0700</bug_when>
    <thetext>I&apos;ll reduce this restriction - it causes problems in Chromium as well because it makes assumptions about the speed/frequency of thread scheduling which don&apos;t really hold across all platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147923</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-17 13:37:24 -0700</bug_when>
    <thetext>Looks like dedicated-worker-lifecycle.html just failed too:
http://build.webkit.org/results/Leopard%20Intel%20Release%20(Tests)/r48488%20(5093)/results.html
Not sure if that&apos;s related or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147926</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-17 13:39:50 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Looks like dedicated-worker-lifecycle.html just failed too:
&gt; http://build.webkit.org/results/Leopard%20Intel%20Release%20(Tests)/r48488%20(5093)/results.html
&gt; Not sure if that&apos;s related or not.

Filed bug 29344 about that one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148287</commentid>
    <comment_count>4</comment_count>
      <attachid>39773</attachid>
    <who name="Andrew Wilson">atwilson</who>
    <bug_when>2009-09-18 12:04:17 -0700</bug_when>
    <thetext>Created attachment 39773
proposed patch

This test is intended to check for race conditions when cloning a port while posting messages to it from another thread.

To ensure the case is adequately tested, we have some checks in place to make sure that clones are actually happening in parallel with messages being posted. The previous threshold (1000 clones) was chosen entirely arbitrarily, and turned out to be a order of magnitude too strict for some platforms (like Chromium). So I&apos;ve loosened the requirement.

I also relaxed a timeout that fires only in the test failure case, again because the latency involved in cross-process messaging in Chromium was causing it to be flaky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148303</commentid>
    <comment_count>5</comment_count>
      <attachid>39773</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-18 12:20:40 -0700</bug_when>
    <thetext>Comment on attachment 39773
proposed patch

Adding 1 second to every run of this layout test is bad news bears.  No other way besides setTimeout?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148310</commentid>
    <comment_count>6</comment_count>
    <who name="Andrew Wilson">atwilson</who>
    <bug_when>2009-09-18 12:30:45 -0700</bug_when>
    <thetext>The timeout is only triggered when the test fails, to help in debugging why the test failed. It doesn&apos;t trigger when the test passes, so increasing the timeout does not slow down our tests.

The patch includes a comment to this effect:

         // This only fires in the case of a test failure, so it does not slow down test running.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148324</commentid>
    <comment_count>7</comment_count>
      <attachid>39773</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-18 13:02:01 -0700</bug_when>
    <thetext>Comment on attachment 39773
proposed patch

Sounds good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148325</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-18 13:03:09 -0700</bug_when>
    <thetext>Thanks for taking care of this so quickly. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148407</commentid>
    <comment_count>9</comment_count>
      <attachid>39773</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-09-18 15:02:33 -0700</bug_when>
    <thetext>Comment on attachment 39773
proposed patch

Rejecting patch 39773 from commit-queue.

Failed to run &quot;[&apos;WebKitTools/Scripts/run-webkit-tests&apos;, &apos;--no-launch-safari&apos;, &apos;--quiet&apos;, &apos;--exit-after-n-failures=1&apos;]&quot; exit_code: 1
Running build-dumprendertree
Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests
Testing 11278 test cases.
fast/workers/worker-cloneport.html -&gt; failed

Exiting early after 1 failures. 8198 tests run.
154.70s total testing time

8197 test cases (99%) succeeded
1 test case (&lt;1%) had incorrect layout
3 test cases (&lt;1%) had stderr output</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148444</commentid>
    <comment_count>10</comment_count>
    <who name="Andrew Wilson">atwilson</who>
    <bug_when>2009-09-18 17:20:38 -0700</bug_when>
    <thetext>Landed as r48543</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>39773</attachid>
            <date>2009-09-18 12:04:17 -0700</date>
            <delta_ts>2009-09-18 15:02:33 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>x</filename>
            <type>text/plain</type>
            <size>2343</size>
            <attacher name="Andrew Wilson">atwilson</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCA2MzNkNjgyLi5hZDI3ZDZiIDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0cy9DaGFuZ2VM
b2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTMgQEAKKzIwMDktMDkt
MTggIERyZXcgV2lsc29uICA8YXR3aWxzb25AZ29vZ2xlLmNvbT4KKworICAgICAgICBSZXZpZXdl
ZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBSRUdSRVNTSU9OOiBmYXN0L3dvcmtlcnMv
d29ya2VyLWNsb25lcG9ydC5odG1sIGZhaWxpbmcgaW50ZXJtdHRlbnRseSBvbiBsZW9wYXJkIGJv
dAorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/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GhlIGNhc2Ugb2YgYSB0
ZXN0IGZhaWx1cmUsIHNvIGl0IGRvZXMgbm90IHNsb3cgZG93biB0ZXN0IHJ1bm5pbmcuCiAgICAg
ICAgIHZhciB0aW1lciA9IHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICBsb2co
IkZBSUxVUkU6IFJlY2VpdmVkOiAiICsgaXRlbU51bSArICIgZXZlbnRzIC0gZXhwZWN0ZWQ6ICIg
KyBudW1NZXNzYWdlcyk7Ci0gICAgICAgIH0sIDEwKTsKKyAgICAgICAgfSwgMTAwMCk7CiAgICAg
ICAgIGV2dC5wb3J0c1swXS5vbm1lc3NhZ2UgPSBmdW5jdGlvbihldmVudCkgewogICAgICAgICAg
ICAgdmFyIGRvbmUgPSBmYWxzZTsKICAgICAgICAgICAgIGlmIChldmVudC5kYXRhID09IGl0ZW1O
dW0pIHsK
</data>
<flag name="review"
          id="20902"
          type_id="1"
          status="+"
          setter="eric"
    />
    <flag name="commit-queue"
          id="20921"
          type_id="3"
          status="-"
          setter="commit-queue"
    />
          </attachment>
      

    </bug>

</bugzilla>