Skip to content

Conversation

@yiqingy0
Copy link
Collaborator

@yiqingy0 yiqingy0 commented Dec 24, 2025

Summary by CodeRabbit

Release Notes

  • Chores

    • Updated CI job execution configuration to improve timeout handling for containerized operations.
  • Bug Fixes

    • Enhanced error handling to gracefully manage container cleanup operations.
    • Refined timeout logic for partition-based job scheduling to use dynamic values instead of fixed defaults.

✏️ Tip: You can customize this high-level summary in your review settings.

Description

Test Coverage

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

Details

run [--reuse-test (optional)pipeline-id --disable-fail-fast --skip-test --stage-list "A10-PyTorch-1, xxx" --gpu-type "A30, H100_PCIe" --test-backend "pytorch, cpp" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" --detailed-log --debug(experimental)]

Launch build/test pipelines. All previously running jobs will be killed.

--reuse-test (optional)pipeline-id (OPTIONAL) : Allow the new pipeline to reuse build artifacts and skip successful test stages from a specified pipeline or the last pipeline if no pipeline-id is indicated. If the Git commit ID has changed, this option will be always ignored. The DEFAULT behavior of the bot is to reuse build artifacts and successful test results from the last pipeline.

--disable-reuse-test (OPTIONAL) : Explicitly prevent the pipeline from reusing build artifacts and skipping successful test stages from a previous pipeline. Ensure that all builds and tests are run regardless of previous successes.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-PyTorch-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-PyTorch-1, xxx". Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--test-backend "pytorch, cpp" (OPTIONAL) : Skip test stages which don't match the specified backends. Only support [pytorch, cpp, tensorrt, triton]. Examples: "pytorch, cpp" (does not run test stages with tensorrt or triton backend). Note: Does NOT update GitHub pipeline status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests in addition to running L0 pre-merge pipeline.

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.

--extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx".

--detailed-log (OPTIONAL) : Enable flushing out all logs to the Jenkins console. This will significantly increase the log volume and may slow down the job.

--debug (OPTIONAL) : Experimental feature. Enable access to the CI container for debugging purpose. Note: Specify exactly one stage in the stage-list parameter to access the appropriate container environment. Note: Does NOT update GitHub check status.

For guidance on mapping tests to stage names, see docs/source/reference/ci-overview.md
and the scripts/test_to_stage_mapping.py helper.

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

@yiqingy0
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #29706 [ run ] triggered by Bot. Commit: 2789ff5

@tensorrt-cicd
Copy link
Collaborator

PR_Github #29706 [ run ] completed with state SUCCESS. Commit: 2789ff5
/LLM/main/L0_MergeRequest_PR pipeline #22821 completed with status: 'FAILURE'

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

@yiqingy0
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #29786 [ run ] triggered by Bot. Commit: 2789ff5

@tensorrt-cicd
Copy link
Collaborator

PR_Github #29786 [ run ] completed with state SUCCESS. Commit: 2789ff5
/LLM/main/L0_MergeRequest_PR pipeline #22893 completed with status: 'FAILURE'

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

@yiqingy0
Copy link
Collaborator Author

/bot run --disable-fail-fast

@yiqingy0
Copy link
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30088 [ run ] triggered by Bot. Commit: 130a0d1

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30088 [ run ] completed with state SUCCESS. Commit: 130a0d1
/LLM/main/L0_MergeRequest_PR pipeline #23150 completed with status: 'FAILURE'

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

@yiqingy0
Copy link
Collaborator Author

/bot run

@yiqingy0 yiqingy0 marked this pull request as ready for review December 30, 2025 02:15
@yiqingy0 yiqingy0 requested review from a team as code owners December 30, 2025 02:15
@tensorrt-cicd
Copy link
Collaborator

PR_Github #30110 [ run ] triggered by Bot. Commit: 130a0d1

@yiqingy0 yiqingy0 requested a review from chzblych December 30, 2025 02:15
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 30, 2025

📝 Walkthrough

Walkthrough

Jenkins L0_Test.groovy now accepts and propagates Slurm partition timeout values through Docker and Enroot runtime methods. Timeout logic was updated to derive from partition configuration instead of a constant default. Library imports and error handling for container cleanup were also adjusted.

Changes

Cohort / File(s) Summary
Jenkins Timeout and Runtime Configuration
jenkins/L0_Test.groovy
Updated library import to reference user-specific bloom-jenkins-shared-lib branch; introduced partitionTimeout parameter to runInDockerOnNodeMultiStage and runInEnrootOnNode methods; replaced constant timeout SlurmConfig.DEFAULT_TIMEOUT - 10 with dynamic partitionTimeout - 10; added defensive error handling to tolerate "Failed to kill container" errors in cleanup logic; updated call sites to resolve and pass partition timeout values with sensible defaults.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is entirely empty; only the template headers and GitHub bot documentation are present with no actual explanation of changes, rationale, test coverage, or checklist completion. Author must fill in the Description section explaining what changes were made and why, complete the Test Coverage section listing relevant tests, and ensure PR Checklist items are properly reviewed before resubmitting.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically references the main change: using SlurmPartition's time attribute as a timeout threshold. It includes the JIRA ticket, type [infra], and summarizes the primary change concisely.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (1)
jenkins/L0_Test.groovy (1)

3006-3012: Consider more robust error handling for container cleanup.

The error handling for "Failed to kill container" has potential issues:

  1. String matching on error messages is fragile and may break with Docker version changes
  2. Could potentially mask legitimate container kill failures that need attention
  3. No logging of the ignored error for debugging purposes
🔎 Suggested improvement
     } catch (Exception e) {
         if (e.getMessage()?.contains("Failed to kill container")) {
-            echo "Known benign error ignored: ${e.getMessage()}"
+            // Log the full error for debugging but don't fail the build
+            echo "WARNING: Benign Docker cleanup error ignored. This may indicate Docker daemon issues."
+            echo "Error details: ${e.getMessage()}"
+            echo "Stack trace: ${e.getStackTrace().join('\n')}"
         } else {
             throw e // Re-throw if it's a different Exception
         }
     }

