Skip to content

Set torch seed for pytest#19651

Merged
GregoryComer merged 1 commit into
pytorch:mainfrom
GregoryComer:test-seed
May 18, 2026
Merged

Set torch seed for pytest#19651
GregoryComer merged 1 commit into
pytorch:mainfrom
GregoryComer:test-seed

Conversation

@GregoryComer
Copy link
Copy Markdown
Member

As per #19650, set a global deterministic seed for pytorch. This should reduce the number of flakes. Setting it in conftest.py should set it for all pytest runs, which includes our CI jobs.

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 18, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19651

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 New Failure, 8 Pending

As of commit 4ad71d2 with merge base d62addb (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 18, 2026
@GregoryComer GregoryComer changed the title Test seed Set torch seed for pytest May 18, 2026
@GregoryComer GregoryComer added the release notes: none Do not include this in the release notes label May 18, 2026
@GregoryComer GregoryComer merged commit f2f0b72 into pytorch:main May 18, 2026
173 of 174 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants