RESOLVED FIXED 192810
REGRESSION: [iOS] API test TestWebKitAPI._WKDownload.OriginatingWebView is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=192810
Summary REGRESSION: [iOS] API test TestWebKitAPI._WKDownload.OriginatingWebView is a ...
Ryan Haddad
Reported 2018-12-18 09:31:27 PST
The following API test appears to be a flaky failure on iOS bots: TestWebKitAPI._WKDownload.OriginatingWebView /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/Download.mm:261 Value of: !([download originatingWebView]) Actual: false Expected: true https://build.webkit.org/builders/Apple%20iOS%2012%20Simulator%20Release%20WK2%20(Tests)/builds/1607/steps/run-api-tests/logs/stdio
Attachments
Patch (3.10 KB, patch)
2018-12-18 14:45 PST, David Quesada
achristensen: review+
achristensen: commit-queue-
Patch for landing (3.07 KB, patch)
2018-12-18 15:21 PST, David Quesada
no flags
Radar WebKit Bug Importer
Comment 1 2018-12-18 09:38:40 PST
Ryan Haddad
Comment 2 2018-12-18 09:47:16 PST
It failed about 50% of the time for me locally when I ran: run-api-tests --debug --ios-simulator _WKDownload.OriginatingWebView
David Quesada
Comment 3 2018-12-18 14:39:19 PST
When I see this fail, it doesn't appear that the originatingWebView has any remaining strong references, but is in the autorelease pool, likely as a result of handling other messages that have been sent to the UI process while the test has run. The test seems to pass (I've hit at least 20 successes in a row, compared to 3/10 successes without any changes) if I defer checking the originatingWebView to the next turn of the runloop. Patch coming up.
David Quesada
Comment 4 2018-12-18 14:45:41 PST
Alex Christensen
Comment 5 2018-12-18 15:13:56 PST
Comment on attachment 357614 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=357614&action=review > Tools/TestWebKitAPI/Tests/WebKitCocoa/Download.mm:260 > + WTF::callOnMainThread([retainedDownload = RetainPtr<_WKDownload> { download }] { [download = retainPtr(download)]
David Quesada
Comment 6 2018-12-18 15:21:29 PST
Created attachment 357621 [details] Patch for landing
WebKit Commit Bot
Comment 7 2018-12-18 15:59:43 PST
Comment on attachment 357621 [details] Patch for landing Clearing flags on attachment: 357621 Committed r239359: <https://trac.webkit.org/changeset/239359>
WebKit Commit Bot
Comment 8 2018-12-18 15:59:44 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.