Repository navigation
[None][fix] Fix DFlash budget test broken by CachedModelLoader signature change - #19582
Conversation
|
/bot run |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/TensorRT-LLM/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe DFlash configuration budget tests simplify ChangesDFlash budget tests
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The loader update preserves both budget tests’ assertions and uses the supported constructor signature; no material merge risk is identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
PR_Github #75214 [ run ] triggered by Bot. Commit: |
|
PR_Github #75214 [ run ] completed with state
|
|
Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements. |
|
/bot run --stage-list="CPU-Generic-x86-1,CPU-Generic-arm-1" |
|
PR_Github #75227 [ run ] triggered by Bot. Commit: |
…ure change PR NVIDIA#19466 added TestHubIdRevalidation, which constructs CachedModelLoader with llm_build_stats and workspace. PR NVIDIA#19428 landed afterwards and removed both parameters (together with LlmBuildStats and the workspace property), so the two tests in that class now fail with TypeError on main. Drop the removed keyword arguments. The workspace argument only existed to avoid creating a TemporaryDirectory, which CachedModelLoader no longer does, so the tmp_path argument of the _loader helper is no longer needed either. Signed-off-by: Weimin Wang <301118019+weiminwang-nv@users.noreply.github.com>
|
PR_Github #75227 [ run ] completed with state |
7bcdd25 to
a05b335
Compare
|
/bot skip --comment "test cases change only. All affected test stages are passed" |
|
PR_Github #75242 [ skip ] triggered by Bot. Commit: |
|
PR_Github #75242 [ skip ] completed with state |
Description
TestHubIdRevalidationintests/unittest/_torch/speculative/hw_agnostic/test_dflash_config_budget.pyfails withTypeErroron currentmain.The test was added by #19466, which builds the loader as:
#19428 merged ~9 hours later and removed both
llm_build_statsandworkspacefromCachedModelLoader.__init__(along with theLlmBuildStatsclass and theworkspaceproperty). The two PRs touchtensorrt_llm/llmapi/llm_utils.pyin nearby but non-overlapping hunks, so there was no textual merge conflict and neither PR's CI run saw the other's change.This patch drops the removed keyword arguments.
workspacewas only passed to avoid creating aTemporaryDirectory, whichCachedModelLoaderno longer does, so thetmp_pathargument of the_loaderhelper is dropped as well. No behavior under test changes.Affected tests:
TestHubIdRevalidation::test_hub_id_budget_checked_after_downloadTestHubIdRevalidation::test_local_path_is_not_checked_twiceTest Coverage
tests/unittest/_torch/speculative/hw_agnostic/test_dflash_config_budget.py::TestHubIdRevalidationPR Checklist
Dev Engineer Review
_loaderno longer accepts the unusedtmp_pathargument or passes the removedllm_build_statsandworkspacearguments toCachedModelLoader. The change is limited to the test helper and its callers. The stated behavior under test is unchanged.QA Engineer Review
The modified unit test file covers hub-ID budget validation after download and avoids checking a local path twice. The helper change aligns its constructor call with the current
CachedModelLoaderAPI. No test-list changes are reported. Coverage verdict: sufficient for the API-compatibility change.Per-File QA Perspective
tests/unittest/_torch/speculative/hw_agnostic/test_dflash_config_budget.py: The tests cover budget checks after download and for local paths. This is a unit test file; integration CI and manual-QA listing status is not established by the supplied information.