Bug 231612

Summary: [ iOS ] imported/blink/fast/dom/importNode-cdata.html is a flaky timeout
Product: WebKit Reporter: ayumi_kojima
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: aestes, cdumez, koivisto, thorton, webkit-bot-watchers-bugzilla, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: Unspecified   

Description ayumi_kojima 2021-10-12 13:59:47 PDT
imported/blink/fast/dom/importNode-cdata.html

Is a flaky timeout on iOS 15.

History: https://results.webkit.org/?suite=layout-tests&test=imported%2Fblink%2Ffast%2Fdom%2FimportNode-cdata.html

Result page: https://build.webkit.org/results/Apple-iOS-15-Simulator-Release-WK2-Tests/r283979%20(142)/results.html#

No diff.
Comment 1 Radar WebKit Bug Importer 2021-10-12 14:00:27 PDT
<rdar://problem/84165206>
Comment 2 ayumi_kojima 2021-10-12 14:08:20 PDT
Marked test expectations https://trac.webkit.org/changeset/284027/webkit
Comment 3 ayumi_kojima 2021-10-15 16:13:11 PDT
I was not able to reproduce the failure locally o iOS 15 simulator using run-webkit-tests --force --ios-simulator --iterations 500 --exit-after-n-crashes-or-timeouts 1 imported/blink/fast/dom/importNode-cdata.html
Comment 4 Chris Dumez 2021-10-19 11:02:20 PDT
The test isn't even asynchronous. It is a pretty simple test that runs all its logic synchronously (no need for calling notifyDone).
Comment 5 Chris Dumez 2022-03-07 08:57:40 PST
It seems it isn't just this test. When this test times out on the iOS bot, about 50 other editing tests (e.g. editing/pasteboard/19644-1.html) also time out.
Comment 6 Chris Dumez 2022-03-07 08:58:49 PST
The tests seem to have the following logging on stderr which could be related:

objc[83889]: Class _PathPoint is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x121604a78) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x136f028b0). One of the two will be used. Which one is undefined.
objc[83889]: Class _PointQueue is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x121604a50) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x136f028d8). One of the two will be used. Which one is undefined.
Comment 7 Wenson Hsieh 2022-03-07 09:05:08 PST
(In reply to Chris Dumez from comment #6)
> The tests seem to have the following logging on stderr which could be
> related:
> 
> objc[83889]: Class _PathPoint is implemented in both
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
> Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/
> Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/
> UIKitCore (0x121604a78) and
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
> Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/
> Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/
> TextInputUI (0x136f028b0). One of the two will be used. Which one is
> undefined.
> objc[83889]: Class _PointQueue is implemented in both
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
> Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/
> Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/
> UIKitCore (0x121604a50) and
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
> Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/
> Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/
> TextInputUI (0x136f028d8). One of the two will be used. Which one is
> undefined.

I think this is benign logging.

> When this test times out on the iOS bot, about 50 other editing tests (e.g. editing/pasteboard/19644-1.html) also time out

These mass editing failures are a different issue, caused by booted iOS simulators from a previous test run being used for a subsequent run, which means the "Automatically sync pasteboard" setting will be erroneously flipped on (which then causes `pasted` to deadlock when running tests in multiple sims).

It looks like this is one example of importNode-cdata.html timing out independently of the editing tests:

<https://build.webkit.org/#/builders/369/builds/492/steps/11/logs/stdio>
Comment 8 Chris Dumez 2022-03-07 09:06:26 PST
(In reply to Wenson Hsieh from comment #7)
> (In reply to Chris Dumez from comment #6)
> > The tests seem to have the following logging on stderr which could be
> > related:
> > 
> > objc[83889]: Class _PathPoint is implemented in both
> > /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
> > Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/
> > Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/
> > UIKitCore (0x121604a78) and
> > /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
> > Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/
> > Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/
> > TextInputUI (0x136f028b0). One of the two will be used. Which one is
> > undefined.
> > objc[83889]: Class _PointQueue is implemented in both
> > /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
> > Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/
> > Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/
> > UIKitCore (0x121604a50) and
> > /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
> > Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/
> > Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/
> > TextInputUI (0x136f028d8). One of the two will be used. Which one is
> > undefined.
> 
> I think this is benign logging.
> 
> > When this test times out on the iOS bot, about 50 other editing tests (e.g. editing/pasteboard/19644-1.html) also time out
> 
> These mass editing failures are a different issue, caused by booted iOS
> simulators from a previous test run being used for a subsequent run, which
> means the "Automatically sync pasteboard" setting will be erroneously
> flipped on (which then causes `pasted` to deadlock when running tests in
> multiple sims).
> 
> It looks like this is one example of importNode-cdata.html timing out
> independently of the editing tests:
> 
> <https://build.webkit.org/#/builders/369/builds/492/steps/11/logs/stdio>

Ok, thanks for looking. The imported blink test also doesn't seem to rely on editing at all (no copy/paste like the other tests).