Skip to content

[TESTS] Add global random seed for deterministic test#2

Open
Stephen0512 wants to merge 1 commit into
rtmigo:stagingfrom
Stephen0512:staging
Open

[TESTS] Add global random seed for deterministic test#2
Stephen0512 wants to merge 1 commit into
rtmigo:stagingfrom
Stephen0512:staging

Conversation

@Stephen0512

Copy link
Copy Markdown

Description

This PR sets a fixed global random seed for each pytest session, making tests deterministic and easier to debug.

Motivation

Some tests rely on randomness without setting an explicit seed. This can result in nondeterministic behavior and make failures difficult to reproduce, especially in CI environments.

Changes

A global random seed is initialized at the beginning of each pytest session to ensure consistent behavior across test runs.

Benefits

  • Reproducible test results
  • Easier debugging of failures
  • More consistent CI behavior

The issue was identified during an ongoing research project.

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.

1 participant