tart/Tests/TartTests
Fedor Korotkov cf9a3a9221
Allow mounting a single directory without a name (#555)
* Allow mounting a single directory without a name

To utilize `VZSingleDirectoryShare` which seems more stable than `VZMultipleDirectoryShare`.

We've been having reports from users that mounted directories occasionally return "no such file" errors when building large projects. I took a stab at reproducing the issue by running https://github.com/devMEremenko/XcodeBenchmark in a mounted directory:

```bash
tart run --dir=workdir-test:~/workspace-temp/XcodeBenchmark ventura-xcode
```

And I was able to reproduce the "no such file" error on the first try! After looking into the issue I decided to try `VZSingleDirectoryShare` as this PR changes and to my pleasant surprise it all worked like a charm the next run. So it seems there is a bug in `VZMultipleDirectoryShare` integration with virtiofs. Since in most cases users only mount a single directory it makes sense to allow doing it wihtout providing a `name`.

So now it will be possible to run the following command:

```bash
tart run --dir=~/workspace-temp/XcodeBenchmark ventura-xcode
```

Which will make `~/workspace-temp/XcodeBenchmark` available under `/Volumes/My Shared Files/` without any intermediate directories.

* Reformat

* Updated description
2023-07-12 19:08:52 +00:00
..
Util Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
DigestTests.swift Support pulling/pushing VMs to OCI-compatible registries (#32) 2022-05-03 14:30:26 -04:00
DirecotryShareTests.swift Allow mounting a single directory without a name (#555) 2023-07-12 19:08:52 +00:00
FileLockTests.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
MACAddressResolverTests.swift Allow to choose IP resolution strategy (#446) 2023-03-16 17:41:54 +04:00
RegistryTests.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
RemoteNameTests.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
TokenResponseTests.swift OCI: support Basic authentication scheme (#145) 2022-07-08 16:36:00 +03:00
URLAbsolutizationTests.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
URLAccessDateTests.swift Introduce "tart prune" command (#164) 2022-08-12 16:43:04 +03:00
WWWAuthenticateTests.swift Support pulling/pushing VMs to OCI-compatible registries (#32) 2022-05-03 14:30:26 -04:00