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.

Trace why the built zip size keeps increasing

See original GitHub issue

The current zip of the Test Runner build in the Firefox branch is 191MB! Need to investigate what is driving the increases in size

Example for Mac

Find cached Cypress binary path and versions

$ npx cypress cache path
/Users/gleb/Library/Caches/Cypress
$ 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

You can see the size history by version

$ du -hs /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

Take any version and see the resources sizes - for example 3.2.0 vs 3.8.0. Tip: sort -h sorts by human size in the first column

$ du -hs /Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/* | sort -h
8.0K	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/root
 16K	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/driver
136K	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/ts
144K	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/static
456K	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/coffee
1.1M	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/example
2.9M	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/socket
3.8M	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/reporter
5.9M	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/desktop-gui
6.2M	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/extension
8.7M	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/runner
8.9M	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/launcher
9.6M	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/https-proxy
 25M	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/electron
253M	/Users/gleb/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/Resources/app/packages/server

and for 3.8.0

$ du -hs /Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/* | sort -h
8.0K	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/web-config
 12K	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/driver
 12K	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/root
 20K	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/reporter
136K	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/ts
144K	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/static
456K	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/coffee
1.1M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/example
3.9M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/socket
6.2M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/extension
7.7M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/proxy
7.8M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/https-proxy
8.9M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/launcher
 10M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/runner
 11M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/desktop-gui
 27M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/electron
 57M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/network
251M	/Users/gleb/Library/Caches/Cypress/3.8.0/Cypress.app/Contents/Resources/app/packages/server

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jennifer-shehanecommented, Dec 17, 2019

Isn’t the yarn PR meant to address some of the redundant dependencies? cc @andrew-codes https://github.com/cypress-io/cypress/pull/5555

1reaction
bahmutovcommented, Dec 16, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Python's zipfile: Manipulate Your ZIP Files Efficiently
In this guided tutorial, you'll learn how to manipulate ZIP files using Python's zipfile module from the standard library.
Read more >
A better zip bomb - bamsoftware.com
This article shows how to construct a non-recursive zip bomb that achieves a ... The output size increases quadratically in the input size, ......
Read more >
Increasing the Maximum Upload File Size in IIS - KB306
For IIS 6 and IIS 7, the default maximum file upload size is 4 MB and 28.6 MB respectively.
Read more >
Reduce repository size - GitLab Docs
Repacking your repository temporarily causes the size of your repository to increase significantly, because the old pack files are not removed until the...
Read more >
Capture a system trace on a device - Android Developers
Record using app menu · Open the Developer Options settings screen. · Make sure Trace debuggable applications is selected to include applications 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