Skip to content

[None][test] Fix lora config less than required config number#12409

Merged
yufeiwu-nv merged 2 commits into
NVIDIA:mainfrom
yufeiwu-nv:fix_testlist
Mar 23, 2026
Merged

[None][test] Fix lora config less than required config number#12409
yufeiwu-nv merged 2 commits into
NVIDIA:mainfrom
yufeiwu-nv:fix_testlist

Conversation

@yufeiwu-nv
Copy link
Copy Markdown
Collaborator

@yufeiwu-nv yufeiwu-nv commented Mar 20, 2026

Summary by CodeRabbit

  • Tests
    • Enhanced path handling in performance test scenarios with cyclic repetition support and improved error messaging for edge cases.

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.

@yufeiwu-nv yufeiwu-nv requested a review from a team as a code owner March 20, 2026 08:45
@yufeiwu-nv
Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "only test list modify"

@yufeiwu-nv yufeiwu-nv enabled auto-merge (squash) March 20, 2026 08:46
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 20, 2026

📝 Walkthrough

Walkthrough

Modified LoRA path handling in a performance test's get_prepare_data_command method. The code now cyclically repeats existing paths when fewer are provided than requested, and updates the error message when paths exceed the requested count.

Changes

Cohort / File(s) Summary
LoRA Path Handling in Performance Tests
tests/integration/defs/perf/test_perf.py
Updated get_prepare_data_command to cyclically repeat LoRA paths when insufficient paths are provided, and refined error messaging for cases where paths exceed the requested count.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

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

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description contains only the template with no actual content filled in—the Description, Test Coverage, and comment sections remain empty with only their placeholder HTML comments. Add a clear description of the issue, explain the solution, and document the relevant test coverage before merging.
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.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title follows the required template with ticket ID [None] and type [test], and directly corresponds to the main change: handling LoRA configs with fewer paths than required.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

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.

🧹 Nitpick comments (1)
tests/integration/defs/perf/test_perf.py (1)

1-1: Update copyright year to 2026.

The file is being modified in 2026, but the copyright header still shows 2022-2025. As per coding guidelines, the year should be updated for modified files.

-# SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-FileCopyrightText: Copyright (c) 2022-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/integration/defs/perf/test_perf.py` at line 1, Update the SPDX
copyright header at the top of the file (the SPDX-FileCopyrightText line) to
reflect the current year range by changing "2022-2025" to "2022-2026" so the
header reads "... Copyright (c) 2022-2026 NVIDIA CORPORATION & AFFILIATES. All
rights reserved."
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@tests/integration/defs/perf/test_perf.py`:
- Line 1: Update the SPDX copyright header at the top of the file (the
SPDX-FileCopyrightText line) to reflect the current year range by changing
"2022-2025" to "2022-2026" so the header reads "... Copyright (c) 2022-2026
NVIDIA CORPORATION & AFFILIATES. All rights reserved."

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 53b4f60d-5a27-4049-a3d3-24fbe9bbc788

📥 Commits

Reviewing files that changed from the base of the PR and between 4197e19 and 51b536d.

📒 Files selected for processing (1)
  • tests/integration/defs/perf/test_perf.py

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #39722 [ skip ] triggered by Bot. Commit: 51b536d Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #39722 [ skip ] completed with state SUCCESS. Commit: 51b536d
Skipping testing for commit 51b536d

Link to invocation

@yufeiwu-nv yufeiwu-nv merged commit 2b3f254 into NVIDIA:main Mar 23, 2026
7 checks passed
longcheng-nv pushed a commit to longcheng-nv/TensorRT-LLM that referenced this pull request Mar 31, 2026
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