Bug 242723

Summary: New test landed failing: [ macOS ] TestWebKitAPI.WebKit.DeleteEmptyOriginDirectoryWhenOriginIsGone is almost a constant failure
Product: WebKit Reporter: Hercules Hjalmarsson <hhjalmarsson>
Component: New BugsAssignee: Sihui Liu <sihui_liu>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Hercules Hjalmarsson 2022-07-13 16:13:26 PDT
TestWebKitAPI.WebKit.DeleteEmptyOriginDirectoryWhenOriginIsGone

Is a constant failure on macOS ToT on some queues and almost constant on others.

HISTORY:
https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.WebKit.DeleteEmptyOriginDirectoryWhenOriginIsGone

DIFF:
Test suite failed
Failed
    TestWebKitAPI.WebKit.DeleteEmptyOriginDirectoryWhenOriginIsGone
        ERROR: Error while launching com.apple.WebKit.Networking: Connection invalid
        /Volumes/Data/worker/Apple-BigSur-Debug-Build/build/Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm(233) : auto WebKit::ProcessLauncher::launchProcess()::(anonymous class)::operator()(xpc_object_t) const
        LEAK: 1 WebProcessPool
        
        /Volumes/Data/worker/Apple-BigSur-Debug-Build/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm:1246
        Value of: [fileManager fileExistsAtPath:topOriginDirectory.path]
          Actual: true
        Expected: false

DIFF URL:
https://build.webkit.org/#/builders/432/builds/1767/steps/18/logs/stdio
Comment 1 Radar WebKit Bug Importer 2022-07-13 16:14:00 PDT
<rdar://problem/96979496>
Comment 2 Hercules Hjalmarsson 2022-07-13 16:15:45 PDT
I was able to reproduce this issue on macOS ToT running 25 iterations with command: 

run-api-tests --debug TestWebKitAPI.WebKit.DeleteEmptyOriginDirectoryWhenOriginIsGone
Comment 3 Sihui Liu 2022-07-13 21:16:47 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2400
Comment 4 EWS 2022-07-14 09:02:26 PDT
Committed 252457@main (de016a084220): <https://commits.webkit.org/252457@main>

Reviewed commits have been landed. Closing PR #2400 and removing active labels.