From 92bb3593f6ef1575c41c39a18341072bfb044f70 Mon Sep 17 00:00:00 2001 From: Bo Qiao Date: Fri, 6 May 2022 12:02:55 +0800 Subject: [PATCH] [test] Exit on error during Paddle windows test (#4910) * [test] Exit on error during Paddle windows test * Check if paddle test leaks memory * Increase device memory and reduce thread number * Revert "Check if paddle test leaks memory" This reverts commit e0522b0e520050fb50d2c338a2a7d0b2a363bfb0. * Disable paddle for non-paddle test --- .github/workflows/scripts/win_test.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/scripts/win_test.ps1 b/.github/workflows/scripts/win_test.ps1 index bc838b0478245..9cd94f1d66f30 100644 --- a/.github/workflows/scripts/win_test.ps1 +++ b/.github/workflows/scripts/win_test.ps1 @@ -15,6 +15,11 @@ if ("$env:TI_WANTED_ARCHS".Contains("cuda")) { } # Fail fast, give priority to the error-prone tests python tests/run_tests.py -vr2 -t1 -k "paddle" -a cpu +if (-not $?) { exit 1 } + +# Disable paddle for the remaining test +$env:TI_ENABLE_PADDLE = "0" + if ("$env:TI_WANTED_ARCHS".Contains("cuda")) { python tests/run_tests.py -vr2 -t4 -k "not torch and not paddle" -a cuda if (-not $?) { exit 1 }