<?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>206615</bug_id>
          
          <creation_ts>2020-01-22 15:13:19 -0800</creation_ts>
          <short_desc>REGRESSION: [ Mac WK2 ] animations/suspend-resume-animation-events.html is a flaky failure</short_desc>
          <delta_ts>2020-01-25 12:07:25 -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>Animations</component>
          <version>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jacob Uphoff">jacob_uphoff</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>dino</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>tsavell</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1609769</commentid>
    <comment_count>0</comment_count>
    <who name="Jacob Uphoff">jacob_uphoff</who>
    <bug_when>2020-01-22 15:13:19 -0800</bug_when>
    <thetext>This is a flakey failure on Mac wk2

I did not try to reproduce, however failure goes back as far as I can see the history.

History: 

https://results.webkit.org/?suite=layout-tests&amp;test=animations%2Fsuspend-resume-animation-events.html

Diff: 

--- /Volumes/Data/slave/catalina-release-tests-wk2/build/layout-test-results/animations/suspend-resume-animation-events-expected.txt
+++ /Volumes/Data/slave/catalina-release-tests-wk2/build/layout-test-results/animations/suspend-resume-animation-events-actual.txt
@@ -4,5 +4,4 @@
 
 start animation move
 iteration animation move
-end animation move</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609798</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-22 15:44:27 -0800</bug_when>
    <thetext>&lt;rdar://problem/58814195&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609799</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-22 15:44:27 -0800</bug_when>
    <thetext>&lt;rdar://problem/58814196&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1610162</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-01-23 10:03:49 -0800</bug_when>
    <thetext>This became very frequent starting on 1/7/2020, around seemingly unrelated commit r254181.

Maybe this commit adding animations logging could be related?
Add some more Animations logging
​https://bugs.webkit.org/show_bug.cgi?id=205890
https://trac.webkit.org/changeset/254177/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611033</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-01-25 06:55:38 -0800</bug_when>
    <thetext>This test is inherently racy and timing-dependent. If the 350ms timeout fires too soon, we would move on to the next test without seeing the end of the animation. I think we can make it much less racy by having each timer set the subsequent one instead of setting all three timers at once. I’ll try that, but no easy way to test if it worked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611034</commentid>
    <comment_count>5</comment_count>
      <attachid>388773</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-01-25 06:58:07 -0800</bug_when>
    <thetext>Created attachment 388773
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611088</commentid>
    <comment_count>6</comment_count>
      <attachid>388773</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-25 11:54:59 -0800</bug_when>
    <thetext>Comment on attachment 388773
Patch

The change looks harmless with regards to what this tests check for, and likely beneficial for test reliability. However, I do not understand what is wrong with the test as is. 

The animation starts before any setTimeouts, and is shorter. Wouldn’t it be an actual WebKit bug if there is raciness?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611089</commentid>
    <comment_count>7</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-01-25 11:58:41 -0800</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #6)
&gt; The animation starts before any setTimeouts, and is shorter. Wouldn’t it be
&gt; an actual WebKit bug if there is raciness?

As far as I know, WebKit does not attempt to have a single unified timeline between JavaScript timers and webpage animation. Unless there’s something I’m not aware of. Could be a neat feature and might help webpages work more reliably. Not sure I’d call it a &quot;bug&quot; exactly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611093</commentid>
    <comment_count>8</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-01-25 12:05:13 -0800</bug_when>
    <thetext>I’m going to land this change, even though I’m not sure it will eliminate the flakiness. If this attempt fails then we might need to find another way to write the test.

And I think it’s exciting to contemplate an architecture change where we unify JavaScript timers with animation timing and possibly even other time bases that affect web pages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611094</commentid>
    <comment_count>9</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-01-25 12:07:25 -0800</bug_when>
    <thetext>Committed r255124: &lt;https://trac.webkit.org/changeset/255124&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>388773</attachid>
            <date>2020-01-25 06:58:07 -0800</date>
            <delta_ts>2020-01-25 11:54:59 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-206615-20200125065801.patch</filename>
            <type>text/plain</type>
            <size>2258</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjU1MTE2CmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggNzZjNTViNTA4ZmJlMzQ1YzQ3OTMw
