Skip to content

[None][test] refresh test constraints#13482

Merged
crazydemo merged 1 commit into
NVIDIA:mainfrom
crazydemo:refresh
Apr 30, 2026
Merged

[None][test] refresh test constraints#13482
crazydemo merged 1 commit into
NVIDIA:mainfrom
crazydemo:refresh

Conversation

@crazydemo

@crazydemo crazydemo commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

Tests

  • Enhanced accuracy test coverage for Ada/Blackwell architectures with FP8/NVFP4 precision support.
  • Optimized Gemma3 1B accuracy testing requirements for Hopper and newer architectures.
  • Added performance benchmark test for Llama 3.1 8B model in MIG deployment context with concurrency scaling validation.

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

To see a list of available CI bot commands, please comment /bot help.

@crazydemo

Copy link
Copy Markdown
Collaborator Author

/bot run

@coderabbitai

coderabbitai Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This change adds hardware architecture gating to accuracy tests for Ada/Blackwell and Hopper GPUs, and introduces a new integration performance benchmark test that measures Llama 3.1 8B throughput and latency scaling under increasing concurrency in MIG mode.

Changes

Cohort / File(s) Summary
Accuracy Test Architecture Gating
tests/integration/defs/accuracy/test_llm_api_autodeploy.py, tests/integration/defs/accuracy/test_llm_api_pytorch.py
Added Ada/Blackwell/Hopper architecture skip decorators and pytest parameter marks to FP8/NVFP4 accuracy tests; moved Gemma3 1B skip logic from method-level to class-level decoration.
Integration Performance Benchmark
tests/integration/defs/test_e2e.py
Added new test function that executes BenchRunner benchmarks on Llama 3.1 8B in MIG mode across increasing concurrency levels, parses throughput and latency metrics, and validates monotonic throughput scaling (1.3x minimum per step).

Sequence Diagram

sequenceDiagram
    participant Test as Performance Test
    participant BR as BenchRunner
    participant Model as Llama 3.1 8B Model
    participant MIG as MIG Context
    participant Parser as Metrics Parser
    participant Validator as Scaling Validator

    Test->>BR: Iterate concurrency levels
    loop For each concurrency
        BR->>MIG: Launch benchmark (streaming=False, pytorch_backend=True)
        MIG->>Model: Execute inference requests
        Model-->>MIG: Return results
        MIG-->>BR: Return benchmark metrics (dict)
        BR-->>Test: Metrics dict
        Test->>Parser: Extract throughput & latency
        Parser-->>Test: Parsed values
        Test->>Validator: Check throughput > 1.3x previous
        alt Scaling valid
            Validator-->>Test: Continue to next concurrency
        else Scaling failed
            Validator-->>Test: Fail test
        end
    end
    Test->>Test: Print summary table (concurrency vs. metrics)
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is entirely a template with no actual content filled in—no description, test coverage details, or explanation of the changes provided. Add a substantive description explaining what test constraints were refreshed and why, including test coverage details and checklist completion.
Docstring Coverage ⚠️ Warning Docstring coverage is 11.11% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: updating/refreshing test constraints across multiple test files to add hardware architecture gating and new integration tests.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tests/integration/defs/test_e2e.py (1)

2629-2683: ⚠️ Potential issue | 🟠 Major

Register this new integration perf test in test-db and QA perf lists.

This adds a new benchmark-style integration test, but I don’t see corresponding test-list updates in this PR scope. Without list registration, scheduled/pre-merge coverage can miss it.

Please add/update:

  • tests/integration/test_lists/test-db/l0_perf.yml (or the appropriate l0_*.yml)
  • tests/integration/test_lists/qa/llm_perf_*.yml (or multinode perf list if applicable)

As per coding guidelines, performance/integration test changes must be reflected in both CI test-db and QA list files.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/integration/defs/test_e2e.py` around lines 2629 - 2683, The new
benchmark integration test test_trtllm_bench_mig_launch in
tests/integration/defs/test_e2e.py is not registered in the CI test lists; add
entries for this test to the test-db and QA perf lists by updating
tests/integration/test_lists/test-db/l0_perf.yml (or the appropriate l0_*.yml)
and tests/integration/test_lists/qa/llm_perf_*.yml (or the multinode perf list)
to include the test path and any required tags/labels (e.g., l0, perf,
integration, multinode) so the CI and QA runners will execute it; ensure the
YAML entry references the test module and function name
(tests.integration.defs.test_e2e::test_trtllm_bench_mig_launch) and matches
existing formatting and gating rules in those files.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@tests/integration/defs/test_e2e.py`:
- Line 2656: Replace the placeholder-less f-string print(f"\n=== Benchmark
Results Comparison ===") with a normal string literal or add a formatted
placeholder; e.g., change it to print("\n=== Benchmark Results Comparison ===")
so the f-prefix is removed and lint F541 is resolved; locate the exact call
print(f"\n=== Benchmark Results Comparison ===") in the test file and update it
accordingly.
- Around line 2679-2682: The test's strict stepwise assertion (throughput >
prev_throughput * 1.3) is brittle; change it to a tolerant check using a
configurable relative threshold or pytest.approx to allow normal CI variance:
compute prev_throughput = float(results[concurrency_list[idx -
1]].get('throughput', 0)) and then assert throughput >= prev_throughput * (1.0 +
RELATIVE_THRESHOLD) (e.g., RELATIVE_THRESHOLD = 0.05) or use assert throughput >
pytest.approx(prev_throughput, rel=0.05); make RELATIVE_THRESHOLD configurable
at top of the test file and handle the zero/near-zero prev_throughput case by
skipping the comparison or requiring an absolute minimum delta.

