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

Size increase for Windows build of Cypress 3.1.4 #2990

Closed
bahmutov opened this issue Dec 26, 2018 · 5 comments
Closed

Size increase for Windows build of Cypress 3.1.4 #2990

bahmutov opened this issue Dec 26, 2018 · 5 comments

Comments

@bahmutov
Copy link
Contributor

Windows build v3.1.3 zip size 233540774
Windows build v3.1.4 zip size 255949415

$ http https://cdn.cypress.io/desktop/3.1.4/win64/cypress.zip
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 255949415
Content-Type: application/zip

download and unzip Windows cy 3.1.3 and 3.1.4 to compare

compare top level files

First, 3.1.3 top-level files sorted by size

$ ls -laS 3.1.3/Cypress
total 276096
-rw-r--r--   1 gleb  wheel  85785600 Dec  3 08:17 Cypress.exe
-rw-r--r--   1 gleb  wheel  19028480 Dec  3 08:17 node.dll
-rw-r--r--   1 gleb  wheel  10266133 Dec  3 08:17 content_shell.pak
-rw-r--r--   1 gleb  wheel  10130560 Dec  3 08:17 icudtl.dat
-rw-r--r--   1 gleb  wheel   4173928 Dec  3 08:17 d3dcompiler_47.dll
-rw-r--r--   1 gleb  wheel   3423744 Dec  3 08:17 libGLESv2.dll
-rw-r--r--   1 gleb  wheel   1944576 Dec  3 08:16 ffmpeg.dll
-rw-r--r--   1 gleb  wheel   1783609 Dec  3 08:16 LICENSES.chromium.html
-rw-r--r--   1 gleb  wheel   1557792 Dec  3 08:16 snapshot_blob.bin
-rw-r--r--   1 gleb  wheel    997056 Dec  3 08:16 ucrtbase.dll
-rw-r--r--   1 gleb  wheel    633152 Dec  3 08:16 msvcp140.dll
-rw-r--r--   1 gleb  wheel    239010 Dec  3 08:16 natives_blob.bin
-rw-r--r--   1 gleb  wheel    140979 Dec  3 08:16 pdf_viewer_resources.pak
-rw-r--r--   1 gleb  wheel     87888 Dec  3 08:16 vcruntime140.dll
-rw-r--r--   1 gleb  wheel     76195 Dec  3 08:16 ui_resources_200_percent.pak
-rw-r--r--   1 gleb  wheel     70848 Dec  3 08:16 api-ms-win-crt-private-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     57450 Dec  3 08:16 views_resources_200_percent.pak
-rw-r--r--   1 gleb  wheel     27840 Dec  3 08:16 api-ms-win-crt-math-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     26304 Dec  3 08:16 api-ms-win-crt-multibyte-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     25856 Dec  3 08:16 blink_image_resources_200_percent.pak
-rw-r--r--   1 gleb  wheel     24768 Dec  3 08:16 api-ms-win-crt-stdio-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     24768 Dec  3 08:16 api-ms-win-crt-string-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     23232 Dec  3 08:16 api-ms-win-crt-runtime-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     22720 Dec  3 08:16 api-ms-win-crt-convert-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     22208 Dec  3 08:16 api-ms-win-core-file-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     21184 Dec  3 08:16 api-ms-win-core-localization-l1-2-0.dll
-rw-r--r--   1 gleb  wheel     21184 Dec  3 08:16 api-ms-win-crt-time-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     20672 Dec  3 08:16 api-ms-win-core-processthreads-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     20672 Dec  3 08:16 api-ms-win-core-synch-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     20672 Dec  3 08:16 api-ms-win-crt-filesystem-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19656 Dec  3 08:16 api-ms-win-core-sysinfo-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19648 Dec  3 08:16 api-ms-win-core-processenvironment-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19648 Dec  3 08:16 api-ms-win-crt-conio-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19648 Dec  3 08:16 api-ms-win-crt-process-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec  3 08:16 api-ms-win-core-console-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec  3 08:16 api-ms-win-core-libraryloader-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec  3 08:16 api-ms-win-core-memory-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec  3 08:16 api-ms-win-core-processthreads-l1-1-1.dll
-rw-r--r--   1 gleb  wheel     19136 Dec  3 08:16 api-ms-win-core-synch-l1-2-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec  3 08:16 api-ms-win-crt-environment-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec  3 08:16 api-ms-win-crt-heap-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec  3 08:16 api-ms-win-crt-locale-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec  3 08:16 api-ms-win-crt-utility-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-errorhandling-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-file-l1-2-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-file-l2-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-handle-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-heap-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-interlocked-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-namedpipe-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-rtlsupport-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-string-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-timezone-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec  3 08:16 api-ms-win-core-util-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18120 Dec  3 08:16 api-ms-win-core-profile-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18112 Dec  3 08:16 api-ms-win-core-datetime-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18112 Dec  3 08:16 api-ms-win-core-debug-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     17408 Dec  3 08:16 libEGL.dll
drwxr-xr-x  65 gleb  wheel      2210 Dec  3 08:16 .
drwxr-xr-x  56 gleb  wheel      1904 Dec  3 08:16 locales
-rw-r--r--   1 gleb  wheel      1060 Dec  3 08:16 LICENSE
drwxr-xr-x   4 gleb  wheel       136 Dec 26 09:23 ..
drwxr-xr-x   4 gleb  wheel       136 Dec  3 08:16 resources
-rw-r--r--   1 gleb  wheel        15 Dec  3 08:16 content_resources_200_percent.pak
-rw-r--r--   1 gleb  wheel         6 Dec  3 08:16 version

