Skip to content

Conversation

crazydemo
Copy link
Collaborator

@crazydemo crazydemo commented Sep 19, 2025

Summary by CodeRabbit

  • Tests
    • Expanded integration and accuracy test suites across diverse model families and modalities, including streaming, quantization variants, and multi-GPU scenarios.
    • Reorganized test groups to emphasize multimodal end-to-end coverage and PyTorch-centric workflows, with PyTorch promoted as the default in API tests.
    • Added extensive configuration variants (precision, tensor parallelism, LoRA/MoE) with explicit timeout annotations.
    • Removed outdated and redundant cases to streamline execution and focus on current configurations.

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.

@crazydemo
Copy link
Collaborator Author

/bot run --skip-test

Copy link
Contributor

coderabbitai bot commented Sep 19, 2025

📝 Walkthrough

Walkthrough

The test inclusion list in tests/integration/test_lists/qa/llm_function_nim.txt is overhauled: older GPT/StarCoder-related tests are removed; numerous new entries are added across multiple modules and accuracy suites; groups and comments are reorganized with PyTorch-centric focus, multimodal E2E additions, quantization/TP/multi-GPU variants, and timeout annotations.

Changes

Cohort / File(s) Summary of Changes
QA test list overhaul
tests/integration/test_lists/qa/llm_function_nim.txt
Removed older GPT/StarCoder/Nemotron-era items. Added broad cross-module tests (bindings, phi, gpt, llama, llm_llama_v3, qwen, internlm, mixtral, multimodal, qwen2audio, etc.), including streaming, FP8/BF16/NVFP4, LoRA/MoE, TP2/TP4, multi-GPU, and TIMEOUT annotations. Expanded accuracy lists (accuracy/test_cli_flow.py, accuracy/test_llm_api.py, accuracy/test_llm_api_pytorch.py) with many model/decoding variants. Introduced grouping notes: “Multimodal Executor Cpp E2E Tests” and “llm-api promote pytorch to default”; included Triton-related comments.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description contains only the template header and the @coderabbitai placeholder while leaving the Description and Test Coverage sections empty, so it does not explain what changed, why, or how the changes are validated for reviewers. Please populate the Description with a concise summary of the changes and rationale, list the specific files modified and the expected behavior, and fill Test Coverage with the relevant test names and validation steps; also update the PR checklist and include any ticket identifiers or CI directives necessary for reviewers to validate the change.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title "[None][test] Update nim function test list" is concise, follows the repository's ticket/type format, and accurately summarizes the primary change (updating the nim function test list).
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ 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 #19297 [ 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 (8)
tests/integration/test_lists/qa/llm_function_nim.txt (8)

1-13: Streaming beam matrix: confirm intended expansion and runtime budget

The added GPT streaming-beam parametrizations multiply quickly across batch_size/return_all/num_beams. Verify CI time budget for this list and whether some variants should move to nightly.


19-23: Large Llama multi‑GPU entries: sanity‑check TIMEOUTs and CI lane

405B/70B entries (with TIMEOUT 90/120/180) require specific multi‑GPU lanes. Ensure these map to the proper test-db YAML (e.g., tp/ep lanes) and won’t block pre-merge.


38-40: Cpp E2E group has cpp_e2e set to False

Line 39 contradicts the section header “Multimodal Executor Cpp E2E Tests”. Flip the flag to True.

Apply this diff:

-examples/test_multimodal.py::test_llm_fp8_multimodal_general[fp8-fp8-scienceqa-Llama-3.2-11B-Vision-Instruct-pp:1-tp:1-bfloat16-bs:1-cpp_e2e:False]
+examples/test_multimodal.py::test_llm_fp8_multimodal_general[fp8-fp8-scienceqa-Llama-3.2-11B-Vision-Instruct-pp:1-tp:1-bfloat16-bs:1-cpp_e2e:True]

49-66: Qwen variants: ensure runner capabilities match fmha_fp32_acc and plugin settings

These configs assume FMHA FP32 accuracy path and plugins are available. Confirm the mapped CI runners (e.g., H100/B200) and that plugin build artifacts are present for these lanes.


152-154: Long‑running Mixtral 22B tests: confirm placement in nightly and timeout headroom

TIMEOUT(120/90) might be tight on busy CI. Consider bumping or marking as nightly if flakes appear.


388-399: E2E additions: check data/model availability and cache policy

These tests pull large models and multimodal assets. Confirm they rely on CI caches or pre‑staged artifacts to avoid timeouts.


453-455: Triton tests commented out at end: keep them last or move to a dedicated list

As noted by the inline comment, keeping them last avoids side‑effects. Alternatively, move to a separate list consumed by the relevant lane.


1-455: General hygiene: add automated checks for TIMEOUT format, duplicates, and missing files

Recommend adding a lightweight presubmit that validates:

  • TIMEOUT format “TIMEOUT (NN)” at line end
  • No exact duplicate lines
  • All referenced test files exist

I can contribute a guard script if useful.

📜 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 ea079fa and a1ae8fb.

📒 Files selected for processing (1)
  • tests/integration/test_lists/qa/llm_function_nim.txt (5 hunks)
