Unarchiving cache from root instead of home directory causing permission denial



Since couple of weeks, we experience a problem where unarchiving cache is trying to read from /root directory instead of ~/project-name. Sometimes it succeeds but sometimes it fails with “Permission denied” message.

Here’s the link to the project (it’s open source): https://github.com/facebook/jest
Here’s CircleCI report failing for the PR: https://circleci.com/gh/facebook/jest/16018
You can see that on master branch, the cache is sometimes successfully restored, but not always (especially since couple of days).

Would love to get some guidance on what is wrong, especially if it’s in our config (to be found in the repo).