Skip to content
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

Enormous amount of data getting stored in EC2 under .config/Cypress/cy/production/projects #29281

Closed
gkrishna08 opened this issue Apr 8, 2024 · 8 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@gkrishna08
Copy link

Test code to reproduce

Not sure if it is the exact same issue, but on our CI machines (Jenkins) we see one issue

We also have this on our Linux machine

/home/builduser/.config/Cypress/cy/production/projects

I couldn't find any information about this. Are we doing something wrong causing these files to be generated? Tired cypress cache clear command but not useful in clearing the memory. Is this issue with cypress version or anything.
Should Cypress automatically clear this? Do we have to run a certain command to clear them?

Cypress Mode

cypress run

Cypress Version

9.7.0

Browser Version

Chrome 91

Node version

16.20.0

Operating System

Linux

Memory Debug Logs

No response

Other

No response

@cacieprins
Copy link
Contributor

Hi @gkrishna08 , does this issue still occur with newer versions of Cypress?

@gkrishna08
Copy link
Author

Hi @cacieprins, yes seeing the same issue on cypress 13.6.6 as well with more memory consumption compared to 9.7.0 as we enabled video recording and some logs..

@jennifer-shehane
Copy link
Member

jennifer-shehane commented Apr 12, 2024

This is the Cypress App Data which is used to store things like preferences. It should be safe for you to delete everything in the cy folder if you want to add that into your automated process.

I know a lot of local state for cypress open is stored in there. I’m a little less sure of what the utility would be on a CI machine and whether we need to write data in that case.

What’s the size of the folder?

@jennifer-shehane jennifer-shehane added the stage: awaiting response Potential fix was proposed; awaiting response label Apr 12, 2024
@jennifer-shehane
Copy link
Member

I see now this is a duplicate of #20435

I'll comment in there and close this as a duplicate.

@jennifer-shehane jennifer-shehane closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
@jennifer-shehane jennifer-shehane added type: duplicate This issue or pull request already exists and removed stage: awaiting response Potential fix was proposed; awaiting response labels Apr 12, 2024
@gkrishna08
Copy link
Author

Hi @jennifer-shehane , In EC2 on each node daily it is storing around 2 to 2.5 GB, as we running multiple test cases and regressions daily. Is there any alternative apart from cleaning the folder or directory

@jennifer-shehane
Copy link
Member

@gkrishna08 Ahh, that is a lot. If you're open to sharing what files these are or a screenshot, you can email to [email protected]. Looking at my App Data for many many projects, it's nowhere near that size, it's just minimal json and js files.

@gkrishna08
Copy link
Author

gkrishna08 commented Apr 12, 2024

Not sure exactly if it is there or not now, recently we enabled to clear that data after each run. Let me check and get back to you if anything is there in EC2. @jennifer-shehane
When we explored that directory, we found data of each runs feature files, failure screenshot, logs and reports etc.

@jennifer-shehane
Copy link
Member

@gkrishna08 Yah the screenshots, etc should not be in those directories. They would be in a cypress/screenshots directory that you could choose to cache on your machine on your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants