Bug 212218

Summary: REGRESSION (r261277): [ Mac iOS ] webrtc/datachannel/gather-candidates-networkprocess-crash.html is a flaky timeout
Product: WebKit Reporter: Truitt Savell <tsavell>
Component: New BugsAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, mjs, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Truitt Savell 2020-05-21 09:31:14 PDT
webrtc/datachannel/gather-candidates-networkprocess-crash.html

This test began timing out recently

History:
https://results.webkit.org/?suite=layout-tests&test=webrtc%2Fdatachannel%2Fgather-candidates-networkprocess-crash.html

I am able to reproduce the timeout with command:
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 webrtc/datachannel/gather-candidates-networkprocess-crash.html

I am working to bisect this now.
Comment 1 Radar WebKit Bug Importer 2020-05-21 09:31:31 PDT
<rdar://problem/63496692>
Comment 2 Truitt Savell 2020-05-21 09:51:31 PDT
it looks like this was caused by the changes in https://trac.webkit.org/changeset/261277/webkit

I am able to reproduce on 261277 but not 261276
Comment 3 Truitt Savell 2020-05-21 10:01:16 PDT
marking this test as a flaky timeout while it is investigated: https://trac.webkit.org/changeset/262010/webkit
Comment 4 youenn fablet 2020-05-25 02:45:46 PDT
There is a slight moment in time where the socket factory has no connection due to a crash in network process.
In that case, the factory will ask for a new connection to network process and in the meantime will fail the socket creations.
We do not want to do callOnMainThreadAndWait as this might deadlock the web process in that case.

The current approach is fine as is as the socket could have been created a few seconds before and would have been closed by network process crash.
I'll update the test to make it more robust.
Comment 5 youenn fablet 2020-05-25 05:16:39 PDT
Created attachment 400195 [details]
Patch
Comment 6 Maciej Stachowiak 2020-05-25 15:37:59 PDT
Was the patch meant to be flagged for review?
Comment 7 EWS 2020-05-27 00:48:22 PDT
Committed r262183: <https://trac.webkit.org/changeset/262183>

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