Pipeline is too slow or appears like hung when Maven Unit tests are run

Krishna Mukdapu October 17, 2020

We have quite a large set of unit tests and the total time needed to run all unit tests is about 25 minutes when tests are run on a developer machine. However, the same unit tests when run through Bitbucket Pipeline, it appears to be running forever and build fails due to time out (as the build timeout is set to 120 minutes). Can an expert advise how Bitbucket Pipeline can be configured to run my tests quicker? Please find the Pipeline our config YAML file for your reference. We tried with/without size: 2x and did not notice much difference. Our expectation is to finish running tests in ~ 25 mins (or less, if possible) and the current situation is that it seems to be taking > 120 mins and the build is timing out.

 

pipelines:
branches:
dev:
- step:
size: 2x
name: Deploy to Development
deployment: development
caches:
- maven
script:
- cd <project folder>
- mvn clean install 

 

1 answer

3 votes
Josh April 5, 2022

2 years later same issues lol

Ismoil Shokirov March 26, 2023

almost 3 years later, nothing changed lol

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events