Bug 182833

Summary: imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-* LayoutTests are flaky failures
Product: WebKit Reporter: Ryan Haddad <ryanhaddad>
Component: New BugsAssignee: Ms2ger (he/him; ⌚ UTC+1/+2) <Ms2ger>
Status: RESOLVED FIXED    
Severity: Normal CC: aboya, clopez, commit-queue, dino, ews-watchlist, jlewis3, Ms2ger, rniwa, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews100 for mac-sierra
none
Archive of layout-test-results from ews104 for mac-sierra-wk2
none
Archive of layout-test-results from ews125 for ios-simulator-wk2
none
Archive of layout-test-results from ews117 for mac-sierra
none
Patch
none
Archive of layout-test-results from ews123 for ios-simulator-wk2
none
Patch
none
Patch none

Description Ryan Haddad 2018-02-15 11:07:00 PST
The following LayoutTests are flaky failures on macOS and iOS after the tests were updated in https://trac.webkit.org/changeset/228003/webkit

imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage.html
imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html
imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=imported%2Fw3c%2Fweb-platform-tests%2F2dcontext%2Fimagebitmap%2FcreateImageBitmap

The text diffs show a test harness timeout:

--- /Volumes/Data/slave/sierra-debug-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt
+++ /Volumes/Data/slave/sierra-debug-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-actual.txt
@@ -1,52 +1,53 @@
-CONSOLE MESSAGE: line 137: Canvas area exceeds the maximum limit (width * height > 268435456).
+
+Harness Error (TIMEOUT), message = null
Comment 1 Ryan Haddad 2018-02-15 11:14:59 PST
Updated TestExpectations for macOS in https://trac.webkit.org/r228526
Comment 2 Alicia Boya García 2018-03-28 08:18:22 PDT
Same error on GTK, but more frequently.
Comment 3 Alicia Boya García 2018-03-28 13:05:05 PDT
Moved TestExpectations to base (multiplatform) file. https://trac.webkit.org/changeset/230034/webkit
Comment 4 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-13 00:22:49 PDT
*** Bug 184562 has been marked as a duplicate of this bug. ***
Comment 5 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-13 00:23:37 PDT
The problem here is that the video element sometimes doesn't load. I've been debugging, but haven't found the cause yet.
Comment 6 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-17 03:40:49 PDT
Created attachment 338096 [details]
Patch
Comment 7 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-17 03:42:13 PDT
The failure that happened at least one every hundred runs before this change, didn't occur in >1000 runs after the change.
Comment 8 EWS Watchlist 2018-04-17 04:45:03 PDT
Comment on attachment 338096 [details]
Patch

Attachment 338096 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/7342418

New failing tests:
imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub.html
Comment 9 EWS Watchlist 2018-04-17 04:45:04 PDT
Created attachment 338099 [details]
Archive of layout-test-results from ews100 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 10 EWS Watchlist 2018-04-17 04:49:06 PDT
Comment on attachment 338096 [details]
Patch

Attachment 338096 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/7342423

New failing tests:
imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub.html
Comment 11 EWS Watchlist 2018-04-17 04:49:07 PDT
Created attachment 338100 [details]
Archive of layout-test-results from ews104 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 12 EWS Watchlist 2018-04-17 05:12:35 PDT
Comment on attachment 338096 [details]
Patch

Attachment 338096 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/7342444

New failing tests:
imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html
Comment 13 EWS Watchlist 2018-04-17 05:12:36 PDT
Created attachment 338101 [details]
Archive of layout-test-results from ews125 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.4
Comment 14 EWS Watchlist 2018-04-17 05:16:57 PDT
Comment on attachment 338096 [details]
Patch

Attachment 338096 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/7342451

New failing tests:
imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub.html
Comment 15 EWS Watchlist 2018-04-17 05:16:58 PDT
Created attachment 338102 [details]
Archive of layout-test-results from ews117 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 16 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-17 06:27:19 PDT
Created attachment 338104 [details]
Patch
Comment 17 EWS Watchlist 2018-04-17 07:59:07 PDT
Comment on attachment 338104 [details]
Patch

Attachment 338104 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/7343576

New failing tests:
imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html
Comment 18 EWS Watchlist 2018-04-17 07:59:08 PDT
Created attachment 338111 [details]
Archive of layout-test-results from ews123 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews123  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.4
Comment 19 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-17 23:55:20 PDT
Created attachment 338199 [details]
Patch
Comment 20 Carlos Alberto Lopez Perez 2018-04-18 09:53:18 PDT
Comment on attachment 338199 [details]
Patch

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

