pytorch/tools/test
Rong Rong (AI Infra) 718db968b8 move CI related functions out of run_test.py (#61124)
Summary:
run_test.py currently does lots of downloading and test file/suite/case parsing. It doesn't work well outside of the CI environment

Restructured the run_test.py and created tools/test/test_selections.py and move all test selection logic (reordering, categorizing slow test, creating shards)

Follow up PRs should:
- refactor those file read/write logic entangled inside test_selections.py into stats/ folder
- restructure and add network independent test logics to test_test_selections.py

Pull Request resolved: https://github.com/pytorch/pytorch/pull/61124

Test Plan:
- tools/test
- CI

Related PR:
This follows the refactoring example in: https://github.com/pytorch/pytorch/issues/60373

Reviewed By: malfet

Differential Revision: D29558981

Pulled By: walterddr

fbshipit-source-id: 7f0fd9b4720a918d82918766c002295e8df04169
2021-07-06 09:06:42 -07:00
..
test_actions_local_runner.py Refactor local lint (#58798) 2021-05-24 13:52:53 -07:00
test_extract_scripts.py
test_mypy_wrapper.py First step to rearrange files in tools folder (#60473) 2021-06-24 10:13:58 -07:00
test_stats.py First step to rearrange files in tools folder (#60473) 2021-06-24 10:13:58 -07:00
test_test_history.py First step to rearrange files in tools folder (#60473) 2021-06-24 10:13:58 -07:00
test_test_selections.py move CI related functions out of run_test.py (#61124) 2021-07-06 09:06:42 -07:00
test_trailing_newlines.py First step to rearrange files in tools folder (#60473) 2021-06-24 10:13:58 -07:00
test_translate_annotations.py First step to rearrange files in tools folder (#60473) 2021-06-24 10:13:58 -07:00