<?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>157916</bug_id>
          
          <creation_ts>2016-05-19 13:11:47 -0700</creation_ts>
          <short_desc>http/tests/misc/slow-loading-animated-image.html is flaky on iOS simulator and Windows</short_desc>
          <delta_ts>2017-09-01 15:02:40 -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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=157500</see_also>
          <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="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>lforschler</cc>
    
    <cc>pvollan</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>sabouhallawa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1194894</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-05-19 13:11:47 -0700</bug_when>
    <thetext>http/tests/misc/slow-loading-animated-image.html fails very often on iOS Simulator, especially in debug:

http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=http%2Ftests%2Fmisc%2Fslow-loading-animated-image.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1194986</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2016-05-19 14:59:38 -0700</bug_when>
    <thetext>The animated GIF used by this tests has 48 frames. Frames (1-47) have frame-length=20ms. Frame 48 has frame-length=10s. The test relies on capturing the 48th frame which should be shown after 47*20=940ms. On the mac ports, setTimeout for 1 second was enough to ensure the 48th frame is displayed at the time the test ends. For iOS, 1 second was not enough, so I had to increase the setTimeout from 1 second to 1500ms. This seems to be not enough all the times. I checked the flakiness dashboard and I found out the number of frames, which were animated after 1500ms, was: 16, 17, 20, 22, 23, 47. So increasing the setTimeout seems not an option. We have to wait at least 4500ms to ensure the first 47 frames were already rendered and the 48th frame is displayed.

Other possible ways to fix this are the following:

1. Skip the test for iOS.
2. Add an internal API which returns the number of frames of an animated image and compare it with the actual number of frames the image has which is 48 for this test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1195056</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-05-19 17:43:03 -0700</bug_when>
    <thetext>&gt; 2. Add an internal API which returns the number of frames of an animated image and compare it with the actual number of frames the image has which is 48 for this test.

This definitely sounds better than skipping.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197789</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-05-31 09:19:08 -0700</bug_when>
    <thetext>Said, do you expect to work on this soon? The test fails on bots very frequently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1199734</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-06-06 15:32:52 -0700</bug_when>
    <thetext>Marked test as flaky in &lt;http://trac.webkit.org/projects/webkit/changeset/201731&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>