3.1.4 top-level files

$ ls -laS 3.1.4/Cypress
total 276096
-rw-r--r--   1 gleb  wheel  85785600 Dec 26 07:18 Cypress.exe
-rw-r--r--   1 gleb  wheel  19028480 Dec 26 07:18 node.dll
-rw-r--r--   1 gleb  wheel  10266133 Dec 26 07:18 content_shell.pak
-rw-r--r--   1 gleb  wheel  10130560 Dec 26 07:18 icudtl.dat
-rw-r--r--   1 gleb  wheel   4173928 Dec 26 07:18 d3dcompiler_47.dll
-rw-r--r--   1 gleb  wheel   3423744 Dec 26 07:18 libGLESv2.dll
-rw-r--r--   1 gleb  wheel   1944576 Dec 26 07:18 ffmpeg.dll
-rw-r--r--   1 gleb  wheel   1783609 Dec 26 07:18 LICENSES.chromium.html
-rw-r--r--   1 gleb  wheel   1557792 Dec 26 07:18 snapshot_blob.bin
-rw-r--r--   1 gleb  wheel    997056 Dec 26 07:18 ucrtbase.dll
-rw-r--r--   1 gleb  wheel    633152 Dec 26 07:18 msvcp140.dll
-rw-r--r--   1 gleb  wheel    239010 Dec 26 07:18 natives_blob.bin
-rw-r--r--   1 gleb  wheel    140979 Dec 26 07:18 pdf_viewer_resources.pak
-rw-r--r--   1 gleb  wheel     87888 Dec 26 07:18 vcruntime140.dll
-rw-r--r--   1 gleb  wheel     76195 Dec 26 07:18 ui_resources_200_percent.pak
-rw-r--r--   1 gleb  wheel     70848 Dec 26 07:18 api-ms-win-crt-private-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     57450 Dec 26 07:18 views_resources_200_percent.pak
-rw-r--r--   1 gleb  wheel     27840 Dec 26 07:18 api-ms-win-crt-math-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     26304 Dec 26 07:18 api-ms-win-crt-multibyte-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     25856 Dec 26 07:18 blink_image_resources_200_percent.pak
-rw-r--r--   1 gleb  wheel     24768 Dec 26 07:18 api-ms-win-crt-stdio-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     24768 Dec 26 07:18 api-ms-win-crt-string-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     23232 Dec 26 07:18 api-ms-win-crt-runtime-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     22720 Dec 26 07:18 api-ms-win-crt-convert-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     22208 Dec 26 07:18 api-ms-win-core-file-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     21184 Dec 26 07:18 api-ms-win-core-localization-l1-2-0.dll
-rw-r--r--   1 gleb  wheel     21184 Dec 26 07:18 api-ms-win-crt-time-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     20672 Dec 26 07:18 api-ms-win-core-processthreads-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     20672 Dec 26 07:18 api-ms-win-core-synch-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     20672 Dec 26 07:18 api-ms-win-crt-filesystem-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19656 Dec 26 07:18 api-ms-win-core-sysinfo-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19648 Dec 26 07:18 api-ms-win-core-processenvironment-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19648 Dec 26 07:18 api-ms-win-crt-conio-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19648 Dec 26 07:18 api-ms-win-crt-process-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec 26 07:18 api-ms-win-core-console-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec 26 07:18 api-ms-win-core-libraryloader-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec 26 07:18 api-ms-win-core-memory-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec 26 07:18 api-ms-win-core-processthreads-l1-1-1.dll
-rw-r--r--   1 gleb  wheel     19136 Dec 26 07:18 api-ms-win-core-synch-l1-2-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec 26 07:18 api-ms-win-crt-environment-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec 26 07:18 api-ms-win-crt-heap-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec 26 07:18 api-ms-win-crt-locale-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     19136 Dec 26 07:18 api-ms-win-crt-utility-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-errorhandling-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-file-l1-2-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-file-l2-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-handle-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-heap-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-interlocked-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-namedpipe-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-rtlsupport-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-string-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-timezone-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18624 Dec 26 07:18 api-ms-win-core-util-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18120 Dec 26 07:18 api-ms-win-core-profile-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18112 Dec 26 07:18 api-ms-win-core-datetime-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     18112 Dec 26 07:18 api-ms-win-core-debug-l1-1-0.dll
-rw-r--r--   1 gleb  wheel     17408 Dec 26 07:18 libEGL.dll
drwxr-xr-x  65 gleb  wheel      2210 Dec 26 07:18 .
drwxr-xr-x  56 gleb  wheel      1904 Dec 26 07:18 locales
-rw-r--r--   1 gleb  wheel      1060 Dec 26 07:18 LICENSE
drwxr-xr-x   4 gleb  wheel       136 Dec 26 09:23 ..
drwxr-xr-x   4 gleb  wheel       136 Dec 26 07:18 resources
-rw-r--r--   1 gleb  wheel        15 Dec 26 07:18 content_resources_200_percent.pak
-rw-r--r--   1 gleb  wheel         6 Dec 26 07:18 version

