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

Print folder sizes with "cypress cache list" command #6404

Closed
bahmutov opened this issue Feb 10, 2020 · 5 comments · Fixed by #8590
Closed

Print folder sizes with "cypress cache list" command #6404

bahmutov opened this issue Feb 10, 2020 · 5 comments · Fixed by #8590
Labels
cli type: enhancement Requested enhancement of existing feature type: user experience Improvements needed for UX

Comments

@bahmutov
Copy link
Contributor

To improve "cypress cache list" in v4, which right now just prints list of versions

$ npx cypress cache list
3.0.1, 3.0.2, 3.0.3, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.4.0, 3.4.1, 3.5.0, 3.6.0, 3.6.1, 3.7.0, 3.8.0, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 4.0.0, 4.0.1

It would be nice to print a table with version number, folder size, maybe last access time (today, 2 days ago, a month ago, etc)

@bahmutov bahmutov added the cli label Feb 10, 2020
@jennifer-shehane jennifer-shehane added type: user experience Improvements needed for UX type: enhancement Requested enhancement of existing feature labels Feb 11, 2020
@cypress-bot cypress-bot bot added the stage: ready for work The issue is reproducible and in scope label Feb 11, 2020
@bahmutov
Copy link
Contributor Author

Example output

$ du -sh /Users/gleb/Library/Caches/Cypress/*
401M	/Users/gleb/Library/Caches/Cypress/3.0.1
430M	/Users/gleb/Library/Caches/Cypress/3.0.2
430M	/Users/gleb/Library/Caches/Cypress/3.0.3
494M	/Users/gleb/Library/Caches/Cypress/3.1.0
489M	/Users/gleb/Library/Caches/Cypress/3.1.1
488M	/Users/gleb/Library/Caches/Cypress/3.1.2
486M	/Users/gleb/Library/Caches/Cypress/3.1.3
490M	/Users/gleb/Library/Caches/Cypress/3.1.4
485M	/Users/gleb/Library/Caches/Cypress/3.1.5
453M	/Users/gleb/Library/Caches/Cypress/3.2.0
463M	/Users/gleb/Library/Caches/Cypress/3.3.0
463M	/Users/gleb/Library/Caches/Cypress/3.3.1
465M	/Users/gleb/Library/Caches/Cypress/3.3.2
465M	/Users/gleb/Library/Caches/Cypress/3.4.0
456M	/Users/gleb/Library/Caches/Cypress/3.4.1
476M	/Users/gleb/Library/Caches/Cypress/3.5.0
470M	/Users/gleb/Library/Caches/Cypress/3.6.0
475M	/Users/gleb/Library/Caches/Cypress/3.6.1
511M	/Users/gleb/Library/Caches/Cypress/3.7.0
559M	/Users/gleb/Library/Caches/Cypress/3.8.0
531M	/Users/gleb/Library/Caches/Cypress/3.8.1
542M	/Users/gleb/Library/Caches/Cypress/3.8.2
542M	/Users/gleb/Library/Caches/Cypress/3.8.3
539M	/Users/gleb/Library/Caches/Cypress/3.8.4
546M	/Users/gleb/Library/Caches/Cypress/4.0.0
546M	/Users/gleb/Library/Caches/Cypress/4.0.1
543M	/Users/gleb/Library/Caches/Cypress/4.0.2
 37M	/Users/gleb/Library/Caches/Cypress/cy

@bahmutov
Copy link
Contributor Author

You can get info about last access time by checking timestamp on the binary

$ stat -x /Users/gleb/Library/Caches/Cypress/3.0.1/Cypress.app/Contents/MacOS/Cypress 
  File: "/Users/gleb/Library/Caches/Cypress/3.0.1/Cypress.app/Contents/MacOS/Cypress"
  Size: 18336        FileType: Regular File
  Mode: (0755/-rwxr-xr-x)         Uid: (  501/    gleb)  Gid: (   20/   staff)
Device: 1,4   Inode: 25264199    Links: 1
Access: Wed Feb 19 13:23:16 2020
Modify: Thu May 31 02:40:42 2018
Change: Sun Jun  3 09:18:07 2018

@cypress-bot cypress-bot bot added stage: work in progress and removed stage: ready for work The issue is reproducible and in scope labels Feb 25, 2020
@maddhruv
Copy link
Contributor

@bahmutov Added a PR at - #6556

@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: work in progress labels Feb 26, 2020
@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: needs review The PR code is done & tested, needs review stage: work in progress labels Mar 6, 2020
@cypress-bot cypress-bot bot added stage: ready for work The issue is reproducible and in scope and removed stage: needs review The PR code is done & tested, needs review labels Apr 23, 2020
@cypress-bot cypress-bot bot added stage: work in progress and removed stage: ready for work The issue is reproducible and in scope labels Sep 16, 2020
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review stage: work in progress and removed stage: work in progress stage: needs review The PR code is done & tested, needs review labels Oct 2, 2020
@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels Oct 5, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 5, 2020

The code for this is done in cypress-io/cypress#8590, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 14, 2020

Released in 5.4.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v5.4.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli type: enhancement Requested enhancement of existing feature type: user experience Improvements needed for UX
Projects
None yet
3 participants