-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress caching in ~/.cache/Cypress
#50
Comments
We have added the Please let us know if there is anything problematic with this approach. |
I've been trying to integrate this plugin and no matter what I try I get this error:
I've tried with and without My netlify toml looks like this: [build]
base = ""
functions = "functions"
publish = "public/"
command = "yarn build && yarn build:functions"
[[plugins]]
package = "netlify-plugin-cypress"
[plugins.inputs]
record = true Installed cypress via |
Was missing installing the plugin itself as well as a node dependency. I think some of the blogs forget to mention that step |
^^ I was having the same drama. To be clear. on the solution, I had to install |
Installing Build plugins takes time. To make builds as fast as possible, Netlify is now pre-installing all known Build plugins before the build even starts, leading to
0s
additional installation time. This is done as part of the build step of our main Docker image.However, Cypress downloads binaries and caches them in
~/.cache/Cypress
(on Linux). By default,~/.cache
is restored/saved to a cache at the beginning/end of every build. Since~/.cache/Cypress
takes580MB
, this adds20s
to30s
additional time to every build.We are discussing with @mikeh and @vbrown608 how to fix this performance issue. One way would be to use the
CYPRESS_CACHE_FOLDER
environment variable to change the location of this directory. Note: this would mean the following section of this plugin'sREADME
would need to be updated.What are your thoughts on this @bahmutov? Do you think this is a viable approach?
The text was updated successfully, but these errors were encountered: