Bug 191211

Summary: REGRESSION (r237735?): [ MacOS WK2 ] Layout Test http/tests/resourceLoadStatistics/remove-blocking-in-redirect.html is a flaky timeout
Product: WebKit Reporter: Truitt Savell <tsavell>
Component: Tools / TestsAssignee: John Wilander <wilander>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, cdumez, commit-queue, jlewis3, lforschler, ryanhaddad, webkit-bug-importer, wilander
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Truitt Savell 2018-11-02 14:27:51 PDT
The following layout test is flaky on MacOS WK2

http/tests/resourceLoadStatistics/remove-blocking-in-redirect.html

Probable cause:

This test has been slightly flakey for a while, within the last few revisions it has become significantly flakey. r237735 is around where this increased flakiness began. 

Flakiness Dashboard:

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2FresourceLoadStatistics%2Fremove-blocking-in-redirect.html
Comment 1 Truitt Savell 2018-11-02 15:39:04 PDT
looks like this issue came from https://trac.webkit.org/changeset/237735/webkit
Comment 2 Chris Dumez 2018-11-02 15:48:44 PDT
http/tests/resourceLoadStatistics/remove-blocking-in-redirect.html is indeed impacted by r237735 as the test navigates from origin A to origin B and then back to A. We are now using the same process both both loads of origin A instead of 2 separate processes.

That said, my change only impacted the timing of things by reusing an existing process instead of spinning up a fresh new one. 

The test was already flaky so patches impacting timing can definitely make flaky tests more or less flaky. That said, the issue is not with r237735 but rather with the test being flaky in the first place.
Comment 3 Radar WebKit Bug Importer 2018-11-05 13:44:51 PST
<rdar://problem/45818606>
Comment 4 John Wilander 2019-01-14 16:16:54 PST
Created attachment 359094 [details]
Patch
Comment 5 John Wilander 2019-01-14 16:17:37 PST
Uploaded an attempt to address the flakiness.
Comment 6 John Wilander 2019-01-14 16:48:22 PST
mac-wk2 failing tests are unrelated.
Comment 7 John Wilander 2019-01-14 17:13:45 PST
Created attachment 359100 [details]
Patch for landing
Comment 8 WebKit Commit Bot 2019-01-14 17:51:20 PST
Comment on attachment 359100 [details]
Patch for landing

Clearing flags on attachment: 359100

Committed r239966: <https://trac.webkit.org/changeset/239966>
Comment 9 WebKit Commit Bot 2019-01-14 17:51:21 PST
All reviewed patches have been landed.  Closing bug.
Comment 10 John Wilander 2019-01-15 10:55:20 PST
I just had a look at the flakiness dashboard and the test has improved significantly after the change.