test(prims-ts): fix the 1-CTA MLA task-cache host test after #9641 and #9846 #9806
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 455 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.366
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9806"
general
weight: 0.35
qsang-nv
<!-- .github/pull_request_template.md -->
📌 Description
#9641 passes
cp_rank=self.cp_rankfrom the 1-CTA MLA task toruntime_seq_len_kv_from_task_cache(mla_decode/throughput_latency_1cta/tasks.py).test_native_task_cache_refreshes_for_each_work_tileintests/experimental/test_deepseek_v41_defaults_cpu.pyreplaces that function with a local stub,visible_length, that takes nocp_rank. All 8 cases therefore fail onmain:The stub now accepts
cp_rankas a keyword and asserts that the task forwards its default rank, 0.#9846 then added the
caches_visible_kv_endproperty to the same task. Thenative_taskfixture strips every decorator so the task's methods run without CuTe, which turns the property into a bound method that is always true, soget_domaincallscta_visible_kv_end, which the fixture doesn't define. With only the stub fixed, the 8 cases fail on currentmainwith:The fixture now keeps
@propertywhen it strips the DSL decorators, and stubs the property's predicate with tile rows that share one K prefix. This is a test-only change.This PR was prepared with AI assistance (Claude Code) and reviewed by the author.
🔍 Related Issues
mainwithout #9647.🚀 Pull Request Checklist
✅ Pre-commit Checks
pre-commitby runningpip install pre-commit(or used your preferred method).pre-commit install.pre-commit run --all-filesand fixed any reported issues.The hooks ran on the changed file and pass.
🧪 Tests
unittest, etc.).Suggested CI test targets (optional; paths under
tests/, whitespace-separated — a startingpoint for
@flashinfer-bot run <targets>//bot run <targets>, reviewers may adjust):tests/experimental/test_deepseek_v41_defaults_cpu.pyValidation
tests/experimental/test_deepseek_v41_defaults_cpu.pyis CPU-only. Full file, Python 3.12, onmain4d5a6ce3:| |
nvidia-cutlass-dsl4.8.0 | 4.9.0.dev1 ||---|---|---|
|
main| 8 failed (TypeError), 124 passed | 8 failed (TypeError), 124 passed ||
mainwith only thecp_rankstub | 8 failed (NameError), 124 passed | 8 failed (NameError), 124 passed || This PR | 132 passed | 132 passed |
tests/experimental/test_deepseek_v41_cache.pyalso passes on 4.8.0. Merged with #9647, both files pass on both DSL versions (174 passed, 1 skipped).Reviewer Notes
#9647 will be rebased onto this fix once it merges, so its targeted run can include this file again.
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Tests
Updated test coverage for task decorator handling and KV-prefix behavior.
* Updated a test callback to accept and verify the CPU rank argument.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->