From 47adcd412f4c5c50fcb0460ecc01e087b3520917 Mon Sep 17 00:00:00 2001 From: Catherine Lee Date: Tue, 26 Sep 2023 16:18:38 +0000 Subject: [PATCH] Increase timeout for slow tests (#109206) Pull Request resolved: https://github.com/pytorch/pytorch/pull/109206 Approved by: https://github.com/huydhn --- test/run_test.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/run_test.py b/test/run_test.py index 009bf013915..d0ed656192a 100755 --- a/test/run_test.py +++ b/test/run_test.py @@ -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