-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Add __main__ guards to distributed tests #154628
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
Add __main__ guards to distributed tests #154628
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/154628
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ You can merge normally! (1 Unrelated Failure)As of commit aa72dd0 with merge base 0d0058d ( UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This is the first PR of a series in an attempt to re-submit pytorch#134592 as smaller PRs.
7caacaa
to
aa72dd0
Compare
@Skylion007 Could you please merge the PR if you're happy with it? (I don't have the permissions to do it) The only failure is in executorch and is unrelated to this PR (It fails to install an old version of torch nightlies for some reason) |
@pytorchmergebot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This is the first PR of a series in an attempt to re-submit pytorch#134592 as smaller PRs. In distributed tests: - Ensure all files which should call run_tests do call run_tests. - Raise a RuntimeError on tests which have been disabled (not run) - Remove any remaining uses of "unittest.main()"" Cc @wconstab @clee2000 Pull Request resolved: pytorch#154628 Approved by: https://github.com/Skylion007
This is the first PR of a series in an attempt to re-submit #134592 as smaller PRs.
In distributed tests:
Cc @wconstab @clee2000
cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k