Skip to content

fix ci - #128

Merged
energy-in-joles merged 1 commit into
mainfrom
ci_fix
Jun 3, 2026
Merged

fix ci#128
energy-in-joles merged 1 commit into
mainfrom
ci_fix

Conversation

@energy-in-joles

Copy link
Copy Markdown
Member

fix bug causing random movement test to fail

Copilot AI review requested due to automatic review settings June 3, 2026 20:30
@energy-in-joles
energy-in-joles merged commit 86d3ffc into main Jun 3, 2026
3 checks passed
@energy-in-joles
energy-in-joles deleted the ci_fix branch June 3, 2026 20:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to make the random_movement_test deterministic to prevent CI flakes by explicitly seeding RNGs before running the scenario.

Changes:

  • Add a NumPy import to allow seeding NumPy’s global RNG.
  • Seed both Python’s random and NumPy’s RNG at the start of the test to stabilize randomness across runs.

Comment on lines +145 to +146
random.seed(seed)
np.random.seed(seed)
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