Bug 225665 - [ BigSur Release wk2 arm64 & iOS] http/tests/appcache/fail-on-update-2.html (layout-test) is a flaky timeout
Summary: [ BigSur Release wk2 arm64 & iOS] http/tests/appcache/fail-on-update-2.html (...
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: InRadar
Depends on:
Blocks:
 
Reported: 2021-05-11 11:21 PDT by Robert Jenner
Modified: 2022-02-15 17:19 PST (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 Robert Jenner 2021-05-11 11:21:32 PDT
http/tests/appcache/fail-on-update-2.html

is a flaky timeout on BigSur Release wk2 on Apple Silicon Macs only. 

HISTORY:
https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Fappcache%2Ffail-on-update-2.html

TIMEOUT TEXT:
-SUCCESS: No crash.
+#PID UNRESPONSIVE - WebKitTestRunner (pid 21811)
+FAIL: Timed out waiting for notifyDone to be called
+
+#EOF
+#EOF


STDERR TEXT:
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: Application Cache manifest could not be fetched, because the manifest had a 404 response.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: Application Cache manifest could not be fetched, because the manifest had a 404 response.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: Application Cache manifest could not be fetched, because the manifest had a 404 response.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: Application Cache manifest could not be fetched, because the manifest had a 404 response.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: Application Cache manifest could not be fetched, because the manifest had a 404 response.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: Application Cache manifest could not be fetched, because the manifest had a 404 response.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: Application Cache manifest could not be fetched, because the manifest had a 404 response.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: Application Cache manifest could not be fetched, because the manifest had a 404 response.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
CONSOLE MESSAGE: Application Cache manifest could not be fetched, because the manifest had a 404 response.
CONSOLE MESSAGE: ApplicationCache is deprecated. Please use ServiceWorkers instead.
Wait on notifyDone timed out, process WebKitTestRunner pid = 21811#EOF
Comment 1 Robert Jenner 2021-05-11 13:46:26 PDT
There were some consistent timeouts on Intel Macs. But they stopped, and haven't occurred for over a month. I did attempt to reproduce it at BigSur Release ToT wk1, but was unable to. It doesn't appear this test is having a problem on Intel anymore, only Apple Silicon. 

Since this appears to only occur on Apple Silicon, I can't reproduce the timeout, as I don't have access to said system type. 

I have gone ahead and updated the test expectations to Pass Timeout here:
https://trac.webkit.org/changeset/277339/webkit
Comment 2 Radar WebKit Bug Importer 2021-05-11 13:52:21 PDT
<rdar://problem/77861895>
Comment 3 Robert Jenner 2021-05-12 17:05:19 PDT
As it turns out, there is an expectation set for this test in: sources/OpenSource/LayoutTests/TestExpectations

The expectation is set as:
[ DumpJSConsoleLogInStdErr ]

That expectation is set to hide the deprecation error from the stdout, and puts it as a stderr instead. When I updated my expectation it over-rode that and caused constant text failures. 

Updated test expectations to DumpJSConsoleLogInStdErr Slow here:
https://trac.webkit.org/changeset/277410/webkit

This should stop the constant text failures, and help confirm if these timeouts are actual timeouts, or just a test being slow.
Comment 4 Robert Jenner 2021-05-13 17:49:51 PDT
After marking the test is slow, it appears to have actually gotten significantly faster. 

Before marking as slow, the test would take anywhere between 3 to 19 seconds to pass, and would timeout at roughly one minute. Since marking as slow, the test has been passing only taking between .86 seconds and 3.26 seconds for the test to run and pass. I know we also were looking at the ram usage on this particular Mac mini, and found at the time that it was using approx. 10 gigs of its ram. We have addressed this issue, and the test is no longer timing out.
Comment 5 ayumi_kojima 2021-07-21 09:18:53 PDT
The same flaky timeout is seen on iOS 14 E Simulator wk2. 

I was not able to reproduce the timeout on simulator (iOS 15) on my local machine using run-webkit-tests --ios-simulator --iterations 500  --exit-after-n-crashes-or-timeouts 1 --exit-after-n-failures 1 http/tests/appcache/fail-on-update-2.html -f --release --no-build --clobber-old-results

The flaky timeout on iOS is seen since 5/6/21 (No test results are available on iOS before 5/6/21)
Comment 6 ayumi_kojima 2021-07-21 10:32:42 PDT
Updated test expectations for ios-wk2 https://trac.webkit.org/changeset/280148/webkit
Comment 7 Eric Hutchison 2021-11-04 09:47:19 PDT
Test is still flaking on iOS15; marking as timeout. https://trac.webkit.org/changeset/285266/webkit