[None][fix] Initialize KV cache fixtures and unwaive nine cases on all platforms - #19382
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. WalkthroughTwo KV-cache test fixtures now initialize previously unset manager state. One sets ChangesKV-cache test fixture defaults
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The restored tests now receive the state required for their intended paths, with no identified merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/bot run |
|
PR_Github #74264 [ run ] triggered by Bot. Commit: |
zhaoyangwang-nvidia
left a comment
There was a problem hiding this comment.
Approve with nit.
|
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 kill |
|
PR_Github #74271 [ kill ] triggered by Bot. Commit: |
4292b39 to
8f499c4
Compare
|
/bot run --disable-fail-fast --add-multi-gpu-test |
|
PR_Github #74264 [ run ] completed with state |
|
PR_Github #74271 [ kill ] completed with state |
|
PR_Github #74280 [ run ] triggered by Bot. Commit: |
|
/bot kill |
|
PR_Github #74288 [ kill ] triggered by Bot. Commit: |
|
PR_Github #74280 [ run ] completed with state |
|
PR_Github #74288 [ kill ] completed with state |
|
/bot run --disable-fail-fast |
|
PR_Github #74299 [ run ] triggered by Bot. Commit: |
Signed-off-by: Yi Zhang <187001205+yizhang-nv@users.noreply.github.com>
Signed-off-by: Yi Zhang <187001205+yizhang-nv@users.noreply.github.com> # Conflicts: # tests/integration/test_lists/waives.txt
8f499c4 to
743b06b
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #74308 [ run ] triggered by Bot. Commit: |
|
PR_Github #74299 [ run ] completed with state |
|
PR_Github #74308 [ run ] completed with state |
|
/bot run --disable-fail-fast --add-multi-gpu-test |
|
PR_Github #74321 [ run ] triggered by Bot. Commit: |
|
/bot run --disable-fail-fast |
|
PR_Github #74328 [ run ] triggered by Bot. Commit: |
|
PR_Github #74321 [ run ] completed with state |
|
PR_Github #74328 [ run ] completed with state |
…st waives The directory-level waive added in NVIDIA#19381 for https://nvbugs/6800103 was left in place after NVIDIA#19382 fixed that bug, so every test under unittest/_torch/executor has been skipped in CI since 2026-09-18. Running the tree on main with the line removed gives 2436 passed and 54 failed. Replace the blanket entry with waives for exactly the failing tests, so the rest of the tree runs again: - test_kv_cache_budget_split.py: class-level waives for TestSplitGpuBudgetForDraft and TestExternalDrafterKvDtype, tracked under the existing https://nvbugs/6800223 (same stale-fixture cause). - test_mamba_cache_manager.py: 16 test functions whose fixture lacks the `mapping` attribute production now reads. - test_kv_cache_v2_vocab_size.py: 11 parametrizations whose fixture lacks `_max_cuda_graph_batch_size`. - test_pytorch_model_engine.py: test_prepare_tp_inputs_with_helix_parallelism, base update_helix_param signature lacks helix_owned_new_tokens. The last three are tracked under https://nvbugs/6818710. Signed-off-by: Brian Nguyen <brnguyen@nvidia.com>
Dev Engineer Review
The fixtures now initialize
kv_connector_manager=Noneandis_estimating_kv_cache=False. Nine global waivers were removed, restoring two cached-token attribution cases and seven connector-prefix cases. No production or public API changes are included. Material review findings are unavailable.QA Engineer Review
Two unit-test fixture files and
tests/integration/test_lists/waives.txtchanged. The waiver file removes nine KV-cache entries. The affected KV-cache manager suite is registered intest-db/l0_b200.yml,l0_cpu.yml, andl0_h100.yml; related connector-prefix coverage is registered intest-db/l0_a10.yml. Test results were not supplied. Coverage verdict:needs follow-up.Per-File QA Perspective
tests/unittest/_torch/executor/kv_cache/test_kv_cache_manager_v2.py: Initializeskv_connector_managerfor cached-token attribution tests. The suite is listed in thetest-dbCI files; verify the restored cases.tests/unittest/_torch/executor/test_kv_connector_v2_prefix.py: Initializesis_estimating_kv_cachefor connector-prefix tests. Related connector-prefix coverage is listed intest-db/l0_a10.yml; verify the restored cases across applicable platforms.tests/integration/test_lists/waives.txt: Removes nine KV-cache waivers. Verify that all restored cases pass on applicable platforms.Description
After #18583 and #18762 landed together, nine KV cache unit tests fail with
AttributeErrorbecause their fixtures bypassKVCacheManagerV2.__init__. Initializeis_estimating_kv_cache=Falsein the connector fixture andkv_connector_manager=Nonein the cached-token attribution fixture so the tests reach their existing assertions.The fixture fix adds two initialization lines in test setup. Failure example: main pre-merge #60944.
After #19384 merged, this branch was rebased onto
origin/mainincluding its merge commitffddc5abd188f308adb5a2906112c2b1e7192d7d. This PR explicitly removes all nine global SKIP entries introduced by #19384: two cached-token attribution cases and seven connector-prefix cases (AskTiming, ReEntryAfterAServe, and SwaScratchReuse). These deletions restore the cases on all platforms where their existing CI lists select them, including H100 and B300 pre-merge. Jenkins applies explicit PR waiver deletions when combining the current main waiver list. The final diff is three files, +2/-9.Test Coverage
tests/unittest/_torch/executor/test_kv_connector_v2_prefix.pyandtests/unittest/_torch/executor/kv_cache/test_kv_cache_manager_v2.pycover both fixtures.umbriel-b200-034on the earlier fixture-only head. Collection was blocked while loadingtests/unittest/conftest.py: the existinglibth_common.socould not resolve the PyTorchtorch::Library::_defsymbol. No tests executed in this local attempt; runtime validation remains pending CI.PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why.
PR follows the TRT-LLM coding guidelines.
Existing tests cover the changed fixture initialization.
No API, dependency, ownership, documentation, or architecture changes.
Reviewers are assigned according to CODEOWNERS.
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.