Skip to content

[None][test] remove unused tests#12625

Merged
xinhe-nv merged 4 commits intoNVIDIA:mainfrom
xinhe-nv:tests
Apr 9, 2026
Merged

[None][test] remove unused tests#12625
xinhe-nv merged 4 commits intoNVIDIA:mainfrom
xinhe-nv:tests

Conversation

@xinhe-nv
Copy link
Copy Markdown
Collaborator

@xinhe-nv xinhe-nv commented Mar 31, 2026

@coderabbitai summary

Description

  • use vulture to scan unused tests which are not included in any test list or test db

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.

@xinhe-nv xinhe-nv force-pushed the tests branch 2 times, most recently from 049e549 to c8d2331 Compare March 31, 2026 09:54
@xinhe-nv xinhe-nv marked this pull request as ready for review April 1, 2026 01:33
@xinhe-nv xinhe-nv requested review from a team as code owners April 1, 2026 01:33
@xinhe-nv xinhe-nv requested a review from nvchenghaoz April 1, 2026 01:33
@xinhe-nv xinhe-nv changed the title [None][Chore] remove unused tests [None][test] remove unused tests Apr 1, 2026
@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 1, 2026

/bot run

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 1, 2026

📝 Walkthrough

Walkthrough

This pull request removes a large set of integration tests across 27 test files in the test suite. The deletions span accuracy tests (CLI flow, LLM API variants, disaggregated serving), example tests (speculative decoding, quantization configurations, multi-GPU scenarios), end-to-end tests, and sanity checks. No new tests or functionality are introduced; the changes strictly reduce test coverage across multiple model configurations and hardware setups.

Changes

Cohort / File(s) Summary
Accuracy Tests
tests/integration/defs/accuracy/test_cli_flow.py
Removed 40+ test methods across multiple model classes, including tests for GEMM plugins, attention configurations, quantization variants (INT8, smooth quant, AWQ, GPTQ, FP8), speculative decoding modes, beam-search configurations, long-context/cyclic-KV-cache, and parallelization combinations (TP/PP).
Accuracy Tests
tests/integration/defs/accuracy/test_disaggregated_serving.py, test_llm_api.py, test_llm_api_autodeploy.py
Removed test methods for chunked prefill with context pipeline-parallel, smooth-quant variants, INT4 AWQ configurations, FP8 pipeline-parallel, and multi-GPU Mixtral/Mistral/Qwen configurations.
Accuracy Tests
tests/integration/defs/accuracy/test_llm_api_pytorch.py
Removed 396 lines of tests including NVFP4 norm-quant, suffix-automaton speculative decode, auto-speculative decode, return-logits pipeline-parallel, CUTEDSL FP8 block-scaling, GLM-4.5-AI MTP, reasoning FP8 prequantized variants, and large-mesh GPT-OSS configurations.
Speculative Decoding & Guided Decoding
tests/integration/defs/examples/serve/test_spec_decoding_metrics.py, test_ad_guided_decoding.py, test_ad_speculative_decoding.py
Removed Eagle3 speculative decoding metrics tests (one/two-model configurations), guided decoding JSON schema test, and Eagle3 one-model acceptance-rate test with overlap scheduler variants.
Example Tests: Model-Specific
tests/integration/defs/examples/test_bindings.py, test_commandr.py, test_draft_target_model.py
Removed LLM bindings example test, Command-R+ 4-GPU summary test, and LLaMA draft/target speculative decoding tests (1-GPU and 2-GPU FP8 variants).
Example Tests: Speculative Decoding
tests/integration/defs/examples/test_eagle.py, test_medusa.py
Removed shared helpers (test_with_dummy_eagle, test_with_dummy_medusa) and model-specific wrapper tests (LLaMA, CodeLLaMA, Mistral, Qwen, Phi variants). Also removed FP8 ModelOpt Medusa test.
Example Tests: Vision & Quantization
tests/integration/defs/examples/test_flux.py, test_gemma.py, test_qwenvl.py
Removed Flux end-to-end CLIP validation test, Gemma quantization and MMLU tests, and Qwen-VL single-GPU summary test with ViT ONNX/TensorRT artifact generation.
Example Tests: Large-Scale Models
tests/integration/defs/examples/test_gpt.py, test_qwen.py
Removed 2,000+ combined lines including GPT2/GPT3 variants (KV-cache, quantization, multi-GPU, multi-node), Starcoder/Starcoder2 tests, Qwen single/multi-GPU summaries, LoRA/MoE variants, and quantization permutations (smooth-quant, INT8 KV-cache, INT4 AWQ).
Example Tests: MoE & Multi-GPU
tests/integration/defs/examples/test_gptj.py, test_mistral.py, test_mixtral.py, test_nemotron.py
Removed FP8 weight-management tests, Mistral LoRA tests, Mixtral AWQ/MoE/LoRA configurations (1-GPU, 2-node 8-GPU, 4-GPU variants), and Nemotron 4-15B quantization tests (single/2-GPU).
Example Tests: Other Models
tests/integration/defs/examples/test_nemotron_nas.py, test_phi.py
Removed Nemotron NAS LoRA tests (Nano-8B, Super-49B, Ultra-253B) and Phi summary/LoRA tests (single-GPU, 2-GPU, FP8-with-BF16-LoRA).
End-to-End & Sanity Tests
tests/integration/defs/test_e2e.py, test_mlpf_results.py, test_sanity.py
Removed GPT FP32 end-to-end, MIG concurrency benchmark, ChatGLM/GLM/Falcon sanity tests, OpenAI cache-salt and multinodes chat tests, PTP quickstart tests, MLPerf results test (parametrized over H100x2/H200x1/H100x1 with Llama2-70B/GPT-J), and basic installation/workspace/package-list sanity checks.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

🚥 Pre-merge checks | ❌ 3

❌ Failed checks (1 warning, 2 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.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 '[None][test] remove unused tests' is vague and generic, using non-descriptive terms that don't convey meaningful information about the scope or impact of the changeset. Provide a more specific title that indicates the scale/scope of removals, such as '[None][chore] remove large set of unused integration tests' or '[None][chore] clean up 3000+ lines of deprecated test cases'.
Description check ❓ Inconclusive The PR description is minimal and mostly template content. Only one substantive line explains the purpose: 'use vulture to scan unused tests which are not included in any test list or test db'. Provide a more detailed description explaining: (1) which tests were identified as unused and why they are safe to remove, (2) how vulture was used to identify them, (3) the impact on test coverage, and (4) any relevant context about deprecation or maintenance decisions.

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

Copy link
Copy Markdown
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: 1

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/accuracy/test_cli_flow.py (1)

1-15: ⚠️ Potential issue | 🟡 Minor

Address pre-commit hook failures.

The pipeline shows failures from ruff (9 errors) and ruff-format (2 files reformatted). Please run pre-commit hooks locally to fix formatting issues:

pre-commit run --all-files

Or apply formatting with:

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

In `@tests/integration/defs/accuracy/test_cli_flow.py` around lines 1 - 15, Run
the project's pre-commit hooks to fix ruff/format issues (e.g., run "pre-commit
run --all-files" or run "ruff check --fix ." and "ruff format ."), then stage
and commit the changed files; the failing file contains the test module (symbol
"pytest" in test_cli_flow.py) so ensure its formatting and ruff lint errors are
resolved before pushing.
🤖 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/accuracy/test_cli_flow.py`:
- Line 64: Remove the four stale test references from the test-list YAML
(l0_dgx_h200.yml): delete the entries referencing
accuracy/test_cli_flow.py::TestLlama2_7B::test_smooth_quant_ootb_tp2,
::test_int4_awq_tp2, ::test_int4_awq_prequantized_tp2, and
::test_int4_gptq_prequantized_tp2 so the YAML no longer points to deleted test
methods and CI test selection stops failing.

---

Outside diff comments:
In `@tests/integration/defs/accuracy/test_cli_flow.py`:
- Around line 1-15: Run the project's pre-commit hooks to fix ruff/format issues
(e.g., run "pre-commit run --all-files" or run "ruff check --fix ." and "ruff
format ."), then stage and commit the changed files; the failing file contains
the test module (symbol "pytest" in test_cli_flow.py) so ensure its formatting
and ruff lint errors are resolved before pushing.
🪄 Autofix (Beta)

❌ Autofix failed (check again to retry)

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

Run ID: e67871d7-c3aa-4ac8-b288-1680c9bd327f

📥 Commits

Reviewing files that changed from the base of the PR and between 7a450b4 and 38d26fe.

📒 Files selected for processing (28)
  • tests/integration/defs/accuracy/test_cli_flow.py
  • tests/integration/defs/accuracy/test_disaggregated_serving.py
  • tests/integration/defs/accuracy/test_llm_api.py
  • tests/integration/defs/accuracy/test_llm_api_autodeploy.py
  • tests/integration/defs/accuracy/test_llm_api_pytorch.py
  • tests/integration/defs/examples/serve/test_spec_decoding_metrics.py
  • tests/integration/defs/examples/test_ad_guided_decoding.py
  • tests/integration/defs/examples/test_ad_speculative_decoding.py
  • tests/integration/defs/examples/test_bindings.py
  • tests/integration/defs/examples/test_commandr.py
  • tests/integration/defs/examples/test_draft_target_model.py
  • tests/integration/defs/examples/test_eagle.py
  • tests/integration/defs/examples/test_flux.py
  • tests/integration/defs/examples/test_gemma.py
  • tests/integration/defs/examples/test_gpt.py
  • tests/integration/defs/examples/test_gptj.py
  • tests/integration/defs/examples/test_llama.py
  • tests/integration/defs/examples/test_medusa.py
  • tests/integration/defs/examples/test_mistral.py
  • tests/integration/defs/examples/test_mixtral.py
  • tests/integration/defs/examples/test_nemotron.py
  • tests/integration/defs/examples/test_nemotron_nas.py
  • tests/integration/defs/examples/test_phi.py
  • tests/integration/defs/examples/test_qwen.py
  • tests/integration/defs/examples/test_qwenvl.py
  • tests/integration/defs/test_e2e.py
  • tests/integration/defs/test_mlpf_results.py
  • tests/integration/defs/test_sanity.py
💤 Files with no reviewable changes (26)
  • tests/integration/defs/examples/test_commandr.py
  • tests/integration/defs/examples/test_ad_guided_decoding.py
  • tests/integration/defs/accuracy/test_disaggregated_serving.py
  • tests/integration/defs/test_sanity.py
  • tests/integration/defs/examples/serve/test_spec_decoding_metrics.py
  • tests/integration/defs/examples/test_bindings.py
  • tests/integration/defs/examples/test_flux.py
  • tests/integration/defs/examples/test_draft_target_model.py
  • tests/integration/defs/examples/test_ad_speculative_decoding.py
  • tests/integration/defs/test_mlpf_results.py
  • tests/integration/defs/examples/test_qwenvl.py
  • tests/integration/defs/examples/test_nemotron.py
  • tests/integration/defs/examples/test_gptj.py
  • tests/integration/defs/accuracy/test_llm_api_autodeploy.py
  • tests/integration/defs/examples/test_phi.py
  • tests/integration/defs/accuracy/test_llm_api_pytorch.py
  • tests/integration/defs/examples/test_gemma.py
  • tests/integration/defs/examples/test_nemotron_nas.py
  • tests/integration/defs/examples/test_mistral.py
  • tests/integration/defs/examples/test_mixtral.py
  • tests/integration/defs/examples/test_eagle.py
  • tests/integration/defs/accuracy/test_llm_api.py
  • tests/integration/defs/examples/test_qwen.py
  • tests/integration/defs/test_e2e.py
  • tests/integration/defs/examples/test_gpt.py
  • tests/integration/defs/examples/test_medusa.py

Comment thread tests/integration/defs/accuracy/test_cli_flow.py Outdated
@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41060 [ run ] triggered by Bot. Commit: 38d26fe Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41060 [ run ] completed with state FAILURE. Commit: 38d26fe
/LLM/main/L0_MergeRequest_PR pipeline #32039 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

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 1, 2026

/bot run

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41076 [ run ] triggered by Bot. Commit: 9c28a23 Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41076 [ run ] completed with state FAILURE. Commit: 9c28a23
/LLM/main/L0_MergeRequest_PR pipeline #32052 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

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 1, 2026

/bot run

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41112 [ run ] triggered by Bot. Commit: 33ab3ac Link to invocation

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 1, 2026

/bot run

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41112 [ run ] completed with state FAILURE. Commit: 33ab3ac
/LLM/main/L0_MergeRequest_PR pipeline #32088 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

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 1, 2026

/bot run

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41148 [ run ] triggered by Bot. Commit: 57fb046 Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41148 [ run ] completed with state SUCCESS. Commit: 57fb046
/LLM/main/L0_MergeRequest_PR pipeline #32118 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

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 2, 2026

/bot run

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41293 [ run ] triggered by Bot. Commit: efcecc5 Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41293 [ run ] completed with state SUCCESS. Commit: efcecc5
/LLM/main/L0_MergeRequest_PR pipeline #32249 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

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 2, 2026

/bot run

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41350 [ run ] triggered by Bot. Commit: efcecc5 Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #41350 [ run ] completed with state SUCCESS. Commit: efcecc5
/LLM/main/L0_MergeRequest_PR pipeline #32295 completed with status: 'SUCCESS'

CI Report

Link to invocation

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 8, 2026

/bot run --post-merge

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42270 [ run ] completed with state SUCCESS. Commit: 43f0194
/LLM/main/L0_MergeRequest_PR pipeline #33071 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

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 8, 2026

/bot run --post-merge

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42312 [ run ] triggered by Bot. Commit: 43f0194 Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42314 [ run ] triggered by Bot. Commit: 43f0194 Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42312 [ run ] completed with state ABORTED. Commit: 43f0194

Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42314 [ run ] completed with state SUCCESS. Commit: 43f0194
/LLM/main/L0_MergeRequest_PR pipeline #33106 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

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 9, 2026

/bot run --post-merge

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42421 [ run ] triggered by Bot. Commit: 43f0194 Link to invocation

Signed-off-by: Xin He (SW-GPU) <200704525+xinhe-nv@users.noreply.github.com>
@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 9, 2026

/bot run --stage-list ""

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42484 [ run ] triggered by Bot. Commit: e330499 Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42421 [ run ] completed with state ABORTED. Commit: 43f0194

Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42484 [ run ] completed with state SUCCESS. Commit: e330499
/LLM/main/L0_MergeRequest_PR pipeline #33234 (Partly Tested) completed with status: 'SUCCESS'

CI Report

Link to invocation

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 9, 2026

/bot reuse-pipeline

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42527 [ reuse-pipeline ] triggered by Bot. Commit: 9ffc173 Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42527 [ reuse-pipeline ] completed with state SUCCESS. Commit: 9ffc173
Reusing PR_Github #42484 (Partly Tested) for commit 9ffc173

Link to invocation

@xinhe-nv
Copy link
Copy Markdown
Collaborator Author

xinhe-nv commented Apr 9, 2026

/bot reuse-pipeline

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42538 [ reuse-pipeline ] triggered by Bot. Commit: 255aeea Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #42538 [ reuse-pipeline ] completed with state SUCCESS. Commit: 255aeea
Reusing PR_Github #42484 (Partly Tested) for commit 255aeea

Link to invocation

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 9, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Autofix skipped. No unresolved CodeRabbit review comments with fix instructions found.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 9, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Autofix skipped. No unresolved CodeRabbit review comments with fix instructions found.

@xinhe-nv xinhe-nv disabled auto-merge April 9, 2026 14:35
@xinhe-nv xinhe-nv enabled auto-merge (squash) April 9, 2026 14:35
@xinhe-nv xinhe-nv merged commit 3422af5 into NVIDIA:main Apr 9, 2026
5 checks passed
@xinhe-nv xinhe-nv deleted the tests branch April 9, 2026 14:37
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.

6 participants