Bug 168129 - LayoutTest workers/sab/postMessage-clones.html is a flaky failure
Summary: LayoutTest workers/sab/postMessage-clones.html is a flaky failure
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-10 10:30 PST by Ryan Haddad
Modified: 2017-02-28 13:56 PST (History)
3 users (show)

See Also:


Attachments
proposed fix (2.47 KB, patch)
2017-02-27 20:18 PST, Alexey Proskuryakov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Haddad 2017-02-10 10:30:52 PST
LayoutTest workers/sab/postMessage-clones.html is a flaky failure

https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK2%20(Tests)/r212114%20(10957)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=workers%2Fsab%2FpostMessage-clones.html

--- /Volumes/Data/slave/elcapitan-debug-tests-wk2/build/layout-test-results/workers/sab/postMessage-clones-expected.txt
+++ /Volumes/Data/slave/elcapitan-debug-tests-wk2/build/layout-test-results/workers/sab/postMessage-clones-actual.txt
@@ -3,11 +3,11 @@
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS successfullyParsed is true
-
-TEST COMPLETE
 PASS memory[0] is 42
 PASS otherMemory[0] is 0
 PASS memory[0] is 42
 PASS otherMemory[0] is 43
+PASS successfullyParsed is true
 
+TEST COMPLETE
+
Comment 1 Ryan Haddad 2017-02-10 10:45:42 PST
This is a new test added with https://trac.webkit.org/changeset/212035
Comment 2 Filip Pizlo 2017-02-10 11:11:50 PST
Darn, that means I did a bad job writing the test.
Comment 3 Filip Pizlo 2017-02-10 12:36:13 PST
I think I fixed it in https://trac.webkit.org/changeset/212132.
Comment 4 Ryan Haddad 2017-02-15 20:56:04 PST
It appears that this test is still a flaky failure.

https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK2%20(Tests)/builds/13234
Comment 5 Alexey Proskuryakov 2017-02-27 20:18:20 PST
Created attachment 302918 [details]
proposed fix

This is actually straightforward. Two issues:

1. waitUntilDone cannot be used in js-tests. This is very clear if you look at js-test-post.js. This is why expected test results look wrong, you don't want TEST COMPLETE to be printed out before the test is complete

2. Even with setTimeout, the test races with HTML parser. To avoid the race, the test could use onload instead of a zero delay timer. But that's not necessary once #1 is fixed.

While at it, also updated doctype to HTML5, and migrated to js-test.js, which are both inconsequential changes.
Comment 6 Alexey Proskuryakov 2017-02-27 21:56:37 PST
Filed bug 168961 about many more tests that mouse waiUntilDone.
Comment 7 WebKit Commit Bot 2017-02-28 13:56:31 PST
Comment on attachment 302918 [details]
proposed fix

Clearing flags on attachment: 302918

Committed r213174: <http://trac.webkit.org/changeset/213174>
Comment 8 WebKit Commit Bot 2017-02-28 13:56:35 PST
All reviewed patches have been landed.  Closing bug.