You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a known issue, or I'm doing something wrong, but this action runs much much slower on windows runners for me. I tried finding issues related to this, but couldn't find any.
This is not terribly important, but it does force me to wait about four minutes longer for mi CI to run.
Windows cache is too slow to the point that installing my 700mb dependencies from scratch takes about 100 seconds while caching and then installing takes about 90 seconds, then there is the time to cache when my dependencies change... Because of this now I don't use caching at all. Hope you change the compression algorithm and make it faster.
@galtonova Yes, the compression algorithm is definitely something we will need to fix. I'm also working on another improvement to help reduce the download time - actions/toolkit#493. However, this requires a new tool to be installed on the Windows runners. Progress installing that tool can be tracked here - actions/runner-images#1008.
@flybayer We ended up using the Azure Storage SDK for NodeJS instead of Azcopy. This was primarily done so we have better control over versioning and will also work out-of-the-box for self-hosted runners. This change is merged in toolkit/cache (see actions/toolkit#497 and actions/toolkit#497) and has been published to NPM. The last step is updating the version used by the cache action (see #375) and updating the release tag.
Reacted by Nogic, Brandon Bayer, Kari Harju and Tolga Gerekci
Since #375 is now merged, is there anything we need to do to consume this improved cache action if we're using actions/cache@v2?
Will there be a new release of actions/cache that includes this improvement?
actions/[email protected] is published. Sorry for the delay getting this out, I found a bug in the version after posting above and had to push out a fix.
Windows is still slightly slower than Ubuntu and Mac at 97 seconds, but this should be a substantial improvement compared to the 4 minutes needed to download the 818 MB cache that started this issue.
Activity
XhmikosR commentedon May 31, 2020
Yup, confirmed. It's super slow on Windows to the extent it beats the point of having cache :/
aiqiaoy commentedon Jun 3, 2020
Windows is still using
gzipwhich is slower than thezstdcompression that's used in Linux and macOS runner.alcuadrado commentedon Jun 3, 2020
Thanks for the answer, @aiqiaoy! Will this change in the future?
galtonova commentedon Jun 6, 2020
Windows cache is too slow to the point that installing my 700mb dependencies from scratch takes about 100 seconds while caching and then installing takes about 90 seconds, then there is the time to cache when my dependencies change... Because of this now I don't use caching at all. Hope you change the compression algorithm and make it faster.
dhadka commentedon Jun 6, 2020
@galtonova Yes, the compression algorithm is definitely something we will need to fix. I'm also working on another improvement to help reduce the download time - actions/toolkit#493. However, this requires a new tool to be installed on the Windows runners. Progress installing that tool can be tracked here - actions/runner-images#1008.
ci: avoid using cache on windows
ci: avoid using cache on windows (#131)
ci: avoid using cache on windows (#131)
Update ci.yml (#2866)
flybayer commentedon Jul 15, 2020
Any update on this now that actions/runner-images#1008 is merged?
dhadka commentedon Jul 16, 2020
@flybayer We ended up using the Azure Storage SDK for NodeJS instead of Azcopy. This was primarily done so we have better control over versioning and will also work out-of-the-box for self-hosted runners. This change is merged in
toolkit/cache(see actions/toolkit#497 and actions/toolkit#497) and has been published to NPM. The last step is updating the version used by the cache action (see #375) and updating the release tag.sceee commentedon Jul 21, 2020
Since #375 is now merged, is there anything we need to do to consume this improved cache action if we're using
actions/cache@v2?Will there be a new release of actions/cache that includes this improvement?
dhadka commentedon Jul 21, 2020
actions/[email protected]is published. Sorry for the delay getting this out, I found a bug in the version after posting above and had to push out a fix.You can see performance comparison on a 2.5 GB cache file - https://github.com/dhadka/cache-canary/runs/895195362?check_suite_focus=true
Windows is still slightly slower than Ubuntu and Mac at 97 seconds, but this should be a substantial improvement compared to the 4 minutes needed to download the 818 MB cache that started this issue.
dhadka commentedon Jul 21, 2020
And the
@v2tag is updated to the same commit as@v2.1.0dhadka commentedon Jul 22, 2020
Closing issue. If you continue to see slowness, please post in #267 which is a catch-all for network slowness.
Update ci.yml (#2866)