Parallel Execution Of Cypress Automation Scripts Using Single Runner

Rajan_PK May 11, 2023

Hi Team - We are trying to achieve Parallel execution of our Cypress UI Automation Scripts using Bit Bucket. Tried to run our scripts in parallel but since we have only single self-hosted runner, only 1 step is getting executed and others are waiting in queue. 

So is there any way we can scale up the single runner? so that we would able to execute our automation scripts in parallel (Please note that since it will be difficult for us to register a bunch of duplicate runners looking forward for a solution on scaling up the single runner).

Request your inputs as this would help us to reduce our automation scripts execution time. 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2023

Hi Rajan and welcome to the community!

I'm afraid that this is not supported at the moment, a runner can run only one step at a time. It allocates the resources you provided to run your build, so when you have parallel steps it is queued up because the resources are currently used by one of the other steps.

The only way to run steps in parallel with a runner at the moment is by using multiple runners. In case you are using a Linux Shell, Windows, or MacOS runner, please keep in mind that deploying multiple runners to a single machine may lead to issues related to resource sharing/usage conflicts due to the shared build environment (the steps will not run in a separate Docker container as with Linux Docker runners, since these runners do not use Docker).

We have a feature request for allowing a single runner to run multiple steps:

I would suggest adding your vote in the features request (by selecting the Vote for this issue link) to express your interest, and also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates. Implementation of new features is done as per our policy here and any updates will be posted in the feature request.

Kind regards,

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events