each extracted file is the same between versions.

comparing resources folders

There is difference in resources folder

$ du -sh 3.1.3/Cypress/resources
606M	3.1.3/Cypress/resources
$ du -sh 3.1.4/Cypress/resources
639M	3.1.4/Cypress/resources

Drilling down, seems the difference is due to packages/server 525M -> 560M

$ du -sh 3.1.3/Cypress/resources/app/packages/*
456K	3.1.3/Cypress/resources/app/packages/coffee
5.8M	3.1.3/Cypress/resources/app/packages/desktop-gui
232K	3.1.3/Cypress/resources/app/packages/driver
 29M	3.1.3/Cypress/resources/app/packages/electron
1.2M	3.1.3/Cypress/resources/app/packages/example
6.3M	3.1.3/Cypress/resources/app/packages/extension
 13M	3.1.3/Cypress/resources/app/packages/https-proxy
9.0M	3.1.3/Cypress/resources/app/packages/launcher
3.9M	3.1.3/Cypress/resources/app/packages/reporter
8.0K	3.1.3/Cypress/resources/app/packages/root
8.8M	3.1.3/Cypress/resources/app/packages/runner
525M	3.1.3/Cypress/resources/app/packages/server
3.0M	3.1.3/Cypress/resources/app/packages/socket
220K	3.1.3/Cypress/resources/app/packages/static
140K	3.1.3/Cypress/resources/app/packages/ts

$ du -sh 3.1.4/Cypress/resources/app/packages/*
456K	3.1.4/Cypress/resources/app/packages/coffee
5.8M	3.1.4/Cypress/resources/app/packages/desktop-gui
 16K	3.1.4/Cypress/resources/app/packages/driver
 29M	3.1.4/Cypress/resources/app/packages/electron
1.1M	3.1.4/Cypress/resources/app/packages/example
6.1M	3.1.4/Cypress/resources/app/packages/extension
 13M	3.1.4/Cypress/resources/app/packages/https-proxy
8.9M	3.1.4/Cypress/resources/app/packages/launcher
3.5M	3.1.4/Cypress/resources/app/packages/reporter
8.0K	3.1.4/Cypress/resources/app/packages/root
8.4M	3.1.4/Cypress/resources/app/packages/runner
560M	3.1.4/Cypress/resources/app/packages/server
2.9M	3.1.4/Cypress/resources/app/packages/socket
144K	3.1.4/Cypress/resources/app/packages/static
136K	3.1.4/Cypress/resources/app/packages/ts

Driving into server/node_modules, seems the difference is due to @ffmpeg-installer

$ du -sh 3.1.3/Cypress/resources/app/packages/server/node_modules/\@ffmpeg-installer
234M	3.1.3/Cypress/resources/app/packages/server/node_modules/@ffmpeg-installer

$ du -sh 3.1.4/Cypress/resources/app/packages/server/node_modules/\@ffmpeg-installer
342M	3.1.4/Cypress/resources/app/packages/server/node_modules/@ffmpeg-installer

which due to hat range and version upgrade might be different

3.1.3
"@ffmpeg-installer/ffmpeg": "1.0.15",
"@ffmpeg-installer/win32-ia32": "^4.0.4",
"@ffmpeg-installer/win32-x64": "^4.0.3",

3.1.4
"@ffmpeg-installer/ffmpeg": "1.0.15",
"@ffmpeg-installer/win32-ia32": "^4.1.0",
"@ffmpeg-installer/win32-x64": "^4.1.0",
@bahmutov
Copy link
Contributor Author

@ffmpeg-installer/ffmpeg versions

1.0.14   8 months          
1.0.15   7 months          
1.0.16   2 months          
1.0.17   9 days    latest
vers @ffmpeg-installer/win32-ia32
4.0.3    a year            
4.0.4    8 months          
4.1.0    9 days    latest
vers @ffmpeg-installer/win32-x64
4.0.2    a year            
4.0.3    8 months          
4.1.0    9 days    latest

So 9 days ago the ffmpeg binaries got a new version that we have included in cy 3.1.4

@bahmutov
Copy link
Contributor Author

Need to control the dependency updates better: #2644

@bahmutov
Copy link
Contributor Author

We have determined the source of the increased, and locked down production dependencies, and have established way to upgrade dependencies.

@jennifer-shehane
Copy link
Member

jennifer-shehane commented Jan 18, 2019

@bahmutov Does this mean the size will be appropriate in version 3.1.5?

will this also close #3000?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 30, 2019

Released in 3.1.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants