I’ve been trying to make our tests run faster on CircleCI. I’ve noticed that some of our builds have a very slow “restoring source cache” step. Usually this takes ~30 seconds. However, sometimes it takes up to 2 minutes. Is there anything we can do to reduce the time this step takes? For example, I’m wondering if I should be trying to hack the CircleCI checkout to be a shallow clone? That would probably reduce the file size significantly.
If there isn’t anything we can do to make this faster in all cases, is there something that we are doing that is causing the unusually long “restoring source cache” step?
One related conversation I found is the following, where it sounds like adding some “git repo hacking” steps to our build temporarily might help: