Rayrun
← Back to Discord Forum

The --shard option

Does the --shard option use consistent hashing, assuming the denominator stays the same? In other words, if I add or remove test cases, is it guaranteed that all other cases will continue to be mapped to the same shard? Thank you!

This thread is trying to answer question "Does the `--shard` option use consistent hashing when test cases are added or removed?"

2 replies

No guarantees, I think tests are sorted alphabetically and then sharded. If you add/remove tests then the order might change.

Got it, thanks!

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.