Skip to content

Commit 518bcd5

Browse files
committed
fix
Signed-off-by: Yiqing Yan <[email protected]>
1 parent 452540e commit 518bcd5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

jenkins/L0_Test.groovy

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,13 +1839,15 @@ def rerunFailedTests(stageName, llmSrc, testCmdLine, resultFileName="results.xml
18391839

18401840
// Generate rerun test lists
18411841
def failSignaturesList = trtllm_utils.getFailSignaturesList().join(",")
1842-
sh """
1842+
sh(script: """
1843+
set +x # Disable debug mode
18431844
python3 ${llmSrc}/jenkins/scripts/test_rerun.py \
18441845
generate_rerun_tests_list \
18451846
--output-dir=${rerunDir}/ \
18461847
--input-file=${WORKSPACE}/${stageName}/${resultFileName} \
18471848
--fail-signatures="${failSignaturesList}"
1848-
"""
1849+
set -x # Enable debug mode
1850+
""")
18491851

18501852
// If there are some failed tests that cannot be rerun (e.g. test duration > 10 min and no known failure signatures),
18511853
// fail the stage immediately without attempting any reruns
@@ -3196,7 +3198,7 @@ def launchTestJobs(pipeline, testFilter)
31963198
try {
31973199
trtllm_utils.llmStageWithRetry(pipeline, stageName, {
31983200
GlobalState.stageAttemptTimes[stageName] = GlobalState.stageAttemptTimes.getOrDefault(stageName, 0) + 1
3199-
echo "GlobalState.stageAttemptTimes[${stageName}]: ${GlobalState.stageAttemptTimes[stageName]}"
3201+
echo "${stageName} attempt times: ${GlobalState.stageAttemptTimes[stageName]}"
32003202
trtllm_utils.launchKubernetesPod(pipeline, values[0], "trt-llm", {
32013203
values[1]()
32023204
})
@@ -3235,7 +3237,7 @@ def publishJunitTestResults(pipeline, stageName, stageIsInterrupted) {
32353237
} catch (Exception e) {
32363238
// wget returns exit code 8 for server errors (404, 500, etc.)
32373239
if (e.message.contains("exit code 8") || e.message.contains("404")) {
3238-
echo "Test result not found (HTTP error), skip to upload test result."
3240+
echo "Test result not found, skip to upload test result."
32393241
return
32403242
}
32413243
throw e

jenkins/scripts/test_rerun.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def generate_rerun_tests_list(outdir, xml_filename, failSignaturesList):
2424
# - If test duration > 5 min and <= 10 min: add to rerun_1.txt (will rerun 1 time)
2525
# - If test duration > 10 min but contains fail signatures in error message: add to rerun_1.txt
2626
# - If test duration > 10 min and no known failure signatures: add to rerun_0.txt (will not rerun)
27-
print(failSignaturesList)
2827

2928
rerun_0_filename = os.path.join(outdir, 'rerun_0.txt')
3029
rerun_1_filename = os.path.join(outdir, 'rerun_1.txt')

0 commit comments

Comments
 (0)