---

Outside diff comments:
In `@tests/integration/defs/test_e2e.py`:
- Around line 2629-2683: The new benchmark integration test
test_trtllm_bench_mig_launch in tests/integration/defs/test_e2e.py is not
registered in the CI test lists; add entries for this test to the test-db and QA
perf lists by updating tests/integration/test_lists/test-db/l0_perf.yml (or the
appropriate l0_*.yml) and tests/integration/test_lists/qa/llm_perf_*.yml (or the
multinode perf list) to include the test path and any required tags/labels
(e.g., l0, perf, integration, multinode) so the CI and QA runners will execute
it; ensure the YAML entry references the test module and function name
(tests.integration.defs.test_e2e::test_trtllm_bench_mig_launch) and matches
existing formatting and gating rules in those files.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 56b52213-9959-4a73-a2f1-9e5d80d70c3a

📥 Commits

Reviewing files that changed from the base of the PR and between 035de5d and 67a10cc.

📒 Files selected for processing (3)
  • tests/integration/defs/accuracy/test_llm_api_autodeploy.py
  • tests/integration/defs/accuracy/test_llm_api_pytorch.py
  • tests/integration/defs/test_e2e.py

Comment thread tests/integration/defs/test_e2e.py
Comment thread tests/integration/defs/test_e2e.py
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #45614 [ run ] triggered by Bot. Commit: 67a10cc Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #45614 [ run ] completed with state SUCCESS. Commit: 67a10cc
/LLM/main/L0_MergeRequest_PR pipeline #35829 completed with status: 'FAILURE'

CI Report

⚠️ 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

Link to invocation

@crazydemo

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-failed-fast

@crazydemo
crazydemo enabled auto-merge (squash) April 28, 2026 02:51
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #45836 Bot args parsing error: usage: /bot [-h]
{run,kill,skip,submit,reviewers,reuse-pipeline,reuse-review} ...
/bot: error: unrecognized arguments: --disable-failed-fast

Link to invocation

@crazydemo

Copy link
Copy Markdown
Collaborator Author

/bot help

@github-actions

Copy link
Copy Markdown

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) --high-priority]

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. Supports wildcard * for pattern matching (e.g., "*PerfSanity*" matches all stages containing PerfSanity). Examples: "A10-PyTorch-1, xxx", "PerfSanity". 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. Supports wildcard * for pattern matching. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx", --extra-stage "Post-Merge".

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

--high-priority (OPTIONAL) : Run the pipeline with high priority. This option is restricted to authorized users only and will route the job to a high-priority queue.

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
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #45837 [ run ] triggered by Bot. Commit: 7d0003f Link to invocation

@crazydemo

Copy link
Copy Markdown
Collaborator Author

/bot kill

@crazydemo

Copy link
Copy Markdown
Collaborator Author

/bot run --skip-test

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #46029 [ kill ] triggered by Bot. Commit: 9c7f6a9 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #46029 [ kill ] completed with state SUCCESS. Commit: 9c7f6a9
Successfully killed previous jobs for commit 9c7f6a9

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #46032 [ run ] triggered by Bot. Commit: 9c7f6a9 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #46032 [ run ] completed with state FAILURE. Commit: 9c7f6a9
/LLM/main/L0_MergeRequest_PR pipeline #36178 (Partly Tested) completed with status: 'FAILURE'

CI Report

⚠️ 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

CI Agent Failure Analysis

Link to invocation

Signed-off-by: Ivy Zhang <25222398+crazydemo@users.noreply.github.com>
@crazydemo

Copy link
Copy Markdown
Collaborator Author

/bot run --skip-test

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #46295 [ run ] triggered by Bot. Commit: 1f47aa5 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #46295 [ run ] completed with state SUCCESS. Commit: 1f47aa5
/LLM/main/L0_MergeRequest_PR pipeline #36395 (Partly Tested) completed with status: 'SUCCESS'

CI Report

Link to invocation

@crazydemo

Copy link
Copy Markdown
Collaborator Author

/bot reuse-pipeline

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #46366 [ reuse-pipeline ] triggered by Bot. Commit: 1f47aa5 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #46366 [ reuse-pipeline ] completed with state SUCCESS. Commit: 1f47aa5
Reusing PR_Github #46295 (Partly Tested) for commit 1f47aa5

Link to invocation

@crazydemo
crazydemo merged commit 2c18d2c into NVIDIA:main Apr 30, 2026
6 checks passed
yufeiwu-nv pushed a commit to yufeiwu-nv/TensorRT-LLM that referenced this pull request May 19, 2026
Signed-off-by: Ivy Zhang <25222398+crazydemo@users.noreply.github.com>
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