You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have this pipeline that ran on December 7th, 2021 for ~20 minutes:
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:
Then I ran the build on the same commit yesterday and it took ~60 minutes:
Did you notice the same thing on your builds? What could cause that?
https://jira.atlassian.com/browse/BCLOUD-15694 states a few possible reasons:
The two main contributors to build time variations on Pipelines are:
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?
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.