Bug 188113

Summary: [GTK] API test /webkit/WebKitWebsiteData/cache is flaky
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebKitGTKAssignee: Lauro Moura <lmoura>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, csaavedra, lmoura
Priority: P2    
Version: Other   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
[fast-cq] Patch updating expectations none

Description Michael Catanzaro 2018-07-27 12:26:53 PDT
API test /webkit/WebKitWebsiteData/cache is flaky:

TEST: ./Tools/glib/../../WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestWebsiteData...
  /webkit/WebKitWebsiteData/configuration:                            PASS
  /webkit/WebKitWebsiteData/ephemeral:                                PASS
  /webkit/WebKitWebsiteData/cache:                                    FAIL
ERROR:/home/slave/webkitgtk/gtk-linux-64-release/build/Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp:285:void testWebsiteDataCache(WebsiteDataTest*, gconstpointer): assertion failed (webkit_website_data_get_types(data) == cacheTypes): (1 == 3)
  /webkit/WebKitWebsiteData/storage:                                  PASS
  /webkit/WebKitWebsiteData/databases:                                PASS
  /webkit/WebKitWebsiteData/appcache:                                 PASS
  /webkit/WebKitWebsiteData/cookies:                                  PASS
Comment 1 Claudio Saavedra 2019-08-08 07:49:04 PDT
I think this test fails because the 1 second wait in the function is not always enough for the data to be saved. I tried locally a few runs with a higher wait (2 seconds, I think) and I couldn't get it to fail.
Comment 2 Lauro Moura 2022-01-20 19:56:44 PST
Created attachment 449633 [details]
[fast-cq] Patch updating expectations

It has been consistently passing in GTK/WPE for a long time. Sometimes fails consistently, but due to regressions.
Comment 3 EWS 2022-01-20 19:59:31 PST
Committed r288349 (246255@main): <https://commits.webkit.org/246255@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 449633 [details].