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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,664
Community Members
 
Community Events
184
Community Groups

CI Pipeline hangs when using nx with max-parallel higher than 1

Hi,

I'm using Bitbucket Cloud to run the tests of an nx project.

When `max-parallel` is set to a value higher than 1, the pipeline times out. It seems as if Bitbucket doesn't notice that the command has finished. When I set max-parallel to 1, it works.

 

Here's my yml file:

 

image: node:16

options:

max-time: 20 # configure default 20 minute timeout

pipelines:

pull-requests:

'**':

- step:

name: 'Lint, test, and build'

caches:

- node

script:

- npm ci

- npx nx workspace-lint

- npx nx format:check

- npx nx affected --target=lint --base=origin/master --parallel --max-parallel=3

- npx nx affected --target=test --base=origin/master --parallel --max-parallel=1 --ci --code-coverage

- npx nx affected --target=build --base=origin/master --head=HEAD --parallel --max-parallel=3

 

When changing `max-parallel` in the second to last line to "3", the pipeline won't finish. When running it locally on my machine, it finishes just fine. Any thoughts?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 14, 2022

Hi Johannes,

One possibility is that step may need more than 20 minutes to finish.

When `max-parallel` is set to a value higher than 1, is there any indication in the command's output that the command has finished doing what it is doing?

Is there an option to add verbose output to the command (that may show additional output about what is happening)?

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events