mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
[TRTLLM-4886][infra]Try another timeout opt to exit test thread directly instead of gracefully (#4341)
* Try another timeout opt to kill test thread Signed-off-by: qqiao <qqiao@nvidia.com> * Return true when try to delete non-existing result file Signed-off-by: qqiao <qqiao@nvidia.com> * quick test for the result file Signed-off-by: qqiao <qqiao@nvidia.com> * Change back the global timeout setting Signed-off-by: qqiao <qqiao@nvidia.com> * Try to kill test in internal pytest Signed-off-by: qqiao <qqiao@nvidia.com> --------- Signed-off-by: qqiao <qqiao@nvidia.com>
This commit is contained in:
parent
a6f2a1e918
commit
27bdd0c82d
@ -1013,6 +1013,7 @@ def runLLMTestlistOnPlatformImpl(pipeline, platform, testList, config=VANILLA_CO
|
||||
extraInternalEnv,
|
||||
"pytest",
|
||||
"-v",
|
||||
"--timeout-method=thread",
|
||||
"--apply-test-list-correction",
|
||||
"--splitting-algorithm least_duration",
|
||||
"--timeout=${pytestTestTimeout}",
|
||||
@ -1122,7 +1123,7 @@ def runLLMTestlistOnPlatform(pipeline, platform, testList, config=VANILLA_CONFIG
|
||||
sh """
|
||||
ls -all ${stageName}/
|
||||
if ! grep -q '<testcase' ${stageName}/results.xml; then
|
||||
rm ${stageName}/results.xml
|
||||
rm ${stageName}/results.xml || true
|
||||
fi
|
||||
"""
|
||||
def llmPath = sh (script: "realpath .", returnStdout: true).trim()
|
||||
|
||||
@ -122,6 +122,7 @@ def test_unittests_v2(llm_root, llm_venv, case: str, output_dir):
|
||||
ignore_opt,
|
||||
"-v",
|
||||
"--timeout=1600",
|
||||
"--timeout-method=thread",
|
||||
]
|
||||
|
||||
if dry_run:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user