Skip to content

Conversation

QiJune
Copy link
Collaborator

@QiJune QiJune commented Sep 9, 2025

Summary by CodeRabbit

  • Tests
    • Added 2‑GPU DGX H100 configurations for PyTorch to the L0 test matrix.
    • Expanded multi‑GPU selection to include 2‑GPU runs in pre‑ and post‑merge workflows.
    • Introduced dedicated 2‑GPU gating with a broader, diversified test suite.
    • Streamlined 4‑GPU PyTorch gating by narrowing scope and pruning redundant tests.
  • Chores
    • Optimized CI/test execution by rebalancing coverage across 2‑ and 4‑GPU paths.
    • No changes to public interfaces.

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

  • 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.

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.

@QiJune QiJune requested review from a team as code owners September 9, 2025 02:06
@QiJune
Copy link
Collaborator Author

QiJune commented Sep 9, 2025

/bot run --only-multi-gpu-test

Copy link
Contributor

coderabbitai bot commented Sep 9, 2025

📝 Walkthrough

Walkthrough

Adds DGX H100 2- and 4-GPU PyTorch entries to the Jenkins L0 matrix and expands multi-GPU selection to include 2-GPU jobs. Introduces a 2-GPU gating block in the DGX H100 test list and narrows/simplifies the 4-GPU PyTorch test set, adjusting specific markers and pruning many tests.

Changes

Cohort / File(s) Summary of Changes
Jenkins L0 matrix updates
jenkins/L0_Test.groovy
Added DGX_H100-2_GPUs-PyTorch-Others-1 and DGX_H100-4_GPUs-PyTorch-Others-1 entries. Expanded multiGpuJobs and multiGpuJobsPostMerge to include "2_GPUs". No interface/signature changes.
DGX H100 test gating and suites
tests/integration/test_lists/test-db/l0_dgx_h100.yml
Added 2-GPU PyTorch pre-merge gating (Ubuntu, H100), enumerating multi-GPU tests and accuracy suites. Adjusted 4-GPU gating to target gpu4 only. Substantially pruned 4-GPU PyTorch tests, removing many disaggregated-serving, AutoDeploy, and specific model/test variants. Other backends largely unchanged.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Dev as Developer
  participant Jenkins as Jenkins L0 Pipeline
  participant Matrix as Test Matrix
  participant DGX as DGX H100 Nodes

  Dev->>Jenkins: Trigger pre/post-merge CI
  Jenkins->>Matrix: Load L0 config
  alt Multi-GPU selection
    Matrix-->>Jenkins: Include 2-, 4-, 8-GPU job keys (updated)
  end
  par 2-GPU path
    Jenkins->>DGX: Schedule dgx-h100-x2 jobs
    DGX-->>Jenkins: Run 2-GPU PyTorch suite (new gate)
  and 4-GPU path
    Jenkins->>DGX: Schedule dgx-h100-x4 jobs
    DGX-->>Jenkins: Run pruned 4-GPU PyTorch suite (gpu4 marker)
  end
  Jenkins-->>Dev: Report results
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • EmmaQiaoCh
  • chzblych
  • kxdc

Pre-merge checks (2 passed, 1 warning)

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description still contains only the instructional template and lacks any filled-in content for the summary, description, and test coverage sections, so the core information about what was changed and how it is tested is missing. Please replace the template comments with a concise summary of the changes, provide detailed Description and Test Coverage sections listing relevant tests, and remove or update the placeholder instructions.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title accurately describes the addition of the DGX_H100 2-GPU PyTorch pipeline, which is a real part of the changeset, though it omits the addition of the 4-GPU pipeline and accompanying test adjustments.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
		  - name: "Undocumented Breaking Changes"
			  mode: "warning"
			  instructions: |
				  Flag potential breaking changes that are not documented:
				  1. Identify changes to public APIs/exports, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints (including removed/renamed items and changes to types, required params, return values, defaults, or behavior).
				  2. Ignore purely internal/private changes (e.g., code not exported from package entry points or marked internal).
				  3. Verify documentation exists: a "Breaking Change" section in the PR description and updates to CHANGELOG.md.

Please share your feedback with us on this Discord post.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

@tensorrt-cicd
Copy link
Collaborator

PR_Github #18125 [ run ] triggered by Bot

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: 0

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

2349-2352: 2‑GPU included in multi‑GPU filters — add a post‑merge 2‑GPU stage for parity

