mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
infra: fix single-GPU stage failed will not raise error (#6165)
Signed-off-by: ZhanruiSunCh <184402041+ZhanruiSunCh@users.noreply.github.com>
This commit is contained in:
parent
9522cde464
commit
8454640ee1
@ -977,6 +977,9 @@ def launchStages(pipeline, reuseBuild, testFilter, enableFailFast, globalVars)
|
||||
def requireMultiGpuTesting = currentBuild.description?.contains("Require Multi-GPU Testing") ?: false
|
||||
echo "requireMultiGpuTesting: ${requireMultiGpuTesting}"
|
||||
if (!requireMultiGpuTesting) {
|
||||
if (singleGpuTestFailed) {
|
||||
error "Single-GPU test failed"
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@ -985,11 +988,7 @@ def launchStages(pipeline, reuseBuild, testFilter, enableFailFast, globalVars)
|
||||
echo "In the official post-merge pipeline, single-GPU test failed, whereas multi-GPU test is still kept running."
|
||||
} else {
|
||||
stage("[Test-x86_64-Multi-GPU] Blocked") {
|
||||
catchError(
|
||||
buildResult: 'FAILURE',
|
||||
stageResult: 'FAILURE') {
|
||||
error "This pipeline requires running multi-GPU test, but single-GPU test has failed."
|
||||
}
|
||||
error "This pipeline requires running multi-GPU test, but single-GPU test has failed."
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user