Bug 227823

Summary: [GTK][WPE] Some tests in imported/w3c/web-platform-tests/cookies/prefix/ are flaky
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: WPE WebKitAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=227641

Description Carlos Alberto Lopez Perez 2021-07-08 17:01:43 PDT
The following tests imported in 279585 are flaky:

Regressions: Unexpected text-only failures (8)
  imported/w3c/web-platform-tests/cookies/prefix/__host.document-cookie.html [ Failure ]
  imported/w3c/web-platform-tests/cookies/prefix/__host.document-cookie.https.html [ Failure ]
  imported/w3c/web-platform-tests/cookies/prefix/__host.header.html [ Failure ]
  imported/w3c/web-platform-tests/cookies/prefix/__host.header.https.html [ Failure ]
  imported/w3c/web-platform-tests/cookies/prefix/__secure.document-cookie.html [ Failure ]
  imported/w3c/web-platform-tests/cookies/prefix/__secure.document-cookie.https.html [ Failure ]
  imported/w3c/web-platform-tests/cookies/prefix/__secure.header.html [ Failure ]
  imported/w3c/web-platform-tests/cookies/prefix/document-cookie.non-secure.html [ Failure ]


The flakiness happen due to same random integer that appears on the text results.

Example:

Run 1

-PASS __Host: Non-secure origin: 'Path=/;MaxAge=10'
+FAIL __Host: Non-secure origin: 'Path=/;MaxAge=10' assert_equals: `__Host-prefixtestcookie=0.47609837379802233` in `document.cookie` expected false but got true

Run 2:

-PASS __Host: Non-secure origin: 'Path=/;MaxAge=10'
+FAIL __Host: Non-secure origin: 'Path=/;MaxAge=10' assert_equals: `__Host-prefixtestcookie=0.4836850576033984` in `document.cookie` expected false but got true