RESOLVED FIXED 201012
perf/clone-with-focus.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=201012
Summary perf/clone-with-focus.html is a flaky failure
Russell Epstein
Reported 2019-08-21 16:26:15 PDT
The following layout test is a flaky failure on iOS: perf/clone-with-focus.html History: https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#tests=perf%2Fclone-with-focus.html We have some failures such as: -PASS. Cloning elements takes roughly as long with as without focus. +FAIL. Cloning 1000 elements with focus took 1ms, without took 0ms. Where a difference of 1ms leads to a fail, leading to flakiness, which seems wrong given the nature of the test. Other failures (such as the provided diff) have slightly larger time differences. Spoke with Ryosuke offline, who said the following: "I think the test is written to fail when cloning with focus is twice is as slow as closing without focus. However, the issue is that the bot / WebKit has gotten fast enough that cloning without focus finishes within 0ms. So twice of that is still 0ms. We need to increase the number of cloning steps such that the measurement for cloning without focus is at least 10ms." Diff: --- /Volumes/Data/slave/ios-simulator-12-release-tests-wk2/build/layout-test-results/perf/clone-with-focus-expected.txt +++ /Volumes/Data/slave/ios-simulator-12-release-tests-wk2/build/layout-test-results/perf/clone-with-focus-actual.txt @@ -1,2 +1,2 @@ -PASS. Cloning elements takes roughly as long with as without focus. +FAIL. Cloning 1000 elements with focus took 5ms, without took 2ms.
Attachments
Fixes the test (2.92 KB, patch)
2019-08-21 17:10 PDT, Ryosuke Niwa
koivisto: review+
Radar WebKit Bug Importer
Comment 1 2019-08-21 16:26:51 PDT
Radar WebKit Bug Importer
Comment 2 2019-08-21 16:26:54 PDT
Ryosuke Niwa
Comment 3 2019-08-21 17:10:59 PDT
Created attachment 376951 [details] Fixes the test
Ryosuke Niwa
Comment 4 2019-08-21 17:11:30 PDT
Comment on attachment 376951 [details] Fixes the test View in context: https://bugs.webkit.org/attachment.cgi?id=376951&action=review > LayoutTests/perf/clone-with-focus.html:34 > + listElement.appendChild(originalItem); This makes the test run faster.
Ryosuke Niwa
Comment 5 2019-08-21 22:50:22 PDT
Thanks!
Ryosuke Niwa
Comment 6 2019-08-21 22:51:55 PDT
Note You need to log in before you can comment on or make changes to this bug.