Increase timeout for slow tests (#109206)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/109206
Approved by: https://github.com/huydhn
This commit is contained in:
Catherine Lee 2023-09-26 16:18:38 +00:00 committed by PyTorch MergeBot
parent 0dcea70bfd
commit 47adcd412f

View file

@ -601,8 +601,13 @@ def run_test(
and not RERUN_DISABLED_TESTS
and not options.continue_through_error
)
is_slow = "slow" in os.environ.get("TEST_CONFIG", "") or "slow" in os.environ.get(
"BUILD_ENVRIONMENT", ""
)
timeout = (
THRESHOLD * 3
THRESHOLD * 6
if is_slow
else THRESHOLD * 3
if should_file_rerun
and isinstance(test_module, ShardedTest)
and test_module.time is not None