Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why pipelines running time has increased for the same commit?

Daniel Simard
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!
December 16, 2021

I have this pipeline that ran on December 7th, 2021 for ~20 minutes:

pipeline01.png

 

We noticed a increase in build times so I ran the build on the same commit on December 15th, 2021 and it took ~45 minutes:

pipeline02.png

Then I ran the build on the same commit yesterday and it took ~60 minutes:

pipeline03.png

Did you notice the same thing on your builds? What could cause that?

1 answer

0 votes
Craig Castle-Mead
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2021

Hi @Daniel Simard 

https://jira.atlassian.com/browse/BCLOUD-15694 states a few possible reasons:

The two main contributors to build time variations on Pipelines are:

  • External resources, like Docker images or dependencies that need to be downloaded from the internet. These sometimes vary a lot in how long they take to retrieve from external services.
  • Variation in CPU availability in Pipelines. We run your builds as Docker containers in a cluster shared with other Bitbucket customers, so there can be CPU contention on our hosts during busy periods. Sometimes you get on a quiet node and your build executes quickly, other times it may have contention and complete more slowly.

On the latter, we're experimenting on ways to improve this while still allowing customers to get burst CPU usage when they need it. We're tracking this as BCLOUD-13079, so please watch that issue if you want to stay updated.

 

 

If your build process relies on third party services (package installers, rest APIs etc) then you also need to consider whether those dependent services are responding slower. I don't use Pipelines (not on Bitbucket cloud), but can you get more detailed logging on steps 2 and 3 - ideally with timestamps and see if there's a particular command that has increased and use that to continue your investigation?

CCM

Daniel Simard
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!
January 7, 2022

External resources in both builds took about 2 minutes, it wasn't that.

 

Variation in CPU availability in Pipelines. Build time was constantly higher for a couple of weeks. It's not like there was moments during the day that the builds were as fast as before.

 

How it was solved. Right now, it looks like we're back to our previous low build times of a month ago. I wrote to the billing department, maybe it was that. I'll reply here if we get back to high build times.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events