question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In CI, cypress install should clear old cached versions

See original GitHub issue

Proposal: Prevents large buildup of ~/.cache with obsolete versions. Should only happen in CI because locally users could have multiple versions installed on the system in other projects.

complications:

  • different cypress versions across branches, can’t clear out other versions…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
jennifer-shehanecommented, Oct 29, 2020

This is now possible with cypress cache prune. Closing as resolved.

If you’re experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix.

2reactions
zeptonautcommented, Jul 17, 2020

Yep, I could definitely see that being useful too!

Given that cypress version already knows the version (it looks like through util.pkgVersion()), creating a loop to iterate through all other versions in the cache directory and delete them doesn’t seem too farfetched.

My vote is to add a command along the lines of cypress cache clear stale that clears all versions except for the one returned by cypress --version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Cypress Documentation
If you're having an issue during installation of Cypress, try removing the contents of the Cypress cache. This will clear out all installed...
Read more >
Clean Cypress cache in GitHub CI - Stack Overflow
You can use the command to delete all previously installed versions of cypress. cypress cache prune.
Read more >
Caching Dependencies - CircleCI
This document is a guide to caching dependencies in CircleCI pipelines. ... With dependencies restored from a cache, commands like yarn install need...
Read more >
Specify NPM dependencies for Cypress tests - BrowserStack
Caching dependencies is a default behavior for browserstack-cypress-cli v1.11.0 and higher. Due to this behavior, all your private packages (if any) would also ......
Read more >
Caching node modules and Cypress installation in an azure ...
After a few trial and error, I finally got the build to run Cypress tests and cache the binaries. Keep in mind that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found