With ONLY_MULTI_GPU_TEST + IS_POST_MERGE=true, only keys containing "Post-Merge" are kept; there’s no 2‑GPU post‑merge stage, so nothing runs. Consider adding a 2‑GPU post‑merge entry to x86TestConfigs.

Apply near existing post‑merge entries:

+        "DGX_H100-2_GPUs-PyTorch-Post-Merge-1": ["dgx-h100-x2", "l0_dgx_h100", 1, 1, 2],
tests/integration/test_lists/test-db/l0_dgx_h100.yml (1)

3-37: New 2‑GPU Ubuntu H100 PyTorch gate — align selection and env

Looks good. Two small checks:

  • Ensure the runtime reports linux_distribution_name matching "ubuntu*" (container/base image mismatch would filter this out).
  • Optional: narrow the multi_gpu unittest selection to gpu2 to avoid accidental pickup of non‑2‑GPU parametrizations.
-  - unittest/_torch/multi_gpu -m "not post_merge" TIMEOUT (90)
+  - unittest/_torch/multi_gpu -m "gpu2 and not post_merge" TIMEOUT (90)
📜 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 d96c54d and c46f001.

📒 Files selected for processing (2)
  • jenkins/L0_Test.groovy (2 hunks)
  • tests/integration/test_lists/test-db/l0_dgx_h100.yml (2 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-08-26T09:49:04.956Z
Learnt from: pengbowang-nv
PR: NVIDIA/TensorRT-LLM#7192
File: tests/integration/test_lists/test-db/l0_dgx_b200.yml:56-72
Timestamp: 2025-08-26T09:49:04.956Z
Learning: In TensorRT-LLM test configuration files, the test scheduling system handles wildcard matching with special rules that prevent duplicate test execution even when the same tests appear in multiple yaml files with overlapping GPU wildcards (e.g., "*b200*" and "*gb200*").

Applied to files:

  • tests/integration/test_lists/test-db/l0_dgx_h100.yml
📚 Learning: 2025-07-28T17:06:08.621Z
Learnt from: moraxu
PR: NVIDIA/TensorRT-LLM#6303
File: tests/integration/test_lists/qa/examples_test_list.txt:494-494
Timestamp: 2025-07-28T17:06:08.621Z
Learning: In TensorRT-LLM testing, it's common to have both CLI flow tests (test_cli_flow.py) and PyTorch API tests (test_llm_api_pytorch.py) for the same model. These serve different purposes: CLI flow tests validate the traditional command-line workflow, while PyTorch API tests validate the newer LLM API backend. Both are legitimate and should coexist.

Applied to files:

  • tests/integration/test_lists/test-db/l0_dgx_h100.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Pre-commit Check
🔇 Additional comments (2)
jenkins/L0_Test.groovy (1)

1966-1968: 2‑GPU DGX H100 PyTorch stage added — please verify label exists

Stage name and GPU count wiring look right. Confirm the cluster has a selectable GPU label/class for "dgx-h100-x2" in KubernetesManager.selectGPU and capacity to satisfy nvidia.com/gpu=2 on those nodes; otherwise this stage will never schedule.

tests/integration/test_lists/test-db/l0_dgx_h100.yml (1)

53-53: Scoped llm_multi_gpu_pytorch to gpu4 only — LGTM

This matches the 4‑GPU gate intent.

@QiJune
Copy link
Collaborator Author

QiJune commented Sep 9, 2025

/bot run --stage-list "DGX_H100-2_GPUs-PyTorch-Others-1"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #18125 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #13582 (Partly Tested) completed with status: 'FAILURE'

@tensorrt-cicd
Copy link
Collaborator

PR_Github #18158 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #18158 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #13607 (Partly Tested) completed with status: 'SUCCESS'

@QiJune
Copy link
Collaborator Author

QiJune commented Sep 9, 2025

/bot skip --comment "DGX_H100-2_GPUs-PyTorch-Others-1 passed"

@QiJune QiJune enabled auto-merge (squash) September 9, 2025 14:34
@tensorrt-cicd
Copy link
Collaborator

PR_Github #18237 [ skip ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #18237 [ skip ] completed with state SUCCESS
Skipping testing for commit 495539e

@QiJune QiJune merged commit a0e1604 into NVIDIA:main Sep 9, 2025
5 checks passed
Wong4j pushed a commit to Wong4j/TensorRT-LLM that referenced this pull request Sep 20, 2025
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