Bug 188911

Summary: fast/files/blob-network-process-crash.html is flaky
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: WebCore JavaScriptAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, ryanhaddad, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=188880
Attachments:
Description Flags
Fix attempt saam: review+

Ryosuke Niwa
Reported 2018-08-23 17:42:10 PDT
fast/files/blob-network-process-crash.html, the test added in https://trac.webkit.org/changeset/235243 is flaky when the timer isn't saved in the global object. This is an indicative of some bug elsewhere. Scheduling another timer seems to fix the problem as well.
Attachments
Fix attempt (2.77 KB, patch)
2018-08-23 22:28 PDT, Ryosuke Niwa
saam: review+
Ryosuke Niwa
Comment 1 2018-08-23 17:43:33 PDT
Radar WebKit Bug Importer
Comment 2 2018-08-23 17:44:18 PDT
Ryosuke Niwa
Comment 3 2018-08-23 17:45:23 PDT
Ugh... I didn't mean to close this bug.
Ryosuke Niwa
Comment 4 2018-08-23 20:37:02 PDT
Hm... the test is still flaky on bots.
Ryosuke Niwa
Comment 5 2018-08-23 20:42:36 PDT
Added the flaky test expectation in https://trac.webkit.org/changeset/235269. This is very weird. I suspect the bots are too overloaded to sanely process the crashing network process. We should probably replace this test with an API test.
Ryosuke Niwa
Comment 6 2018-08-23 22:28:58 PDT
Created attachment 347991 [details] Fix attempt
Saam Barati
Comment 7 2018-08-23 22:48:01 PDT
Comment on attachment 347991 [details] Fix attempt View in context: https://bugs.webkit.org/attachment.cgi?id=347991&action=review > LayoutTests/fast/files/blob-network-process-crash.html:17 > + setTimeout(() => testRunner.notifyDone(), 3000); Let's remove this as you said on IRC > LayoutTests/fast/files/blob-network-process-crash.html:37 > + await fetch('blob-network-process-crash.html'); Do we really need this here? Seems like we would have either crashed or not crashed at this point.
Ryosuke Niwa
Comment 8 2018-08-23 22:49:19 PDT
(In reply to Saam Barati from comment #7) > Comment on attachment 347991 [details] > Fix attempt > > View in context: > https://bugs.webkit.org/attachment.cgi?id=347991&action=review > > > LayoutTests/fast/files/blob-network-process-crash.html:17 > > + setTimeout(() => testRunner.notifyDone(), 3000); > > Let's remove this as you said on IRC Will do. > > LayoutTests/fast/files/blob-network-process-crash.html:37 > > + await fetch('blob-network-process-crash.html'); > > Do we really need this here? Seems like we would have either crashed or not > crashed at this point. This call is needed to ensure the network process had received IPC to unregister the blob since that's async.
Ryosuke Niwa
Comment 9 2018-08-23 22:51:36 PDT
Ryosuke Niwa
Comment 10 2018-08-23 22:51:54 PDT
Ryosuke Niwa
Comment 11 2018-08-24 13:12:56 PDT
The test appears to be no longer flaky. Removed the flaky test expectation in https://trac.webkit.org/changeset/235330.
Note You need to log in before you can comment on or make changes to this bug.