Skip to content

Conversation

@pared
Copy link
Contributor

@pared pared commented Oct 7, 2020

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™
Related to #4418

@pared pared force-pushed the 4418_test_cache branch 2 times, most recently from 43a4ab5 to b73497e Compare October 19, 2020 13:39
@pared pared marked this pull request as ready for review October 19, 2020 13:40
@pared pared changed the title [WIP] TestCmdCacheDir: roll back darwin skip TestCmdCacheDir: roll back darwin skip Oct 19, 2020
@pared pared changed the title TestCmdCacheDir: roll back darwin skip [WIP] TestCmdCacheDir: roll back darwin skip Oct 19, 2020
@pared
Copy link
Contributor Author

pared commented Oct 20, 2020

The fails are related to the fact that in case of macos runner, mktemp() is creating temporary dir /var/.... /var is symlink to /private/var.
There seem to be some problem with evaluating the relative external cache paths, dvc is unable to makedirs cache subfolders for a relative path.

Wrapping the external cache path in os.path.realpath solves the problem.

I tried reproducing the problem on Linux, by reproducing workspace with symlinks to workspace directories but was unsuccessful. Seems like there is more to that than just symlink being in the path of the repo or external cache. I have tried debugging it via GitHub actions, but was unsuccessful. I am creating an issue to investigate it further.

EDIT
kudos @efiop for pointing out the how macos sets up some direcotries

@pared pared changed the title [WIP] TestCmdCacheDir: roll back darwin skip TestCmdCacheDir: roll back darwin skip Oct 20, 2020
@pared pared requested a review from efiop October 20, 2020 10:32
@efiop efiop merged commit 33ece01 into iterative:master Oct 21, 2020
@pared pared deleted the 4418_test_cache branch January 4, 2022 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants