Skip to content

Commit 43cd23f

Browse files
authored
[TRTLLMINF-45][infra] Upload CI agent failure analysis to SwiftStack (#13291)
Signed-off-by: Derek Pitman <[email protected]>
1 parent 837a097 commit 43cd23f

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

jenkins/L0_MergeRequest.groovy

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,20 @@ pipeline {
13921392
def analysis = trtllm_utils.analyzePipelineFailureWithAgent(
13931393
this, env.JOB_NAME, env.BUILD_NUMBER, prNumber)
13941394
if (analysis) {
1395-
echo "=== CI Agent Failure Analysis ===\n${analysis}"
1395+
writeFile file: 'ci_agent_analysis.txt', text: analysis
1396+
def bucket = 'sw-tensorrt-ci-analysis'
1397+
def key = "${env.JOB_NAME}/${env.BUILD_NUMBER}/failure_analysis.txt"
1398+
container("alpine") {
1399+
trtllm_utils.llmExecStepWithRetry(this, script: 'apk add --no-cache aws-cli')
1400+
withCredentials([string(
1401+
credentialsId: 'svc_tensorrt-swift-stack-key',
1402+
variable: 'AWS_SECRET_ACCESS_KEY')]) {
1403+
trtllm_utils.llmExecStepWithRetry(this, script:
1404+
"AWS_ACCESS_KEY_ID=svc_tensorrt aws s3 cp ci_agent_analysis.txt" +
1405+
" s3://${bucket}/${key} --endpoint-url https://pbss.s8k.io")
1406+
}
1407+
}
1408+
echo "CI Agent Failure Analysis: https://pbss.s8k.io/${bucket}/${key}"
13961409
}
13971410
} catch (Exception e) {
13981411
// Analysis is best-effort; do not fail the pipeline

0 commit comments

Comments
 (0)