Consider documenting why this error is considered benign and under what conditions it occurs.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 965578c and 130a0d1.

📒 Files selected for processing (1)
  • jenkins/L0_Test.groovy
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: Funatiq
Repo: NVIDIA/TensorRT-LLM PR: 6754
File: tests/integration/test_lists/test-db/l0_a30.yml:41-47
Timestamp: 2025-08-13T11:07:11.772Z
Learning: In TensorRT-LLM test configuration files like tests/integration/test_lists/test-db/l0_a30.yml, TIMEOUT values are specified in minutes, not seconds.
Learnt from: yuanjingx87
Repo: NVIDIA/TensorRT-LLM PR: 7176
File: jenkins/L0_Test.groovy:361-389
Timestamp: 2025-08-22T19:08:10.822Z
Learning: In Slurm job monitoring scripts, when jobs have built-in timeouts configured (via --time parameter or partition/system timeouts), an additional timeout mechanism in the monitoring loop is typically unnecessary. When a Slurm job times out, it gets terminated and removed from the active queue, causing `squeue -j $jobId` to return non-zero and break monitoring loops naturally. The job's final status can then be checked via `sacct` to determine if it failed due to timeout.
Learnt from: fredricz-20070104
Repo: NVIDIA/TensorRT-LLM PR: 7785
File: tests/integration/defs/perf/utils.py:321-333
Timestamp: 2025-09-17T06:01:01.836Z
Learning: In test infrastructure code for disaggregated serving tests, prefer logging errors and continuing execution rather than raising exceptions on timeout, to avoid disrupting test cleanup and causing cascading failures.
📚 Learning: 2025-08-22T19:08:10.822Z
Learnt from: yuanjingx87
Repo: NVIDIA/TensorRT-LLM PR: 7176
File: jenkins/L0_Test.groovy:361-389
Timestamp: 2025-08-22T19:08:10.822Z
Learning: In Slurm job monitoring scripts, when jobs have built-in timeouts configured (via --time parameter or partition/system timeouts), an additional timeout mechanism in the monitoring loop is typically unnecessary. When a Slurm job times out, it gets terminated and removed from the active queue, causing `squeue -j $jobId` to return non-zero and break monitoring loops naturally. The job's final status can then be checked via `sacct` to determine if it failed due to timeout.

Applied to files:

  • jenkins/L0_Test.groovy
🔇 Additional comments (3)
jenkins/L0_Test.groovy (3)

3017-3017: All call sites for runInEnrootOnNode are correctly updated. The single invocation at slurmRunner = runInEnrootOnNode(nodeName, partitionTimeout) properly passes both the label and partitionTimeout parameters.


2988-2988: All call sites are properly updated with the new partitionTimeout parameter.

The only invocation in the codebase (line 700) correctly passes partitionTimeout as the 4th argument. No broken call sites were found.


698-704: No action needed. Both runInDockerOnNodeMultiStage and runInEnrootOnNode already apply identical timeout logic (timeout(time: partitionTimeout - 10, unit: 'MINUTES')), correctly reducing the partition timeout by 10 minutes before execution. The different defaults (DEFAULT_TIMEOUT vs DEFAULT_TIMEOUT_SHORT) are intentional for their respective container runtimes. Since partition.time comes from SlurmConfig.partitionConfig (configured externally in the shared library), validation at this point is unnecessary—the value is configuration-managed, not user-provided.

Likely an incorrect or invalid review comment.

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30110 [ run ] completed with state SUCCESS. Commit: 130a0d1
/LLM/main/L0_MergeRequest_PR pipeline #23171 completed with status: 'FAILURE'

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

yiqingy0 and others added 3 commits December 30, 2025 14:32
Co-authored-by: Yanchao Lu <[email protected]>
Signed-off-by: Yiqing Yan <[email protected]>
Co-authored-by: Yanchao Lu <[email protected]>
Signed-off-by: Yiqing Yan <[email protected]>
Signed-off-by: Yiqing Yan <[email protected]>
@yiqingy0
Copy link
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30140 [ run ] triggered by Bot. Commit: ea5f3d7

Signed-off-by: Yiqing Yan <[email protected]>
@yiqingy0
Copy link
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30149 [ run ] triggered by Bot. Commit: 6dbfea1

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30149 [ run ] completed with state SUCCESS. Commit: 6dbfea1
/LLM/main/L0_MergeRequest_PR pipeline #23199 completed with status: 'SUCCESS'
Pipeline passed with automatic retried tests. Check the rerun report for details.

@yiqingy0
Copy link
Collaborator Author

/bot run --stage-list "DGX_B200-4_GPUs-PyTorch-Ray-1,DGX_B200-8_GPUs-PyTorch-1,DGX_B200-4_GPUs-PyTorch-Post-Merge-1,DGX_B200-4_GPUs-PyTorch-Post-Merge-2" --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30187 [ run ] triggered by Bot. Commit: 6dbfea1

@yiqingy0
Copy link
Collaborator Author

/bot run --stage-list "DGX_B200-4_GPUs-PyTorch-Ray-1,DGX_B200-8_GPUs-PyTorch-1,DGX_B200-4_GPUs-PyTorch-Post-Merge-1,DGX_B200-4_GPUs-PyTorch-Post-Merge-2" --disable-fail-fast --disable-reuse-test

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30188 [ run ] triggered by Bot. Commit: 6dbfea1

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30188 [ run ] completed with state SUCCESS. Commit: 6dbfea1
/LLM/main/L0_MergeRequest_PR pipeline #23234 (Partly Tested) completed with status: 'SUCCESS'

@yiqingy0
Copy link
Collaborator Author

/bot run --stage-list "GB200-8_GPUs-2_Nodes-PyTorch-1,DGX_B200-4_GPUs-PyTorch-Post-Merge-1" --disable-fail-fast --disable-reuse-test

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30226 [ run ] triggered by Bot. Commit: 6dbfea1

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30226 [ run ] completed with state SUCCESS. Commit: 6dbfea1
/LLM/main/L0_MergeRequest_PR pipeline #23269 (Partly Tested) completed with status: 'SUCCESS'

Signed-off-by: Yiqing Yan <[email protected]>
@yiqingy0
Copy link
Collaborator Author

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30246 [ skip ] triggered by Bot. Commit: 75b9c9e

@tensorrt-cicd
Copy link
Collaborator

PR_Github #30246 [ skip ] completed with state SUCCESS. Commit: 75b9c9e
Skipping testing for commit 75b9c9e

@yiqingy0 yiqingy0 merged commit fdc0368 into NVIDIA:main Dec 31, 2025
6 of 7 checks passed
@yiqingy0 yiqingy0 deleted the add_attribute_time branch December 31, 2025 07:02
videodanchik pushed a commit to videodanchik/TensorRT-LLM that referenced this pull request Jan 14, 2026
…eshold (NVIDIA#10254)

Signed-off-by: Yiqing Yan <[email protected]>
Co-authored-by: Yanchao Lu <[email protected]>
Signed-off-by: Daniil Kulko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants