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

Local testing of global_random_seed is not enough #28959

Open
jeremiedbb opened this issue May 6, 2024 · 3 comments
Open

Local testing of global_random_seed is not enough #28959

jeremiedbb opened this issue May 6, 2024 · 3 comments

Comments

@jeremiedbb
Copy link
Member

When adding global_random_seed to a test, it's not enough to check it locally, i.e. on a single machine. Numerical precision issues can come from various factors like OS, CPU, BLAS, ...

When adding global_random_seed, it's important to test all random seeds on all CI jobs. To do that, you need to push a commit with [all random seeds] and the list of tests to check in the commit message:

some message [all random seeds]
test_something
test_some_other_thing

If this is not done, we merge the PR and then the nightly builds fail every once in a while because the tolerance was barely too small for some seed.

@jeremiedbb jeremiedbb pinned this issue May 6, 2024
@github-actions github-actions bot added the Needs Triage Issue requires triage label May 6, 2024
@jeremiedbb jeremiedbb added Numerical Stability and removed Needs Triage Issue requires triage labels May 6, 2024
@kyrajeep
Copy link

kyrajeep commented May 20, 2024

@jeremiedbb I would like to contribute to this, but am new to CI. To improve this issue, my understanding is to add [all random seeds] in tests in .yml files in each CI. Is that correct?

@jeremiedbb
Copy link
Member Author

Hi @kyrajeep, there's no action needed regarding this issue, it's mostly a reminder for reviewers.

@kyrajeep
Copy link

Thank you for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants