Bug 228604 - [ iOS ] 2 http/tests/cookies/same-site tests are flaky timing out
Summary: [ iOS ] 2 http/tests/cookies/same-site tests are flaky timing out
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-07-29 13:38 PDT by ayumi_kojima
Modified: 2021-07-29 14:56 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 ayumi_kojima 2021-07-29 13:38:44 PDT
http/tests/cookies/same-site/fetch-in-cross-origin-service-worker.html
http/tests/cookies/same-site/fetch-in-same-origin-service-worker.html

Are flaky timing out on iOS 14 E Simulator.

History: https://results.webkit.org/?suite=layout-tests&suite=layout-tests&test=http%2Ftests%2Fcookies%2Fsame-site%2Ffetch-in-cross-origin-service-worker.html&test=http%2Ftests%2Fcookies%2Fsame-site%2Ffetch-in-same-origin-service-worker.html&platform=ios

Diff: 

--- /Volumes/Data/worker/ipados-simulator-14-release-tests-wk2/build/layout-test-results/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt
+++ /Volumes/Data/worker/ipados-simulator-14-release-tests-wk2/build/layout-test-results/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-actual.txt
@@ -1,25 +1,4 @@
+#PID UNRESPONSIVE - WebKitTestRunnerApp (pid 73289)
+FAIL: Timed out waiting for notifyDone to be called
 
-
---------
-Frame: '<!--frame1-->'
---------
-Tests that Same-Site cookies for 127.0.0.1 are not sent with a request initiated from an iframe- and processed by a service worker- with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-PASS Has cookie "implicit-strict" with value 10.
-PASS Has cookie "strict-because-invalid-SameSite-value" with value 10.
-PASS Do not have cookie "lax".
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
-PASS Do not have DOM cookie "lax".
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
+#EOF
Comment 1 Radar WebKit Bug Importer 2021-07-29 13:39:32 PDT
<rdar://problem/81288502>
Comment 2 ayumi_kojima 2021-07-29 13:50:59 PDT
I was able to reproduce the timeout (no diff) at TOT and at r265027 (oldest spade available) on debug on iOS 15 simulator on my local machine using: 
run-webkit-tests --iterations 500 --exit-after-n-failures 2 --exit-after-n-crashes-or-timeouts 2 --ios-simulator --debug http/tests/cookies/same-site/fetch-in-cross-origin-service-worker.html

I was not able to reproduce the time out on release using: 

run-webkit-tests --iterations 1000 --exit-after-n-failures 2 --exit-after-n-crashes-or-timeouts 2 --ios-simulator http/tests/cookies/same-site/fetch-in-cross-origin-service-worker.html
Comment 3 ayumi_kojima 2021-07-29 14:01:26 PDT
Marked test as slow https://trac.webkit.org/changeset/280447/webkit
Comment 4 ayumi_kojima 2021-07-29 14:56:13 PDT
Marked test [ Pass Timeout ] instead of [ Slow ]: https://trac.webkit.org/changeset/280450/webkit