Bug 48161

Summary: Flaky Test: animations/suspend-resume-animation.html
Product: WebKit Reporter: Julie Parent <jparent>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cmarrin, commit-queue, eric, oliver, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 48451, 43905    
Attachments:
Description Flags
Failure diff from bot
none
Failure diff from bot
none
Failure diff from eseidel-cq-sl
none
Failure diff from eseidel-cq-sl
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-4
none
Failure diff from cr-jail-7
none
Failure diff from cr-jail-7
none
Failure diff from cr-jail-4
none
Failure diff from cr-jail-3
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-7
none
Failure diff from cr-jail-7
none
Failure diff from cr-jail-3
none
Failure diff from cr-jail-7
none
Failure diff from cr-jail-3
none
Failure diff from eseidel-cq-sf
none
Failure diff from cr-jail-7
none
Failure diff from cr-jail-7
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-3
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-3
none
Failure diff from cr-jail-3
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-3
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-7
none
Failure diff from cr-jail-3
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-4
none
Failure diff from cr-jail-8
none
Failure diff from cr-jail-7 none

Description Julie Parent 2010-10-22 16:40:32 PDT
Background:

This tests that suspendAnimations and resumeAnimations work properly.

It starts an animation, suspends it on setTimeout(500), and resumes it on setTimeout(1000).  To test that the suspend works, it checks the animation at .6 and .9 seconds, and then again at 1.5 seconds to test that resume worked:
      // [animation-name, time, element-id, property, expected-value, tolerance]
      ["rotate", 0.6, "box", "webkitTransform", [1,0,0,1, 200, 0], 30],
      ["rotate", 0.9, "box", "webkitTransform", [1,0,0,1, 200, 0], 30],
      ["rotate", 1.5, "box", "webkitTransform", [1,0,0,1, 400, 0], 30],

Due to the timeouts involved, this can be flaky (we are seeing it fail about 2% of the time with values of 231 and 431, 1 pixel outside the tolerance).

