catdad / grandma

👵 fully programmable stress testing framework
20 stars 4 forks source link

caching node_modules for appveyor builds #150

Closed catdad closed 7 years ago

catdad commented 7 years ago

AppVeyor builds have been painfully slow, so when I do a lot of development, there is a ton of waiting around to merge PRs. This is annoying af.

To try to address this, I have added the node_modules folder to the cache. I have also added npm prune and npm upgrade to the script, to make sure that node_modules is cleaned up and updated, while hopefully working much faster. This should be safe enough, but I will be keeping an eye... and maybe trying to figure out how to clear the cache periodically.

This should hopefully make multiple builds in quick succession run much faster. Let's see how this goes. I hope it doesn't turn out to be a huge pain.

catdad commented 7 years ago

image

It's a minute and a half faster overall... I guess that's something. Of course, I have a few select builds that have completed in 6m23s on their own, without the cache, so there is that.

Searching around though, I see that the appveyor cache seems to destabilize builds more than on other agents.