Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multi-machine execution via weight file #76

Open
thisismydesign opened this issue Dec 20, 2021 · 5 comments
Open

Support multi-machine execution via weight file #76

thisismydesign opened this issue Dec 20, 2021 · 5 comments

Comments

@thisismydesign
Copy link

Hi,

Great tool. I'd like to further improve test speed by using multiple machines in the CI and split the tests between them using the generated weight file. I.e. commit weight file, then specify the group to be run: cypress-parallel --executors 5 --group 1

Is this possible or could it be supported?

Thanks!

@ISanjeevKumar
Copy link

Which CI tool are you using ? @thisismydesign

@thisismydesign
Copy link
Author

@ISanjeevKumar Github actions

@ISanjeevKumar
Copy link

I believe this is something that needs to handle by CI itself and adding this feature to this tool will make it more complex to use.

Azure has this inbuilt capability to distribute the test cases on multiple machine but I am not sure about Github Actions .

But If you want to scale up the parallel execution then you can use Github parallel jobs to run parallel tests on multiple machine and inside that machine you can use cypress-parallel to run the test cases parallel on multiple threads. This way I think you can save more time.

@thisismydesign
Copy link
Author

I'm not talking about cypress-parallel interacting with github actions in any way. Sure, I need to start more CI machines, but then I need to tell each machine which tests run, that's my issue. I would like to use the weight file for this. So I could tell cypress-parallel that

I have 5 ci machines and this is machine 1, given the committed weight file execute your share of the tests (i.e. the first ~20%)"

E.g.: cypress-parallel --executors 5 --group 1

@ISanjeevKumar
Copy link

Yes, I understand. This can be done with some tweaks in cypress automation framework instead of adding this support in cypress-parallel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants