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

Unit Test Determinism #88

Merged
merged 3 commits into from
Nov 5, 2020

Conversation

marip8
Copy link
Collaborator

@marip8 marip8 commented Nov 3, 2020

CI fails somewhat often for this repository due to random number generation in the unit tests producing slightly unacceptable results from time to time. This PR changes the unit tests to be deterministic by providing a constant seed (0) to the various random number generators used throughout the tests. This PR also adds an optional seed parameter to the DHTransform class which uses a random number generator to create random joint states

@marip8 marip8 force-pushed the update/deterministic_unit_tests branch from 262593b to 0f347b7 Compare November 3, 2020 22:03
@marip8 marip8 force-pushed the update/deterministic_unit_tests branch from 0f347b7 to f1e6da7 Compare November 3, 2020 22:37
@marip8
Copy link
Collaborator Author

marip8 commented Nov 3, 2020

@schornakj can you review this as well?

@schornakj
Copy link
Contributor

@marip8 Looks good!

@marip8 marip8 merged commit 86ffd50 into Jmeyer1292:master Nov 5, 2020
@marip8 marip8 deleted the update/deterministic_unit_tests branch November 5, 2020 16:43
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

Successfully merging this pull request may close these issues.

2 participants