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

Add --shard option #277

Open
andrewvc opened this issue May 13, 2021 · 3 comments
Open

Add --shard option #277

andrewvc opened this issue May 13, 2021 · 3 comments
Labels
discussion Discuss about API changes, enhancements enhancement New feature or request

Comments

@andrewvc
Copy link
Contributor

Users may want to distribute work across multiple machines (either with or without heartbeat). In that scenario they would only want to execute a subset of tests on each machine.

This issue proposes adding a --shard=M:N option, where M is the shard number, and N is the total number of shards. Given two machines running the same suite users would invoke synthetics with --shard=1:2 and --shard:2:2 based on hashes of the journey names.

@andrewvc andrewvc added enhancement New feature or request discussion Discuss about API changes, enhancements labels May 13, 2021
@paulb-elastic
Copy link
Contributor

Do you think this is still needed (a sharding specific strategy) now that we support filtering and tags that can be used to control what’s run? I know it’s not exactly the same, but do they provide enough flexibility for the use case?

@andrewvc
Copy link
Contributor Author

andrewvc commented Sep 9, 2021 via email

@vigneshshanmugam
Copy link
Member

Guess we can do this once we migrate to PW test at some point which would come as free as it can be done using PW test framework. https://playwright.dev/docs/test-parallel/#shard-tests-between-multiple-machines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discuss about API changes, enhancements enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants