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

Is it possible to only regenerate parallel-weights.json when the weights have changed? #180

Open
HerbCaudill opened this issue Dec 28, 2023 · 0 comments

Comments

@HerbCaudill
Copy link

Thanks for this library, it's cut my cypress execution time in half! Very grateful.

Question about the parallel-weights.json file:

I have it checked into source control, which I assume is what you want; and I would want to update it and commit a new version if the weights changed for whatever reason.

But it gets updated on every test run, even if the weights themselves don't change, because of millisecond-level differences in the timing. To avoid adding a lot of unnecessary noise to my commit log, I have to manually discard those changes.

I could wrap my test execution in a script that examines the modified file to see if the weights have changed, and discards the file changes if they haven't. But that feels like a hack, and since this seems like it would probably be a common concern, I wanted to check first (a) whether maybe I'm using this library wrong, or I've missed a better solution that already exists; and (b) if not, whether a pull request to add this option would be welcome.

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

1 participant