pytorch/test/distributed/elastic
Anthony Barbier 3f34d26040 Add __main__ guards to distributed tests (#154628)
This is the first PR of a series in an attempt to re-submit #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: https://github.com/pytorch/pytorch/pull/154628
Approved by: https://github.com/Skylion007
2025-06-04 14:39:57 +00:00
..
agent/server/test Add __main__ guards to distributed tests (#154628) 2025-06-04 14:39:57 +00:00
events Enable UFMT on all of test/distributed (#123539) 2024-04-17 06:46:02 +00:00
metrics Add None return type to init -- tests rest (#132376) 2024-08-01 15:44:51 +00:00
multiprocessing Add __main__ guards to distributed tests (#154628) 2025-06-04 14:39:57 +00:00
rendezvous Enable ruff F841 on distributed tests (#146131) 2025-02-01 03:06:16 +00:00
timer Fix unused Python variables in test/[a-d]* (#134665) 2024-12-13 22:13:12 +00:00
utils [elastic][test] fix race condition in test_barrier_timeout_rank_tracing (#150768) 2025-04-10 04:40:16 +00:00
test_control_plane.py Fix xrefs (#151888) 2025-04-25 21:27:27 +00:00