Bug 243934

Summary: REGRESSION (253391@main): [ iOS ] 121 api tests consistent failures, time outs, or crashes
Product: WebKit Reporter: Karl Rackler <rackler>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: emw, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=242730
https://bugs.webkit.org/show_bug.cgi?id=244043

Description Karl Rackler 2022-08-15 07:25:40 PDT
Description:
api tests listed here: https://build.webkit.org/#/builders/529/builds/398/steps/18/logs/stdio


REPRODUCTION STEPS
I can reproduce this on 253391@main , but am unable to reproduce it on 253390@main or earlier.

Command: 
run-api-tests --ios-simulator --debug TestWebKitAPI.WebAuthenticationPanel.LANoCredential
run-api-tests --root 253391@main-debug --ios-simulator --debug TestWebKitAPI.WebAuthenticationPanel.MakeCredentialLAAttestationFalback

Result: 
Timeout

    TestWebKitAPI.WebAuthenticationPanel.LANoCredential
        ERROR: No hid authenticators is available.
        /Volumes/Data/worker/trunk-ios-ios-simulator-debug-archive/build/OpenSource/Source/WebKit/UIProcess/WebAuthentication/Mock/MockHidService.cpp(48) : virtual void WebKit::MockHidService::platformStartDiscovery()

Failed

    TestWebKitAPI.WebAuthenticationPanel.MakeCredentialLAAttestationFalback
        ERROR: No hid authenticators is available.
        /Volumes/Data/worker/trunk-ios-ios-simulator-debug-archive/build/OpenSource/Source/WebKit/UIProcess/WebAuthentication/Mock/MockHidService.cpp(48) : virtual void WebKit::MockHidService::platformStartDiscovery()
        ERROR: Couldn't get existing credentials
        /Volumes/Data/worker/trunk-ios-ios-simulator-debug-archive/build/OpenSource/Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm(637) : void WebKit::LocalAuthenticator::receiveException(WebCore::ExceptionData &&, WebKit::WebAuthenticationStatus) const

        /Volumes/Data/worker/trunk-ios-ios-simulator-debug-archive/build/OpenSource/Tools/TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm:1842
        Value of: response
          Actual: false
        Expected: true


        /Volumes/Data/worker/trunk-ios-ios-simulator-debug-archive/build/OpenSource/Tools/TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm:1844
        Expected equality of these values:
          [response.attestationObject base64EncodedStringWithOptions:0]
            Which is: ""
          "o2NmbXRkbm9uZWdhdHRTdG10oGhhdXRoRGF0YViYo3mm9u6vuaVeN4wRgDTidR5oL6ufLTCrE9ISVYbOGUdFAAAAAAAAAAAAAAAAAAAAAAAAAAAAFEjElx54Be4RDrBJQO9wt0WPvG0epQECAyYgASFYIDj/zxSkzKgaBuS3cdWDF558of8AaIpgFpsjF/Qm1749IlggVBJPgqUIwfhWHJ91nb7UPH76c0+WFOzZKslPyyFse4g="

History:
https://results.webkit.org/?suite=api-tests&suite=api-tests&test=TestWebKitAPI.WebAuthenticationPanel.LANoCredential&test=TestWebKitAPI.WebAuthenticationPanel.MakeCredentialLAAttestationFalback&platform=ios

Diff/Crash Log:
Same as above Result:
Comment 1 Radar WebKit Bug Importer 2022-08-15 07:25:59 PDT
<rdar://problem/98668559>
Comment 2 Karl Rackler 2022-08-15 09:34:15 PDT
This reverts commit 3a3ad5e.

Unreviewed revert
This reverts because causing 121 api test failures.

Canonical link: https://commits.webkit.org/253426@main
Comment 3 Karl Rackler 2022-08-15 17:15:24 PDT
Confirmed after landing 253426@main api tests are now passing