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

Bitbucket custom runner npm step lasts very long time

Filip Baszak May 17, 2024

I've configured bitbucket custom runner for repository pipelines and everything works fine, instead of first task of pipelines: npm install 

Complete caches are fetched correctly and I have no idea why it takes so long (4x longer than on bitbucket default pipelines), but any task which comes after first step has very good performance (better than in default bitbucket).

I have set up custom runner using docker in linux docs:
https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-use-runners-for-linux/

Runner is running on my local computer.

Container in which runner runs use only up to 2GB of memory, whats a bit strange, beacuse in bitbucket-pipelines.yaml, I have configuration which increase size (size: x2).

Does anybody had similar issue? What could be causing this problem? Docker container settings or maybe network conneting on my local system?

 

2 answers

1 accepted

0 votes
Answer accepted
Filip Baszak May 23, 2024

Okay, so I did a bit of testing and figured out that npm commands are so slow due to network speed on WSL.

If anyone will have same problem, I leave very helpful link:

https://github.com/microsoft/WSL/issues/4901

1 vote
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 20, 2024

G'day, @Filip Baszak 

It's challenging to determine what's happening without reviewing your pipeline build and the runner logs. I see that you have a workspace on a paid plan. Could you please raise a support ticket with us at our Support portal?

We would love to review this behavior and investigate it further.

Regards,
Syahrul

Filip Baszak May 22, 2024

Thanks for answer @Syahrul , in fact it's not an issue, I was wondering if anybody had similar problem

Suggest an answer

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

Atlassian Community Events