Rather than tweak the tolerances more, I was thinking it might make more sense to re-write the test to more explicitly test that suspend and resume work, rather than relying on the animation values.  So, something like:
At 0.6 and 0.9, rather than test for being at 200, test that the value is the same at both times (aka, it is definitely suspended), and that the value is > 0 (it did indeed start), and less < the end value (it hasn't ended).
At 1.5, rather than test for being at 400, test that the value is greater than it was at 0.6/0.9 (aka, it did resume).

Does that sound ok, or would that be losing test coverage?
Comment 1 Eric Seidel (no email) 2010-12-14 14:11:14 PST
This seems to fail often enough on the commit-queue to not get reported.  If a test fails twice in a row, it won't be reported as flaky, as the tree will be assumed to be red instead. :)
Comment 2 Eric Seidel (no email) 2010-12-14 14:11:30 PST
*** Bug 51004 has been marked as a duplicate of this bug. ***
Comment 3 Eric Seidel (no email) 2010-12-14 14:13:05 PST
Bug 43905 and bug 48451 are also probably dupes of this bug.
Comment 4 Julie Parent 2010-12-14 14:14:44 PST
I have a patch in progress to fix this class of test.  I'll try to get it finished up before heading out for the holidays.
Comment 5 WebKit Commit Bot 2010-12-16 11:04:06 PST
The commit-queue just saw animations/suspend-resume-animation.html flake while processing attachment 76747 [details] on bug 51173.
Bot: eseidel-cq-sf  Port: Mac  Platform: Mac OS X 10.6.4
Comment 6 WebKit Commit Bot 2010-12-16 11:04:09 PST
Created attachment 76789 [details]
Failure diff from bot
Comment 7 WebKit Commit Bot 2010-12-20 11:47:43 PST
The commit-queue just saw animations/suspend-resume-animation.html flake while processing attachment 77006 [details] on bug 51338.
Bot: eseidel-cq-sf  Port: Mac  Platform: Mac OS X 10.6.4
Comment 8 WebKit Commit Bot 2010-12-20 11:47:47 PST
Created attachment 77019 [details]
Failure diff from bot
Comment 9 WebKit Commit Bot 2011-01-23 14:27:22 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 79863 [details] on bug 52968.
Bot: eseidel-cq-sl  Port: Mac  Platform: Mac OS X 10.6.6
Comment 10 WebKit Commit Bot 2011-01-23 14:27:25 PST
Created attachment 79874 [details]
Failure diff from eseidel-cq-sl
Comment 11 WebKit Commit Bot 2011-01-24 16:34:57 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 79401 [details] on bug 52704.
Bot: eseidel-cq-sl  Port: Mac  Platform: Mac OS X 10.6.6
Comment 12 WebKit Commit Bot 2011-01-24 16:35:00 PST
Created attachment 79988 [details]
Failure diff from eseidel-cq-sl
Comment 13 WebKit Commit Bot 2011-01-31 19:26:19 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 80460 [details] on bug 53308.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 14 WebKit Commit Bot 2011-01-31 19:26:22 PST
Created attachment 80707 [details]
Failure diff from cr-jail-8
Comment 15 Chris Marrin 2011-02-01 15:10:56 PST
(In reply to comment #0)
> Background:
> 
> This tests that suspendAnimations and resumeAnimations work properly.
> 
> It starts an animation, suspends it on setTimeout(500), and resumes it on setTimeout(1000).  To test that the suspend works, it checks the animation at .6 and .9 seconds, and then again at 1.5 seconds to test that resume worked:
>       // [animation-name, time, element-id, property, expected-value, tolerance]
>       ["rotate", 0.6, "box", "webkitTransform", [1,0,0,1, 200, 0], 30],
>       ["rotate", 0.9, "box", "webkitTransform", [1,0,0,1, 200, 0], 30],
>       ["rotate", 1.5, "box", "webkitTransform", [1,0,0,1, 400, 0], 30],
> 
> Due to the timeouts involved, this can be flaky (we are seeing it fail about 2% of the time with values of 231 and 431, 1 pixel outside the tolerance).
> 
> Rather than tweak the tolerances more, I was thinking it might make more sense to re-write the test to more explicitly test that suspend and resume work, rather than relying on the animation values.  So, something like:
> At 0.6 and 0.9, rather than test for being at 200, test that the value is the same at both times (aka, it is definitely suspended), and that the value is > 0 (it did indeed start), and less < the end value (it hasn't ended).
> At 1.5, rather than test for being at 400, test that the value is greater than it was at 0.6/0.9 (aka, it did resume).
> 
> Does that sound ok, or would that be losing test coverage?

I generally like the concept of your idea, but I think we really need to do some range testing. Otherwise if the animation is just not working at all it would pass. So maybe your idea of repeatability coupled with a more lenient range test would give us good coverage?
Comment 16 WebKit Commit Bot 2011-02-05 02:35:40 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 81298 [details] on bug 53815.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 17 WebKit Commit Bot 2011-02-05 02:35:44 PST
Created attachment 81351 [details]
Failure diff from cr-jail-8
Comment 18 WebKit Commit Bot 2011-02-10 04:46:28 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 81928 [details] on bug 54169.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 19 WebKit Commit Bot 2011-02-10 04:46:32 PST
Created attachment 81952 [details]
Failure diff from cr-jail-8
Comment 20 WebKit Commit Bot 2011-02-11 05:23:54 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 82117 [details] on bug 54280.
Bot: cr-jail-4  Port: Mac  Platform: Mac OS X 10.6.6
Comment 21 WebKit Commit Bot 2011-02-11 05:23:57 PST
Created attachment 82124 [details]
Failure diff from cr-jail-4
Comment 22 WebKit Commit Bot 2011-02-13 11:31:45 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 82257 [details] on bug 54351.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 23 WebKit Commit Bot 2011-02-13 11:31:49 PST
Created attachment 82270 [details]
Failure diff from cr-jail-7
Comment 24 WebKit Commit Bot 2011-02-20 19:56:33 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 83118 [details] on bug 54842.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 25 WebKit Commit Bot 2011-02-20 19:56:37 PST
Created attachment 83120 [details]
Failure diff from cr-jail-7
Comment 26 WebKit Commit Bot 2011-02-21 21:50:13 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 83242 [details] on bug 54909.
Bot: cr-jail-4  Port: Mac  Platform: Mac OS X 10.6.6
Comment 27 WebKit Commit Bot 2011-02-21 21:50:16 PST
Created attachment 83268 [details]
Failure diff from cr-jail-4
Comment 28 WebKit Commit Bot 2011-02-22 21:49:38 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 83236 [details] on bug 54910.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 29 WebKit Commit Bot 2011-02-22 21:49:44 PST
Created attachment 83442 [details]
Failure diff from cr-jail-3
Comment 30 WebKit Commit Bot 2011-02-22 21:51:21 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 83303 [details] on bug 54873.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 31 WebKit Commit Bot 2011-02-22 21:51:25 PST
Created attachment 83443 [details]
Failure diff from cr-jail-8
Comment 32 Eric Seidel (no email) 2011-02-22 21:53:06 PST
https://bug-48161-attachments.webkit.org/attachment.cgi?id=83442 makes it look like there may be another race going on.
Comment 33 WebKit Commit Bot 2011-02-23 08:36:35 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 83482 [details] on bug 54953.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 34 WebKit Commit Bot 2011-02-23 08:36:38 PST
Created attachment 83485 [details]
Failure diff from cr-jail-8
Comment 35 WebKit Commit Bot 2011-02-26 06:23:28 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 83875 [details] on bug 54489.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 36 WebKit Commit Bot 2011-02-26 06:23:32 PST
Created attachment 83936 [details]
Failure diff from cr-jail-7
Comment 37 WebKit Commit Bot 2011-03-03 03:19:58 PST
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 84492 [details] on bug 55632.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 38 WebKit Commit Bot 2011-03-03 03:20:02 PST
Created attachment 84541 [details]
Failure diff from cr-jail-7
Comment 39 WebKit Commit Bot 2011-03-14 19:15:29 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 85538 [details] on bug 56052.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 40 WebKit Commit Bot 2011-03-14 19:15:33 PDT
Created attachment 85759 [details]
Failure diff from cr-jail-3
Comment 41 WebKit Commit Bot 2011-03-17 16:57:54 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 86081 [details] on bug 56580.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 42 WebKit Commit Bot 2011-03-17 16:57:58 PDT
Created attachment 86117 [details]
Failure diff from cr-jail-7
Comment 43 WebKit Commit Bot 2011-03-25 08:08:36 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 86919 [details] on bug 56263.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 44 WebKit Commit Bot 2011-03-25 08:08:39 PDT
Created attachment 86944 [details]
Failure diff from cr-jail-3
Comment 45 WebKit Commit Bot 2011-03-31 09:05:00 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 87724 [details] on bug 40239.
Bot: eseidel-cq-sf  Port: Mac  Platform: Mac OS X 10.6.4
Comment 46 WebKit Commit Bot 2011-03-31 09:05:03 PDT
Created attachment 87738 [details]
Failure diff from eseidel-cq-sf
Comment 47 WebKit Commit Bot 2011-04-01 19:34:11 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 87925 [details] on bug 57666.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 48 WebKit Commit Bot 2011-04-01 19:34:14 PDT
Created attachment 87958 [details]
Failure diff from cr-jail-7
Comment 49 WebKit Commit Bot 2011-04-06 00:56:43 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 88247 [details] on bug 40261.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 50 WebKit Commit Bot 2011-04-06 00:56:46 PDT
Created attachment 88381 [details]
Failure diff from cr-jail-7
Comment 51 WebKit Commit Bot 2011-04-06 16:02:43 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 88510 [details] on bug 57877.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 52 WebKit Commit Bot 2011-04-06 16:02:50 PDT
Created attachment 88538 [details]
Failure diff from cr-jail-8
Comment 53 WebKit Commit Bot 2011-04-07 22:59:09 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 88734 [details] on bug 58098.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 54 WebKit Commit Bot 2011-04-07 22:59:12 PDT
Created attachment 88771 [details]
Failure diff from cr-jail-8
Comment 55 WebKit Commit Bot 2011-04-14 18:03:26 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 89475 [details] on bug 58073.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 56 WebKit Commit Bot 2011-04-14 18:03:29 PDT
Created attachment 89708 [details]
Failure diff from cr-jail-3
Comment 57 WebKit Commit Bot 2011-04-17 16:20:04 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 83366 [details] on bug 54833.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 58 WebKit Commit Bot 2011-04-17 16:20:07 PDT
Created attachment 89969 [details]
Failure diff from cr-jail-8
Comment 59 WebKit Commit Bot 2011-04-18 12:14:39 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 89899 [details] on bug 58719.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 60 WebKit Commit Bot 2011-04-18 12:14:43 PDT
Created attachment 90066 [details]
Failure diff from cr-jail-3
Comment 61 WebKit Commit Bot 2011-04-20 18:26:20 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 90452 [details] on bug 59032.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 62 WebKit Commit Bot 2011-04-20 18:26:23 PDT
Created attachment 90466 [details]
Failure diff from cr-jail-3
Comment 63 WebKit Commit Bot 2011-04-28 14:11:03 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 91529 [details] on bug 58365.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 64 WebKit Commit Bot 2011-04-28 14:11:06 PDT
Created attachment 91552 [details]
Failure diff from cr-jail-8
Comment 65 WebKit Commit Bot 2011-04-28 14:21:49 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 91529 [details] on bug 58365.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 66 WebKit Commit Bot 2011-04-28 14:21:55 PDT
Created attachment 91554 [details]
Failure diff from cr-jail-3
Comment 67 Eric Seidel (no email) 2011-04-28 14:29:07 PDT
This test appears to be super-flaky.  Can we do something about it?  Or should I just skip it?
Comment 68 WebKit Commit Bot 2011-05-03 13:05:22 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 91983 [details] on bug 58703.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.7
Comment 69 WebKit Commit Bot 2011-05-03 13:05:26 PDT
Created attachment 92111 [details]
Failure diff from cr-jail-8
Comment 70 WebKit Commit Bot 2011-05-03 15:20:30 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 92074 [details] on bug 60024.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.7
Comment 71 WebKit Commit Bot 2011-05-03 15:20:35 PDT
Created attachment 92146 [details]
Failure diff from cr-jail-7
Comment 72 WebKit Commit Bot 2011-05-19 11:46:29 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 94042 [details] on bug 61089.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.7
Comment 73 WebKit Commit Bot 2011-05-19 11:46:32 PDT
Created attachment 94095 [details]
Failure diff from cr-jail-3
Comment 74 WebKit Commit Bot 2011-05-20 06:53:51 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 94069 [details] on bug 59345.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.7
Comment 75 WebKit Commit Bot 2011-05-20 06:53:55 PDT
Created attachment 94213 [details]
Failure diff from cr-jail-8
Comment 76 WebKit Commit Bot 2011-05-24 08:11:01 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 94583 [details] on bug 60827.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.7
Comment 77 WebKit Commit Bot 2011-05-24 08:11:05 PDT
Created attachment 94612 [details]
Failure diff from cr-jail-8
Comment 78 WebKit Commit Bot 2011-05-24 11:22:58 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 94617 [details] on bug 61284.
Bot: cr-jail-4  Port: Mac  Platform: Mac OS X 10.6.7
Comment 79 WebKit Commit Bot 2011-05-24 11:23:01 PDT
Created attachment 94646 [details]
Failure diff from cr-jail-4
Comment 80 WebKit Commit Bot 2011-05-25 14:45:45 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 94806 [details] on bug 61336.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.7
Comment 81 WebKit Commit Bot 2011-05-25 14:45:49 PDT
Created attachment 94865 [details]
Failure diff from cr-jail-8
Comment 82 WebKit Commit Bot 2011-05-25 21:27:06 PDT
The commit-queue just saw animations/suspend-resume-animation.html flake (Text diff mismatch) while processing attachment 94319 [details] on bug 31721.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.7
Comment 83 WebKit Commit Bot 2011-05-25 21:27:10 PDT
Created attachment 94914 [details]
Failure diff from cr-jail-7