Bug 171354 - [iOS Simulator] Flaky failure LayoutTest http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached.html
Summary: [iOS Simulator] Flaky failure LayoutTest http/tests/xmlhttprequest/access-con...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-26 16:55 PDT by Matt Lewis
Modified: 2017-05-17 12:59 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Lewis 2017-04-26 16:55:44 PDT
Test is a flaky failure:

http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached.html

History:
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fxmlhttprequest%2Faccess-control-basic-non-simple-deny-cached.html

Test results from most recent failure:

https://build.webkit.org/results/Apple%20iOS%2010%20Simulator%20Release%20WK2%20(Tests)/r215404%20(706)/results.html

diff:
--- /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached-expected.txt
+++ /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached-actual.txt
@@ -1,3 +1,2 @@
-CONSOLE MESSAGE: line 42: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-non-get-allow.cgi. Request header field Content-Type is not allowed by Access-Control-Allow-Headers.
-PASS: Exception thrown. Cross-domain access is not allowed in 'send'. [ A network error occurred.].
+PASS: Exception thrown. Cross-domain access is not allowed in 'send'. [The operation timed out.].
 

First failure in history 4/16/2017 7:09:16 PM
At Revision r215404
Comment 1 Alexey Proskuryakov 2017-04-27 17:19:22 PDT
In Apache access logs, I see three requests for the subresource.

127.0.0.1 - - [26/Apr/2017:15:54:49 -0700] "GET /xmlhttprequest/access-control-basic-non-simple-deny-cached.html HTTP/1.1" 200 1571 325
::1 - - [26/Apr/2017:15:54:49 -0700] "OPTIONS /xmlhttprequest/resources/access-control-basic-non-get-allow.cgi HTTP/1.1" 200 - 7782458
::1 - - [26/Apr/2017:15:54:57 -0700] "PUT /xmlhttprequest/resources/access-control-basic-non-get-allow.cgi HTTP/1.1" 200 58 3070087
::1 - - [26/Apr/2017:15:55:00 -0700] "OPTIONS /xmlhttprequest/resources/access-control-basic-non-get-allow.cgi HTTP/1.1" 200 - 10750080

Relevant run-webkit-tests logs:

15:54:49.643 28083 worker/7 http/tests/xmlhttprequest/access-control-basic-non-simple-allow.html passed
...
15:55:17.337 28083 "ruby -I /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/Websites/bugs.webkit.org/PrettyPatch /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/Websites/bugs.webkit.org/PrettyPatch/prettify.rb /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached-diff.txt" took 6.74s
15:55:17.352 26617 [22527/41658] http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached.html failed unexpectedly (text diff)
15:55:17.338 28083 worker/7 http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached.html failed:
15:55:17.338 28083 worker/7  text diff
Comment 2 Alexey Proskuryakov 2017-05-01 09:55:33 PDT
What's surprising here is that sync XHR shouldn't be timing out, at least not so quickly.