🧰 Additional context used
🧠 Learnings (8)
📓 Common learnings
Learnt from: fredricz-20070104
PR: NVIDIA/TensorRT-LLM#7645
File: tests/integration/test_lists/qa/llm_function_core.txt:648-648
Timestamp: 2025-09-09T09:40:45.658Z
Learning: In TensorRT-LLM test lists, it's common and intentional for the same test to appear in multiple test list files when they serve different purposes (e.g., llm_function_core.txt for comprehensive core functionality testing and llm_function_core_sanity.txt for quick sanity checks). This duplication allows tests to be run in different testing contexts.
Learnt from: tongyuantongyu
PR: NVIDIA/TensorRT-LLM#7781
File: tests/integration/test_lists/waives.txt:313-313
Timestamp: 2025-09-17T02:48:52.732Z
Learning: In TensorRT-LLM, `tests/integration/test_lists/waives.txt` is specifically for waiving/skipping tests, while other test list files like those in `test-db/` and `qa/` directories are for different test execution contexts (pre-merge, post-merge, QA tests). The same test appearing in both waives.txt and execution list files is intentional - the test is part of test suites but will be skipped due to the waiver.
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.
📚 Learning: 2025-09-09T09:40:45.658Z
Learnt from: fredricz-20070104
PR: NVIDIA/TensorRT-LLM#7645
File: tests/integration/test_lists/qa/llm_function_core.txt:648-648
Timestamp: 2025-09-09T09:40:45.658Z
Learning: In TensorRT-LLM test lists, it's common and intentional for the same test to appear in multiple test list files when they serve different purposes (e.g., llm_function_core.txt for comprehensive core functionality testing and llm_function_core_sanity.txt for quick sanity checks). This duplication allows tests to be run in different testing contexts.

Applied to files:

  • tests/integration/test_lists/qa/llm_function_nim.txt
📚 Learning: 2025-09-17T02:48:52.732Z
Learnt from: tongyuantongyu
PR: NVIDIA/TensorRT-LLM#7781
File: tests/integration/test_lists/waives.txt:313-313
Timestamp: 2025-09-17T02:48:52.732Z
Learning: In TensorRT-LLM, `tests/integration/test_lists/waives.txt` is specifically for waiving/skipping tests, while other test list files like those in `test-db/` and `qa/` directories are for different test execution contexts (pre-merge, post-merge, QA tests). The same test appearing in both waives.txt and execution list files is intentional - the test is part of test suites but will be skipped due to the waiver.

Applied to files:

  • tests/integration/test_lists/qa/llm_function_nim.txt
📚 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/qa/llm_function_nim.txt
📚 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/qa/llm_function_nim.txt
📚 Learning: 2025-08-06T13:58:07.506Z
Learnt from: galagam
PR: NVIDIA/TensorRT-LLM#6487
File: tests/unittest/_torch/auto_deploy/unit/singlegpu/test_ad_trtllm_bench.py:1-12
Timestamp: 2025-08-06T13:58:07.506Z
Learning: In TensorRT-LLM, test files (files under tests/ directories) do not require NVIDIA copyright headers, unlike production source code files. Test files typically start directly with imports, docstrings, or code.

Applied to files:

  • tests/integration/test_lists/qa/llm_function_nim.txt
📚 Learning: 2025-08-29T14:07:45.863Z
Learnt from: EmmaQiaoCh
PR: NVIDIA/TensorRT-LLM#7370
File: tests/unittest/trt/model_api/test_model_quantization.py:24-27
Timestamp: 2025-08-29T14:07:45.863Z
Learning: In TensorRT-LLM's CI infrastructure, pytest skip markers (pytest.mark.skip) are properly honored even when test files have __main__ blocks that call test functions directly. The testing system correctly skips tests without requiring modifications to the __main__ block execution pattern.

Applied to files:

  • tests/integration/test_lists/qa/llm_function_nim.txt
📚 Learning: 2025-08-11T20:09:24.389Z
Learnt from: achartier
PR: NVIDIA/TensorRT-LLM#6763
File: tests/integration/defs/triton_server/conftest.py:16-22
Timestamp: 2025-08-11T20:09:24.389Z
Learning: In the TensorRT-LLM test infrastructure, the team prefers simple, direct solutions (like hard-coding directory traversal counts) over more complex but robust approaches when dealing with stable directory structures. They accept the maintenance cost of updating tests if the layout changes.

Applied to files:

  • tests/integration/test_lists/qa/llm_function_nim.txt
⏰ 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 (6)
tests/integration/test_lists/qa/llm_function_nim.txt (6)

41-48: Phi MoE/quant set looks good

Coverage across LoRA and fp8/bf16 combos is comprehensive and consistent with existing patterns.


70-71: Audio model test requires media assets/codecs

qwen2audio typically needs audio samples and codec availability. Verify test harness bundles assets or fetches them, and that the lane has the necessary system deps.


181-197: Duplication across CLI flow and LLM API suites is acceptable

Noting intentional overlap per team practice; no action needed.


449-452: QA for default backend tests: good placement

These guardrails for “pytorch default” look appropriately scoped.


212-271: “Pivot to PyTorch” block: ensure default backend toggle is wired

Since this promotes PyTorch as default, verify the code path that sets LLM API default backend and that CI sets any required env flags.

Run:


96-151: Accuracy list expansion: verify test symbols and avoid accidental typos

Automated verification couldn't complete in the sandbox (error: "/bin/bash: -c: line 5: conditional binary operator expected"). Run the verifier locally or manually confirm every entry in tests/integration/test_lists/qa/llm_function_nim.txt maps to an existing class/method in the referenced files to prevent scheduler hard-fail.

Signed-off-by: Ivy Zhang <[email protected]>
@tensorrt-cicd
Copy link
Collaborator

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

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.

2 participants