Bitbucket Pipeline does not finish the tests with firefox browser
Asked by Kimberling Yarihuaman:

Hi!

I have an issue when I try to run the tests with firefox browser in Bitbucket Pipeline, the tests never finish and after 2 hours shows the error -\> **"Exceeded build time limit of 120 minutes",**I don?t know why is happening that, because I?ve tried with Edge and Chrome browsers and they?re okay.

This issue has been happening for 5 days so I think it?s the last version of Firefox, because the previous time it was working. Also, I?ve tried with old versions but I?ve got the same problem.

Please, can you help me with that?

Thanks in advance.

![Captura de pantalla 2024-09-09 222158.png](https://community.atlassian.com/t5/image/serverpage/image-id/346412i3DAD2B9634CECD26/image-size/large?v=v2&px=999 "Captura de pantalla 2024-09-09 222158.png")


Answers:
author: Patrik S
body: Hey [@Kimberling Yarihuaman](/t5/user/viewprofilepage/user-id/5587991) ,

and welcome to the Community!

My understanding is that you have some tests implemented on your pipelines that test your code in different browsers, but for firefox specifically, it started to fail recently.

Would you mind elaborate on how you're executing these tests in pipelines? Are you using a [service container](https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/) in your pipelines step to emulate the browser, or using a different approach ?

If you feel comfortable in sharing here on community, it would greatly assist the investigation to see your YAML file. If you can share the particular step in YAML that is currently failing/stuck, it may help us to suggest possible next steps.

On a side note, I see you have access to a workspace with Premium subscription which is entitled to Premium support. If you'd like fast responses/turnaround, you can [create a support ticket here](https://support.atlassian.com/contact/) providing the link of the Premium workspace you're member of.

Thank you, [@Kimberling Yarihuaman](/t5/user/viewprofilepage/user-id/5587991) !

Patrik S

comments: author: kimberling yarihuaman
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) !

Thanks for your answer, so I?m using bitbucket-pipelines.yml file, I attached a screenshot about my steps in that file. I?m working with Cypress, Cucumber, Gherkin and Javascript to automate the tests.

I?am going to take into account the possibility to create a support ticket. In this case, should I provide the repository link of the Premium workspace? (sorry, but I don?t understand this part)

![Captura de pantalla 2024-09-11 162636.png](https://community.atlassian.com/t5/image/serverpage/image-id/346860i5C274390E6DBA73B/image-size/large?v=v2&px=999 "Captura de pantalla 2024-09-11 162636.png")

Thanks in advance.


author: Patrik S
body: Hello [@Kimberling Yarihuaman](/t5/user/viewprofilepage/user-id/5587991) ,

Thanks for sharing the screenshot.

I'm not really familiar with cypress, but one thing I can think of is your step running close to the memory limit, and somehow causing the tests to get stuck hence resulting in the build to timeout.

For that, I would suggest trying increasing the [step size](https://support.atlassian.com/bitbucket-cloud/docs/step-options/#Size) to 2x, so it will get 8GB of memory (compared to 4GB by default):

```
- step:
   name: Install dependencies and run tests in Firefox
   size: 2x
   script:
    - <your script commands>
```

If that doesn't work, you may want to try troubleshooting the pipeline locally to see if the same error happens and isolate if it only happens on the pipelines environment, or in your local environment as well:

* [Troubleshoot failed Bitbucket Pipelines locally with Docker](https://confluence.atlassian.com/bbkb/debug-failed-bitbucket-pipelines-locally-with-docker-1318882094.html)

Thank you, [@Kimberling Yarihuaman](/t5/user/viewprofilepage/user-id/5587991) !

Patrik S


author: kimberling yarihuaman
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) !

My pipeline is working well with the memory increase.

Thanks so much!


author: Patrik S
body: You're very welcome [@Kimberling Yarihuaman](/t5/user/viewprofilepage/user-id/5587991) !

Happy to hear that increasing the memory did the trick :)


author: kimberling yarihuaman
body: Yeah! [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) I have a question. Why could it be happening that? Because it?s working with size: 4x.


Tags: bitbucket-cloud

browser

cloud

firefox

test