YmU4Y2Q1OWJhZTkxYTUxNjgzMS4uZjVjZWJkN2U2ZTE3MWE1MjM4ZTljYzcyYmUyZjUyYTNkMmVk
MjlmOCAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIEBACisyMDIwLTAxLTI1ICBEYXJpbiBBZGxlciAgPGRh
cmluQGFwcGxlLmNvbT4KKworICAgICAgICBSRUdSRVNTSU9OOiBbIE1hYyBXSzIgXSBhbmltYXRp
b25zL3N1c3BlbmQtcmVzdW1lLWFuaW1hdGlvbi1ldmVudHMuaHRtbCBpcyBhIGZsYWt5IGZhaWx1
cmUKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTIwNjYx
NQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogYW5p
bWF0aW9ucy9zdXNwZW5kLXJlc3VtZS1hbmltYXRpb24tZXZlbnRzLmh0bWw6IE1ha2UgdGVzdCBz
bGlnaHRseSBsZXNzIHRpbWluZworICAgICAgICBkZXBlbmRlbnQuCisKIDIwMjAtMDEtMjQgIFJ5
b3N1a2UgTml3YSAgPHJuaXdhQHdlYmtpdC5vcmc+CiAKICAgICAgICAgW2lPU10gUkVHUkVTU0lP
TihyMjU0Njk5KSA6IGZhc3QvZm9ybXMvaW50ZXJhY3RpdmUtdmFsaWRhdGlvbi1yZW1vdmUtbm9k
ZS1pbi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0UnVubmVyKQorICAgICAgICAgICAgICAgIHRlc3RS
dW5uZXIubm90aWZ5RG9uZSgpOworICAgICAgICB9LCAyNTApOwogICAgIH0KLSAgICAKKwogICAg
IGZ1bmN0aW9uIHN0YXJ0VGVzdCgpCiAgICAgewogICAgICAgICBpZiAod2luZG93LnRlc3RSdW5u
ZXIpIHsKICAgICAgICAgICAgIHRlc3RSdW5uZXIuZHVtcEFzVGV4dCgpOwogICAgICAgICAgICAg
dGVzdFJ1bm5lci53YWl0VW50aWxEb25lKCk7CiAgICAgICAgIH0KLSAgICAgICAgCisKICAgICAg
ICAgc2V0VGltZW91dChzdXNwZW5kLCA0MCk7Ci0gICAgICAgIHNldFRpbWVvdXQocmVzdW1lLCAx
MDApOwotICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uKCkKLSAgICAgICAgewotICAgICAgICAg
ICAgaWYgKHdpbmRvdy50ZXN0UnVubmVyKQotICAgICAgICAgICAgICAgIHRlc3RSdW5uZXIubm90
aWZ5RG9uZSgpOwotICAgICAgICB9LCAzNTApOwogICAgIH0KLSAgICAKKwogICAgIGZ1bmN0aW9u
IGxvZ0V2ZW50KGUsIHBoYXNlKQogICAgIHsKICAgICAgICAgdmFyIGxvZyA9IGRvY3VtZW50Lmdl
dEVsZW1lbnRCeUlkKCdsb2cnKTsKICAgICAgICAgbG9nLmlubmVySFRNTCA9IGxvZy5pbm5lckhU
TUwgKyBwaGFzZSArICcgYW5pbWF0aW9uICcgKyBlLmFuaW1hdGlvbk5hbWUgKyAnPGJyPic7CiAg
ICAgfQotCiAgICAgCiAgIDwvc2NyaXB0PgogPC9oZWFkPgo=
</data>
<flag name="review"
          id="404486"
          type_id="1"
          status="+"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>