[Infra][TRTLLM-6013] - Fix stage name in single stage test rerun report (#5672)

Signed-off-by: Yiqing Yan <yiqingy@nvidia.com>
Co-authored-by: Yanchao Lu <yanchaol@nvidia.com>
This commit is contained in:
Yiqing Yan 2025-07-15 11:27:21 +08:00 committed by GitHub
parent 01b2def5ef
commit 6b35afaf1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View File

@ -771,7 +771,7 @@ def collectTestResults(pipeline, testFilter)
trtllm_utils.llmExecStepWithRetry(pipeline, script: "apk add py3-pip")
trtllm_utils.llmExecStepWithRetry(pipeline, script: "pip3 config set global.break-system-packages true")
sh """
python3 llm/tests/integration/defs/test_rerun.py \
python3 llm/jenkins/test_rerun.py \
generate_rerun_report \
--output-file=rerun/rerun_report.xml \
--input-files=${inputfiles}

View File

@ -1111,7 +1111,7 @@ def rerunFailedTests(stageName, llmSrc, testCmdLine) {
// Generate rerun test lists
def failSignaturesList = trtllm_utils.getFailSignaturesList().join(",")
sh """
python3 ${llmSrc}/tests/integration/defs/test_rerun.py \
python3 ${llmSrc}/jenkins/test_rerun.py \
generate_rerun_tests_list \
--output-dir=${WORKSPACE}/${stageName}/ \
--input-file=${WORKSPACE}/${stageName}/results.xml \
@ -1184,12 +1184,15 @@ def rerunFailedTests(stageName, llmSrc, testCmdLine) {
}
}
// generate rerun report
// Specify the stage name correctly
sh "cd ${WORKSPACE}/${stageName} && sed -i 's/testsuite name=\"pytest\"/testsuite name=\"${stageName}\"/g' *.xml || true"
// Generate rerun report
inputFiles = ["${WORKSPACE}/${stageName}/results.xml",
"${WORKSPACE}/${stageName}/rerun_results_1.xml",
"${WORKSPACE}/${stageName}/rerun_results_2.xml"]
sh """
python3 ${llmSrc}/tests/integration/defs/test_rerun.py \
python3 ${llmSrc}/jenkins/test_rerun.py \
generate_rerun_report \
--output-file=${WORKSPACE}/${stageName}/rerun_results.xml \
--input-files=${inputFiles.join(",")}
@ -1197,7 +1200,7 @@ def rerunFailedTests(stageName, llmSrc, testCmdLine) {
// Update original results xml file with rerun results xml files for junit
sh """
python3 ${llmSrc}/tests/integration/defs/test_rerun.py \
python3 ${llmSrc}/jenkins/test_rerun.py \
merge_junit_xmls \
--output-file=${WORKSPACE}/${stageName}/results.xml \
--input-files=${inputFiles.join(",")} \