> LayoutTests/imported/w3c/ChangeLog:9
> +        * web-platform-tests/2dcontext/imagebitmap/common.sub.js: ensure event handlers aren't garbage collected
> +        * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt: update expectations

Which one is the policy for updating this tests (not the expectation, but the test itself) ??
Shouldn't we send a PR to https://github.com/w3c/web-platform-tests ?
Comment 21 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-18 23:43:57 PDT
(In reply to Carlos Alberto Lopez Perez from comment #20)
> Comment on attachment 338199 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=338199&action=review
> 
> > LayoutTests/imported/w3c/ChangeLog:9
> > +        * web-platform-tests/2dcontext/imagebitmap/common.sub.js: ensure event handlers aren't garbage collected
> > +        * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt: update expectations
> 
> Which one is the policy for updating this tests (not the expectation, but
> the test itself) ??
> Shouldn't we send a PR to https://github.com/w3c/web-platform-tests ?

I will push the change upstream as soon as it has review here. (The wpt review policy just requires a review in some public place, to make this use case possible.)
Comment 22 Carlos Alberto Lopez Perez 2018-04-24 04:41:30 PDT
Comment on attachment 338199 [details]
Patch

r=me
but please submit this changes on the tests to WPT and update this bug with a comment with an URL to the corresponding pull-request or issue on the WPT github so it can be followed later easily in case of need.
Comment 23 youenn fablet 2018-04-24 07:20:01 PDT
> I will push the change upstream as soon as it has review here. (The wpt
> review policy just requires a review in some public place, to make this use
> case possible.)

You can use Tools/Scripts/export-w3c-tests for that purpose.
If this is your last commit locally, something like below should push the changes to your WPT clone:
Tools/Scripts/export-w3c-test-changes -b 182833  -g HEAD~1

Use -n to specific your GitHub username.
Use -t to specify the GitHub token that will allow the script to create the PR on WPT repo and -c to ask the script to do it.

Note that the guidelines are to first commit to WPT, then to WebKit.

At the moment, the WPT bot will probably ask for review for your PR.
ms2ger, let me know if you would like to be added to the list of authors for whose WebKit PR would be review skipped
Comment 24 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-24 07:45:14 PDT
(In reply to youenn fablet from comment #23)
> At the moment, the WPT bot will probably ask for review for your PR.
> ms2ger, let me know if you would like to be added to the list of authors for
> whose WebKit PR would be review skipped

That would be great!
Comment 25 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-25 02:12:48 PDT
Submitted web-platform-tests pull request: https://github.com/w3c/web-platform-tests/pull/10630
Comment 26 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-25 04:08:54 PDT
Comment on attachment 338199 [details]
Patch

Landed in https://github.com/w3c/web-platform-tests/pull/10630
Comment 27 WebKit Commit Bot 2018-04-25 04:09:56 PDT
Comment on attachment 338199 [details]
Patch

Rejecting attachment 338199 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'apply-attachment', '--no-update', '--non-interactive', 338199, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
ext/imagebitmap/createImageBitmap-origin.sub-expected.txt
patching file LayoutTests/platform/ios/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt
patching file LayoutTests/platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Carlos Alberto Lopez Perez']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/7445329
Comment 28 Ms2ger (he/him; ⌚ UTC+1/+2) 2018-04-25 04:24:21 PDT
Created attachment 338718 [details]
Patch
Comment 29 WebKit Commit Bot 2018-04-25 05:10:48 PDT
Comment on attachment 338718 [details]
Patch

Clearing flags on attachment: 338718

Committed r230990: <https://trac.webkit.org/changeset/230990>
Comment 30 WebKit Commit Bot 2018-04-25 05:10:50 PDT
All reviewed patches have been landed.  Closing bug.
Comment 31 Radar WebKit Bug Importer 2018-04-25 05:11:38 PDT
<rdar://problem/39718220>
Comment 32 youenn fablet 2018-05-11 05:36:30 PDT
(In reply to Ms2ger from comment #24)
> (In reply to youenn fablet from comment #23)
> > At the moment, the WPT bot will probably ask for review for your PR.
> > ms2ger, let me know if you would like to be added to the list of authors for
> > whose WebKit PR would be review skipped
> 
> That would be great!

Submitted https://github.com/web-platform-tests/wpt-pr-bot/pull/18