<?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>92231</bug_id>
          
          <creation_ts>2012-07-25 02:38:00 -0700</creation_ts>
          <short_desc>[Qt][WK2] REGRESSION(r123583): Removing a test made 88 tests flakey</short_desc>
          <delta_ts>2012-11-06 22:40:08 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>101353</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>79666</blocked>
    
    <blocked>92111</blocked>
    
    <blocked>96861</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Csaba Osztrogonác">ossy</assigned_to>
          <cc>dbates</cc>
    
    <cc>gustavo</cc>
    
    <cc>hausmann</cc>
    
    <cc>kbalazs</cc>
    
    <cc>ossy</cc>
    
    <cc>xan.lopez</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>677839</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-07-25 02:38:00 -0700</bug_when>
    <thetext>I have no idead how is it possible, but it must be a serious bug somewhere in Qt-WK2 port.

r123582 -  22 flakes - http://build.webkit.sed.hu/builders/x86-64%20Linux%20Qt%20Release%20WebKit2%20%28Amazon%20EC2%29/builds/6482
r123584 - 110 flakes - http://build.webkit.sed.hu/builders/x86-64%20Linux%20Qt%20Release%20WebKit2%20%28Amazon%20EC2%29/builds/6483</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>677875</commentid>
    <comment_count>1</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-07-25 03:49:05 -0700</bug_when>
    <thetext>From little experience gained from poking around the Gtk&apos;s implementation, I think the EventSenderProxy lacks a method that would reset all the members to their default values before each test is run. Currently the EventSenderProxy is created at TestController initialization and just reused for every test without being reset.

Looking through the Qt&apos;s implementation I can see a problem occurring if two subsequent tests happen to click with the same button in the exact same location with not enough timespan between them - this would generate a double click in the second test instead of a simple click. Other similar problems can occur due to no resetting of the EventSenderProxy state.

I&apos;m not saying that&apos;s exactly the problem nor do I have any evidence of this actually happening and causing increase in flaky tests. It just seems to me this might be the most possible explanation to the problem due to the flakiness and the fact this started occurring after a test utilizing the EventSender was removed from the test run.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>678164</commentid>
    <comment_count>2</comment_count>
      <attachid>154378</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-07-25 09:48:51 -0700</bug_when>
    <thetext>Created attachment 154378
Patch

Thanks for the idea, I tried to reinstantiate EventSenderProxy between each tests, and it works for me. Maybe there is simpler solution, but I don&apos;t know ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>678329</commentid>
    <comment_count>3</comment_count>
      <attachid>154378</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2012-07-25 12:17:57 -0700</bug_when>
    <thetext>Comment on attachment 154378
Patch

Attachment 154378 did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/13339346</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>678506</commentid>
    <comment_count>4</comment_count>
      <attachid>154378</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2012-07-25 14:53:33 -0700</bug_when>
    <thetext>Comment on attachment 154378
Patch

Attachment 154378 did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/13339395</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>679343</commentid>
    <comment_count>5</comment_count>
      <attachid>154378</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-07-26 08:04:04 -0700</bug_when>
    <thetext>Comment on attachment 154378
Patch

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

&gt; Tools/WebKitTestRunner/TestController.cpp:432
&gt; +    if (m_eventSenderProxy)
&gt; +        delete m_eventSenderProxy;

You don&apos;t need to check m_eventSenderProxy for being non-null before deleting it. delete 0 is fine :)

However I don&apos;t think this approach is quite right. It _seems_ the cause is the event queues in the event sender proxy, which is something only non-mac ports &quot;suffer&quot; from.

Either our approach of leapForward should be imlemented differently (can we specify time stamps in the events like mac?) or perhaps we are missing some sort of reset() call here in resetStateToConsistentValues() that clears the queue and has a comment explaining why. Deleting and re-creating the event sender proxy is just hiding the real problem IMHO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>721437</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-09-15 08:01:06 -0700</bug_when>
    <thetext>There are many notifydone-timeout test (and pass after retry) because of 
this bug. Unfortunately https://trac.webkit.org/changeset/128395 increased
the notifydone timeout from 6 seconds to 30 seconds. It slowed down the
testing time from 15.5 minutes to 23.5 minutes.

I&apos;m back to fix this bug, runtime is good for me, but there are still
4-5 fails (not flakey, fail), so it seems reseting of some members of
EventSenderProxy are still missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727533</commentid>
    <comment_count>7</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-09-25 05:24:06 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/129486 unskipped a bunch of tests,
and this bug became hidden again. :-/ But I&apos;m going to fix once I
have a day when folks don&apos;t break everything at least 5-10 times.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>760407</commentid>
    <comment_count>8</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-11-06 22:40:08 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 101353 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>154378</attachid>
            <date>2012-07-25 09:48:51 -0700</date>
            <delta_ts>2012-07-26 08:04:03 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-92231-20120725184840.patch</filename>
            <type>text/plain</type>
            <size>1412</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTIzNjI1CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggNzgwYTc0NWNiNWU0ZGY4ODFkN2Y2NDk4YjY3NjNhMTE5
YzZkYjJkNC4uY2FjZDZjZDhhN2ZjZThmMzA0NDZlMDU3MTllZDRjYTFjNmJiMjhiYyAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEz
IEBACisyMDEyLTA3LTI1ICBDc2FiYSBPc3p0cm9nb27DoWMgIDxvc3N5QHdlYmtpdC5vcmc+CisK
KyAgICAgICAgW1F0XVtXSzJdIFJFR1JFU1NJT04ocjEyMzU4Myk6IFJlbW92aW5nIGEgdGVzdCBt
YWRlIDg4IHRlc3RzIGZsYWtleQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93
X2J1Zy5jZ2k/aWQ9OTIyMzEKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4K
KworICAgICAgICAqIFdlYktpdFRlc3RSdW5uZXIvVGVzdEN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isKICAgICBtX2JlZm9yZVVubG9hZFJldHVyblZhbHVlID0g
dHJ1ZTsKIAogICAgIFdLUmV0YWluUHRyPFdLU3RyaW5nUmVmPiBtZXNzYWdlTmFtZSA9IGFkb3B0
V0soV0tTdHJpbmdDcmVhdGVXaXRoVVRGOENTdHJpbmcoIlJlc2V0IikpOwo=
</data>
<flag name="review"
          id="163575"
          type_id="1"
          status="-"
          setter="hausmann"
    />
    <flag name="commit-queue"
          id="163622"
          type_id="3"
          status="-"
          setter="gyuyoung.kim"
    />
          </attachment>
      

    </bug>

</bugzilla>