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:
Zhanrui Sun 2025-07-18 22:39:32 +08:00 committed by GitHub
parent 9522cde464
commit 8454640ee1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}