[TESTS] Add global random seed for deterministic test#23
Merged
Conversation
FrankD412
previously approved these changes
Jan 24, 2026
Owner
FrankD412
left a comment
There was a problem hiding this comment.
@Stephen0512 -- thanks for the contribution! This started a while ago as a personal project, didn't know expect anyone to find it/use it!
Owner
|
Looks like I'll have to fix the CI -- I have local changes from forever ago it seems. I'll get it all working and throw up a PR soon. Sorry about that! |
Owner
|
@Stephen0512 -- I've merged #24 to handle packaging. It looks like my prior Python versioning was out of date since I haven't been developing much against this. I've set the minimum version to 3.10, but feel free to add versions if you need them. Once you rebase your pipelines should work. :) |
Owner
|
@Stephen0512 -- I rebased your branch as a heads up. |
FrankD412
approved these changes
Jan 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR sets a fixed global random seed for each pytest session to make tests deterministic and easier to debug.
Motivation
Some tests rely on randomness without an explicit seed, which can lead to non-deterministic behavior and make failures harder to reproduce, especially in CI environments.
Change
A global random seed is initialized at the start of each pytest session to ensure consistent behavior across test runs.
Benefits
The issue was identified during an ongoing research project.