Bug 206956

Summary: Flaky API Test: TestWebKitAPI.WebKitLegacy.CrossPartitionFileSchemeAccess
Product: WebKit Reporter: Aakash Jain <aakash_jain>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: NEW ---    
Severity: Normal CC: achristensen, ap, beidson, bfulgham, jlewis3, ryanhaddad, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=211738
Attachments:
Description Flags
Patch ap: review+

Description Aakash Jain 2020-01-29 12:06:24 PST
TestWebKitAPI.WebKitLegacy.CrossPartitionFileSchemeAccess seems flaky on macOS. In https://ews-build.webkit.org/#/builders/3/builds/16434, the test TimedOut in run-api-tests step. However, in the immediately next retry step (re-run-api-tests), it passed.
Comment 1 Ryan Haddad 2020-01-29 16:23:27 PST
Looking at: https://results.webkit.org/?suite=api-tests&test=TestWTF.FileSystemTest.MappingExistingFile

The test timed out on trunk bots between r254548 and r254560 (which rolled out r254548), and one time on 12/29/2019 @r253935.
Comment 3 Radar WebKit Bug Importer 2020-05-11 13:50:44 PDT
<rdar://problem/63104186>
Comment 4 Ryan Haddad 2020-06-03 10:16:05 PDT
This test has started timing out on almost every Mojave API test run. It had been frequently timing out on debug only, but now it is timing out on release, too.
Comment 5 Ryan Haddad 2020-06-04 12:16:23 PDT
(In reply to Ryan Haddad from comment #4)
> This test has started timing out on almost every Mojave API test run. It had
> been frequently timing out on debug only, but now it is timing out on
> release, too.
My statement should be reversed: it was frequently timing out on release, now it times out on debug too.
Comment 6 Ryan Haddad 2020-06-10 13:19:47 PDT
Disabled the test for Mojave in r262851.
Comment 8 Alex Christensen 2021-02-03 09:12:31 PST
Created attachment 419147 [details]
Patch
Comment 9 Alexey Proskuryakov 2021-02-03 09:21:35 PST
Comment on attachment 419147 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=419147&action=review

> Tools/ChangeLog:9
> +        Don't hide the output of hdiutil so we can see what is happening on the bots.

Does the error actually go to stdout, not stderr?
Comment 10 Alex Christensen 2021-02-03 09:43:53 PST
Comment on attachment 419147 [details]
Patch

Nothing goes to stderr.  A description of what it has done goes to stdout.
Comment 11 Alex Christensen 2021-02-03 09:45:07 PST
Comment on attachment 419147 [details]
Patch

r272323
Now let's see what happens when it times out...
Comment 12 Ryan Haddad 2021-02-10 20:48:38 PST
(In reply to Alex Christensen from comment #11)
> Comment on attachment 419147 [details]
> Patch
> 
> r272323
> Now let's see what happens when it times out...
from https://ews-build.webkit.org/#/builders/3/builds/41044/steps/19/logs/stdio (using r272678):
    TestWebKitAPI.WebKitLegacy.CrossPartitionFileSchemeAccess
        Cleaning up from previous run...
        hdiutil: detach failed - No such file or directory
        Creating partition...
Comment 14 Alex Christensen 2021-02-11 18:08:33 PST
r272765 should make EWS happy for another year.
I still have no idea why it is timing out only on EWS bots.