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.

Bundeling takes long time to deploy

See original GitHub issue

This issue is a:

  • Bug / Performance improvement

Environment

Question Answer
Magento version 2.2.6
node.js version (node -v) v6.11.1
npm version (npm -v) 3.10.10

Description

This shop has 4 themes (which inherent from the same theme) and 2 languages. We see a huge increase in deployment time when the Javascript bundeling is enabled.

Normal deployment, without the Javascript bundeling enabled takes about 10 minutes. With Javascript bundeling enabled it takes more then 40 minutes. So bundeling and running uglify over the files increases the deployment time substantially with 30 minutes.

Expected result:

I expect to see a light increate in deployment time, because you are adding more steps to the deployment. But an increate 3 times is a bit much.

Possible solutions:

I see the uglify is stuck on the Javascript of the Magento_Swagger module for quite some time.

Log files

Log files of deployment. Bundeling occurs in the step “magento:bundle” at 05:20 ends at 35:07. So takes close to 30 minutes.

pipelineLog-581.txt

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
DrewMLcommented, Feb 25, 2019

After this issue was opened, I spent some time digging for tools that used the latest version of Uglify and parallelized the execution, but didn’t find anything that really did what I wanted.

I wrote a tiny tool to do this, and hope to publish it at some point. Should speed things up substantially (people see similar wins using webpack when switching to the Uglify webpack plugin that parallelizes the work).

0reactions
DrewMLcommented, Jul 17, 2019

As a hack for the time being, you can write a shell script (or node script) that uses multiple processes to minify the code, and then disable that optimization in your r.js config

Read more comments on GitHub >

github_iconTop Results From Across the Web

heroku deploy taking very long - Stack Overflow
Try using bundle package to cache the downloaded .gem files, and then run git add . && git commit -m "Vendor in Gems...
Read more >
RConnect Deployment 'Compressing the bundle' step takes ...
RConnect Deployment 'Compressing the bundle' step takes over 20 minutes, even in subsequent deployments. plumber, rstudio-connect, reticulate.
Read more >
Deploy is slow sometimes - Render community
In last couple of days, deploy is slower than usual. Usually, it finishes around 3min, but recently it takes 15 minutes ( maximum...
Read more >
How can I Troubleshoot why apply shcluster-bundle
... not work / takes very long time? erw550. Explorer. ‎05-30-2022 08:05 AM. Hello,. When I run the splunk apply cluster-bundle command it...
Read more >
Is there a way to speed up AWS CodeDeploy - Server Fault
If your deployments are grabbing gigabytes of data from S3, you'll find that takes some time for the data transfer (particularly on smaller...
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