Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket pipelines: front end app build failed with memory limits

DenisDikusar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 1, 2024

Problem is the memory limit during client side app build step in pipelines

Here is the screenScreenshot 2024-02-01 at 11.54.47.png

The problem located in front end module - common lib 

We solved the problem by removing new export from the lib - it is 43 line of export.

common/src/index.tsx now has 42 line of code and every line it's a export of smaller module

Screenshot 2024-02-01 at 16.07.32.png

Before we figure out it, we tried to increase memory limit, but we were understand that the reason in source code, not in memory limit, at the same time after increase memory limit the build were failed.

Now we thinking about adding this common lib into separate step of build and build the lib as a remote app with needed exposed modules (in front end module federation terms).

The question is about this possible solution - Is it proper way of solving the problem or might you can give others ideas, suggestions

 

Thanks in advanced! 

 

1 answer

1 vote
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 2, 2024

Both of these are very basic suggestions, but hey:

  1. You can give both more mem and faster CPU to your build using "size: 2x"! We are using this setting with certain builds, and it is worth even if it costs more.
  2. Breaking a mega build to smaller units (modules) is always a good practice. If you can do it, you should do it.
DenisDikusar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 5, 2024

Hi, Aron Gombas!

Thank's a lot for the answer! Will play more with increasing memory limit. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events