Skip to content

[https://nvbugs/5546507][test] Remove obsolet… - #14995

Merged
xinhe-nv merged 4 commits into
NVIDIA:mainfrom
xinhe-nv:clean
Jun 5, 2026
Merged

[https://nvbugs/5546507][test] Remove obsolet…#14995
xinhe-nv merged 4 commits into
NVIDIA:mainfrom
xinhe-nv:clean

Conversation

@xinhe-nv

@xinhe-nv xinhe-nv commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

…e eagle modelopt and phi lora tests

Remove test_llm_eagle_1gpu_modelopt_ckpt (waived under nvbug 5546507) and the unused legacy test_llm_phi_lora_1gpu, along with their test-list entries, waive, and now-orphaned imports.

Summary by CodeRabbit

  • Tests
    • Removed two integration test cases from the suite and updated related test lists and waiver entries to reflect those removals.
  • Chores
    • Updated module header year ranges and cleaned up unused test imports across integration test files.

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)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

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

…e eagle modelopt and phi lora tests

Remove test_llm_eagle_1gpu_modelopt_ckpt (waived under nvbug 5546507)
and the unused legacy test_llm_phi_lora_1gpu, along with their test-list
entries, waive, and now-orphaned imports.

Signed-off-by: Xin He (SW-GPU) <200704525+xinhe-nv@users.noreply.github.com>
@xinhe-nv
xinhe-nv enabled auto-merge (squash) June 5, 2026 06:30
@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 8c38f14d-3bb6-4679-b103-b5d1a51b2666

📥 Commits

Reviewing files that changed from the base of the PR and between 3a7e98c and 95526a9.

📒 Files selected for processing (1)
  • tests/integration/test_lists/waives.txt
✅ Files skipped from review due to trivial changes (1)
  • tests/integration/test_lists/waives.txt

📝 Walkthrough

Walkthrough

Removes two integration tests (Eagle modelopt and Phi LoRA), updates copyright headers and imports in test modules, and removes the Eagle test from test lists and waive records.

Changes

Integration test removal and cleanup

Layer / File(s) Summary
Eagle test module update
tests/integration/defs/examples/test_eagle.py
Copyright header updated; removed unused skip_pre_ada import from defs.conftest; removed test_llm_eagle_1gpu_modelopt_ckpt and its decorators/engine logic.
Phi test module update
tests/integration/defs/examples/test_phi.py
Copyright header updated; removed LoRA/quantization/fp8 and CSV-related imports; removed test_llm_phi_lora_1gpu including conversion/build/validation logic.
Test configuration manifest updates
tests/integration/test_lists/test-db/l0_h100.yml, tests/integration/test_lists/waives.txt
Removed the examples/test_eagle.py::test_llm_eagle_1gpu_modelopt_ckpt[...] entry from the H100 post_merge tests and deleted the corresponding waived SKIP line.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • NVIDIA/TensorRT-LLM#14721: Updates config/duration tracking for examples/test_phi.py::test_llm_phi_lora_1gpu, overlapping with the Phi LoRA test removal.

Suggested reviewers

  • StanleySun639
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title is incomplete and truncated with '[https://nvbugs/5546507][test] Remove obsolet…', making it unclear what is actually being removed. Complete the title to clearly state what is being removed, e.g., '[https://nvbugs/5546507][test] Remove obsolete eagle modelopt and phi lora tests'.
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The PR description adequately explains the objectives: removing two obsolete tests (test_llm_eagle_1gpu_modelopt_ckpt and test_llm_phi_lora_1gpu) along with their related test-list entries, waive metadata, and imports.
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.

@xinhe-nv xinhe-nv changed the title [https://nvbugs/5546507][https://nvbugs/5612313][test] Remove obsolet… [https://nvbugs/5546507][test] Remove obsolet… Jun 5, 2026
@xinhe-nv

xinhe-nv commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --stage-list ""

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52280 [ run ] triggered by Bot. Commit: 3a7e98c Link to invocation

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

🧹 Nitpick comments (2)
tests/integration/defs/examples/test_phi.py (1)

53-133: Test coverage note after removal of test_llm_phi_lora_1gpu.

The removal eliminates the TensorRT-LLM engine-based LoRA test for Phi models. Coverage status:

  • ✓ Quantization (FP8): test_llm_phi_quantization_1gpu covers multiple Phi models
  • ⚠️ LoRA: Only test_phi_4_mini_instruct_with_bf16_lora_torch remains, which uses torch backend and is currently skipped (line 111-112)

If the removed test was truly obsolete per PR objectives, this coverage level may be intentional. Otherwise, consider whether Phi + LoRA with TRT engines needs coverage restoration outside this PR.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/integration/defs/examples/test_phi.py` around lines 53 - 133, Removed
test_llm_phi_lora_1gpu eliminated TRT-engine LoRA coverage for Phi models;
restore or add a test that exercises Phi + LoRA using the TensorRT-LLM engine.
Reintroduce a test (or create one) modeled after the removed test name
test_llm_phi_lora_1gpu that runs conversion/quantization (see
test_llm_phi_quantization_1gpu), builds TRT engines (build_cmd / check_call
usage), then loads the engine and applies multiple LoRAs to verify inference
accuracy; alternatively, add a new parametrized test that complements
test_phi_4_mini_instruct_with_bf16_lora_torch but uses the TRT backend and
engine_dir to ensure TRT LoRA coverage. Ensure the test invokes the same helpers
(venv_check_call, check_call, and engine_dir handling) and is not skipped so CI
covers Phi + LoRA with TensorRT engines.
tests/integration/defs/examples/test_eagle.py (1)

28-96: Test coverage note after removal of test_llm_eagle_1gpu_modelopt_ckpt.

The remaining test_llm_eagle_1gpu test provides baseline Eagle speculative decoding coverage across dynamic_tree modes and batch sizes. Since the removed test was waived (nvbug 5546507), the current coverage appears sufficient for this integration test module.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/integration/defs/examples/test_eagle.py` around lines 28 - 96, Add a
brief inline note above the test_llm_eagle_1gpu function stating that
test_llm_eagle_1gpu now provides the baseline Eagle speculative-decoding
coverage after removal of test_llm_eagle_1gpu_modelopt_ckpt, so reviewers know
the removal was intentional; locate the test by the function name
test_llm_eagle_1gpu and add the comment near its `@pytest.mark.parametrize`
decorators (no code logic changes required).
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@tests/integration/defs/examples/test_eagle.py`:
- Around line 28-96: Add a brief inline note above the test_llm_eagle_1gpu
function stating that test_llm_eagle_1gpu now provides the baseline Eagle
speculative-decoding coverage after removal of
test_llm_eagle_1gpu_modelopt_ckpt, so reviewers know the removal was
intentional; locate the test by the function name test_llm_eagle_1gpu and add
the comment near its `@pytest.mark.parametrize` decorators (no code logic changes
required).

In `@tests/integration/defs/examples/test_phi.py`:
- Around line 53-133: Removed test_llm_phi_lora_1gpu eliminated TRT-engine LoRA
coverage for Phi models; restore or add a test that exercises Phi + LoRA using
the TensorRT-LLM engine. Reintroduce a test (or create one) modeled after the
removed test name test_llm_phi_lora_1gpu that runs conversion/quantization (see
test_llm_phi_quantization_1gpu), builds TRT engines (build_cmd / check_call
usage), then loads the engine and applies multiple LoRAs to verify inference
accuracy; alternatively, add a new parametrized test that complements
test_phi_4_mini_instruct_with_bf16_lora_torch but uses the TRT backend and
engine_dir to ensure TRT LoRA coverage. Ensure the test invokes the same helpers
(venv_check_call, check_call, and engine_dir handling) and is not skipped so CI
covers Phi + LoRA with TensorRT engines.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 7ee2c42a-f3b9-4d17-b289-de448a7532c4

📥 Commits

Reviewing files that changed from the base of the PR and between 21ffdc7 and 3a7e98c.

📒 Files selected for processing (4)
  • tests/integration/defs/examples/test_eagle.py
  • tests/integration/defs/examples/test_phi.py
  • tests/integration/test_lists/test-db/l0_h100.yml
  • tests/integration/test_lists/waives.txt
💤 Files with no reviewable changes (2)
  • tests/integration/test_lists/waives.txt
  • tests/integration/test_lists/test-db/l0_h100.yml

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #91 [ run ] triggered by Bot. Commit: 3a7e98c Link to invocation

@xinhe-nv
xinhe-nv requested a review from litaotju June 5, 2026 06:48
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #91 [ run ] completed with state ABORTED. Commit: 3a7e98c

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52280 [ run ] completed with state SUCCESS. Commit: 3a7e98c
/LLM/main/L0_MergeRequest_PR pipeline #41591 (Partly Tested) completed with status: 'SUCCESS'

CI Report

Link to invocation

@xinhe-nv

xinhe-nv commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

/bot reuse-pipeline

@xinhe-nv

xinhe-nv commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai why didn't you review the pr as a QA engineer?

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
🧩 Analysis chain

⚙️ CodeRabbit configuration inspected

Length of output: 16673



@xinhe-nv: Apologies for the confusion! The QA engineer instructions are properly configured in your .coderabbit.yaml — any files matching tests/** will be reviewed with the QA engineer persona. However, here's the likely reason the review didn't fire automatically:

auto_incremental_review is set to false in your configuration. This means CodeRabbit will not automatically review new commits pushed after an initial review. If the PR's first review was missed or skipped for any reason (e.g., timing, pipeline state), subsequent commits won't retrigger it automatically.

Would you like me to kick off a full review right now? I'll apply the QA engineer instructions to all the tests/** changes in this PR.

🐰 ears perk up sorry for the miss — on it now!

✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52294 [ reuse-pipeline ] triggered by Bot. Commit: 95526a9 Link to invocation

@xinhe-nv

xinhe-nv commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai why was the PR's first review missed or skipped? No actionable comments were generated in the recent review.

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

⚙️ CodeRabbit configuration inspected

Length of output: 16673


🏁 Script executed:

#!/bin/bash
# Get the PR details including timeline to understand review history
gh pr view 14995 --repo NVIDIA/TensorRT-LLM --json createdAt,commits,reviews,comments,state,baseRefName,headRefName

# Get PR review events
gh api /repos/NVIDIA/TensorRT-LLM/pulls/14995/reviews

Length of output: 37995



@xinhe-nv: I owe you a correction — my previous reply was misleading. Looking at the actual review history:

The first review was NOT missed. It fired automatically at 06:37:55Z (about 7 minutes after the PR was opened) and did generate 2 nitpick comments on commit 3a7e98c, covering:

  • test_phi.py: a note on LoRA coverage after the removal of test_llm_phi_lora_1gpu
  • test_eagle.py: a coverage note after the removal of test_llm_eagle_1gpu_modelopt_ckpt

You can see that review here: PR Review #4434072898.

Why the recent review had no actionable comments: When you asked me why the QA review didn't happen, I triggered an incremental review. Because auto_incremental_review is false, that review only looked at the diff between the last reviewed commit (3a7e98c) and the new head (95526a9). That incremental diff contained only waives.txt, which was a single-line deletion — classified as a trivial change and skipped. Hence: "No actionable comments were generated."

So in summary: the QA-persona review did run on the full PR diff the first time around, the second run just had nothing new to review.

🐰 thumps foot apologetically — sorry for the confusion in my earlier response!

@xinhe-nv

xinhe-nv commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

/bot reuse-pipeline

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52294 [ reuse-pipeline ] completed with state SUCCESS. Commit: 95526a9
Reusing PR_Github #52280 (Partly Tested) for commit 95526a9

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52302 [ reuse-pipeline ] triggered by Bot. Commit: 61d5ff8 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52302 [ reuse-pipeline ] completed with state SUCCESS. Commit: 61d5ff8
Reusing PR_Github #52280 (Partly Tested) for commit 61d5ff8

Link to invocation

@xinhe-nv
xinhe-nv merged commit 6818233 into NVIDIA:main Jun 5, 2026
7 checks passed
@xinhe-nv
xinhe-nv deleted the clean branch June 5, 2026 08:18
fbxai pushed a commit to fbxai/TensorRT-LLM that referenced this pull request Jun 5, 2026
NVIDIA#14995)

Signed-off-by: Xin He (SW-GPU) <200704525+xinhe-nv@users.noreply.github.com>
Signed-off-by: NVFB <186336021+NVFB@users.noreply.github.com>
2ez4bz pushed a commit to 2ez4bz/TensorRT-LLM that referenced this pull request Jun 8, 2026
NVIDIA#14995)

Signed-off-by: Xin He (SW-GPU) <200704525+xinhe-nv@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.

3 participants