Bug 221359 - [ Mac WK2 ] compositing/animation/keyframe-order.html is a flakey image failure
Summary: [ Mac WK2 ] compositing/animation/keyframe-order.html is a flakey image failure
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-02-03 15:10 PST by Robert Jenner
Modified: 2021-04-09 02:11 PDT (History)
6 users (show)

See Also:


Attachments
Diff Images from Image Failing test (5.32 KB, application/zip)
2021-03-15 14:09 PDT, Robert Jenner
no flags Details
Patch (1.84 KB, patch)
2021-04-08 05:54 PDT, Antoine Quint
no flags Details | Formatted Diff | Diff
Patch for landing (1.93 KB, patch)
2021-04-09 01:18 PDT, Antoine Quint
graouts: commit-queue-
Details | Formatted Diff | Diff
Patch for landing (2.17 KB, patch)
2021-04-09 01:43 PDT, Antoine Quint
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Robert Jenner 2021-02-03 15:10:47 PST
Pasted incorrect history url. 

HISTORY URL:
https://results.webkit.org/?suite=layout-tests&test=compositing%2Fanimation%2Fkeyframe-order.html&platform=mac
Comment 2 Radar WebKit Bug Importer 2021-02-03 15:11:17 PST
<rdar://problem/73951735>
Comment 3 Truitt Savell 2021-03-01 09:55:24 PST
I was able to reproduce this using command on tip of tree:

run-webkit-tests --iterations 2000 --exit-after-n-failures 1 --exit-after-n-crashes-or-timeouts 1 --debug-rwt-logging --no-retry --force --no-build -f --root /Volumes/Data/tmp/MacRelease compositing/animation/keyframe-order.html
Comment 4 Robert Jenner 2021-03-15 14:09:58 PDT
Created attachment 423236 [details]
Diff Images from Image Failing test

Attaching DIFF images from flakey image failing test.
Comment 5 Antoine Quint 2021-04-08 05:45:13 PDT
Last two failures were April 2 and March 18.
Comment 6 Antoine Quint 2021-04-08 05:45:41 PDT
I can reproduce locally:

rwt --debug --iterations=10000 --force --exit-after-n-failures=1 --no-build compositing/animation/keyframe-order.html
Comment 7 Antoine Quint 2021-04-08 05:54:58 PDT
Created attachment 425501 [details]
Patch
Comment 8 Simon Fraser (smfr) 2021-04-08 09:49:54 PDT
Comment on attachment 425501 [details]
Patch

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

> LayoutTests/compositing/animation/keyframe-order.html:57
> +                await UIHelper.ensurePresentationUpdate();

I think renderingUpdate() would be more appropriate.
Comment 9 Dean Jackson 2021-04-08 12:06:48 PDT
Comment on attachment 425501 [details]
Patch

r+ but listen to smfr
Comment 10 Antoine Quint 2021-04-08 12:13:49 PDT
(In reply to Simon Fraser (smfr) from comment #8)
> Comment on attachment 425501 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=425501&action=review
> 
> > LayoutTests/compositing/animation/keyframe-order.html:57
> > +                await UIHelper.ensurePresentationUpdate();
> 
> I think renderingUpdate() would be more appropriate.

I don't think it is actually, at least in my experience this will just ensure that animations have been updated in the Web Animations sense, but not that accelerated animations will have been committed.

I will try that route though to check.
Comment 11 Simon Fraser (smfr) 2021-04-08 12:17:39 PDT
Go look at the implementations of doAfterPresentationUpdate(). They only do anything related to rendering on iOS.
Comment 12 Antoine Quint 2021-04-09 01:18:51 PDT
Created attachment 425596 [details]
Patch for landing
Comment 13 Antoine Quint 2021-04-09 01:42:13 PDT
animation.ready + UIHelper.renderingUpdate() seem to improve things. Let's see the effect on the bots.
Comment 14 Antoine Quint 2021-04-09 01:43:11 PDT
Created attachment 425600 [details]
Patch for landing
Comment 15 EWS 2021-04-09 02:11:34 PDT
Committed r275752 (236330@main): <https://commits.webkit.org/236330@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 425600 [details].