Skip to content

Commit fc489fc

Browse files
karljangclaude
andauthored
[None][test] Fix three CPU unit-test breaks left by same-day merges (#22597)
Signed-off-by: Kanghwan Jang <861393+karljang@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 752e6b3 commit fc489fc

4 files changed

Lines changed: 7 additions & 20 deletions

File tree

‎tests/integration/test_lists/waives.txt‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,6 @@ full:B200/accuracy/test_llm_api_pytorch_multimodal.py::TestExaone4_5_33B::test_a
6060
full:B200/disaggregated/test_disaggregated.py::test_disaggregated_stress_test[input8k-output1k-conc512-qwen3_32b_fp8_stress] SKIP (https://nvbugs/6621362)
6161
full:B300/accuracy/test_llm_api_pytorch.py::TestGPTOSS::test_w4_4gpus[v2_kv_cache-dp4-trtllm-auto] SKIP (https://nvbugs/7023202)
6262
full:B300/disaggregated/test_disaggregated.py::test_disaggregated_mamba_conc_greater_than_mbs[NVIDIA-Nemotron-3-Super-120B-A12B-FP8] SKIP (https://nvbugs/7088440)
63-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_parks_with_local_heartbeats[False] SKIP (https://nvbugs/7117788)
64-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_parks_with_local_heartbeats[True] SKIP (https://nvbugs/7117788)
65-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_reports_nothing_while_work_remains[control-arrival-False] SKIP (https://nvbugs/7117788)
66-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_reports_nothing_while_work_remains[control-arrival-True] SKIP (https://nvbugs/7117788)
67-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_reports_nothing_while_work_remains[pending-work-False] SKIP (https://nvbugs/7117788)
68-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_reports_nothing_while_work_remains[pending-work-True] SKIP (https://nvbugs/7117788)
69-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_requires_all_ranks_to_drain[all-ranks-idle] SKIP (https://nvbugs/7117788)
70-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_requires_all_ranks_to_drain[arrival] SKIP (https://nvbugs/7117788)
71-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_requires_all_ranks_to_drain[peer-busy] SKIP (https://nvbugs/7117788)
72-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_requires_all_ranks_to_drain[peer-pending-work] SKIP (https://nvbugs/7117788)
73-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_requires_all_ranks_to_drain[transfer] SKIP (https://nvbugs/7117788)
74-
full:CPU/unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_requires_all_ranks_to_drain[waiting] SKIP (https://nvbugs/7117788)
75-
full:CPU/unittest/llmapi/test_sampling_params.py::test_prepare_sampling_params_explicit_end_id_strings_without_tokenizer_are_rejected[words1] SKIP (https://nvbugs/7117674)
7663
full:CPU/unittest/scripts/test_subprocess_timeouts.py::test_every_subprocess_run_call_in_test_code_must_set_timeout SKIP (https://nvbugs/6929769)
7764
full:DGX_B200/accuracy/test_llm_api_pytorch.py::TestDeepSeekV3Lite::test_bfloat16[mtp_nextn=2-attention_dp=True-cuda_graph=True-overlap_scheduler=True-torch_compile=False-enable_chunked_prefill=False-v2_kv_cache=True] SKIP (https://nvbugs/6633268)
7865
full:DGX_B200/unittest/_torch/attention/test_fmha_paged_context_fp8.py::test_stage_kv_cubins_match_the_kernel_inputs_they_were_built_against SKIP (https://nvbugs/7114472)
@@ -176,7 +163,6 @@ unittest/_torch/disaggregation/test_context_cancellation_executor.py::test_contr
176163
unittest/_torch/disaggregation/test_context_cancellation_executor.py::test_control_drain_delivers_accumulated_and_live_aborts_on_every_rank[None-False] SKIP (https://nvbugs/7118311)
177164
unittest/_torch/disaggregation/test_context_cancellation_executor.py::test_control_drain_delivers_accumulated_and_live_aborts_on_every_rank[None-True] SKIP (https://nvbugs/7118311)
178165
unittest/_torch/misc/test_guided_decoder_errors.py::test_executor_loop_fails_the_request_once_its_batch_is_synchronized SKIP (https://nvbugs/7068781)
179-
unittest/_torch/modeling_v2/models/kimi_k3_vl/common/test_k3_kda_metadata.py::test_inforward_split SKIP (https://nvbugs/7117673)
180166
unittest/_torch/moe/test_dynamic_eplb_contracts.py::test_on_autotune_builds_balanced_powerlaw_input SKIP (https://nvbugs/7034332)
181167
unittest/_torch/pyexecutor/engine/runners/decoder/test_inputs.py::DecoderInputPreparerTestCase::test_prepare_inputs_with_helix_parallelism SKIP (https://nvbugs/6818710)
182168
unittest/_torch/pyexecutor/kv_cache/test_kv_cache_v2_vocab_size.py::test_branch_only_enables_multimodal_keys_when_needed[dense-encoder_disable_noop] SKIP (https://nvbugs/6818710)
@@ -187,7 +173,6 @@ unittest/_torch/pyexecutor/kv_cache/test_kv_cache_v2_vocab_size.py::test_branch_
187173
unittest/_torch/pyexecutor/kv_cache/test_kv_cache_v2_vocab_size.py::test_branch_only_enables_multimodal_keys_when_needed[nemotron_hybrid-text_only] SKIP (https://nvbugs/6818710)
188174
unittest/_torch/pyexecutor/kv_cache/test_kv_cache_v2_vocab_size.py::test_unresolvable_vocab_size_only_warns_when_multimodal_keys_are_needed[False] SKIP (https://nvbugs/6818710)
189175
unittest/_torch/pyexecutor/kv_cache/test_kv_cache_v2_vocab_size.py::test_unresolvable_vocab_size_only_warns_when_multimodal_keys_are_needed[True] SKIP (https://nvbugs/6818710)
190-
unittest/_torch/pyexecutor/test_idle_iter_stats.py::test_idle_fetch_requires_all_ranks_to_drain[control] SKIP (https://nvbugs/7117789)
191176
unittest/_torch/pyexecutor/test_py_executor.py::test_early_response_suppresses_repeat_and_leaves_terminal_for_normal_pass SKIP (https://nvbugs/7125734)
192177
unittest/bindings/test_transfer_agent_bindings.py::TestMooncakeFunctionalTransfer::test_mooncake_wait_in_progress_on_zero_timeout SKIP (https://nvbugs/6517836)
193178
unittest/bindings/test_transfer_agent_bindings.py::TestMooncakeFunctionalTransfer::test_mooncake_write_transfer_gpu_tensor SKIP (https://nvbugs/6517836)

‎tests/unittest/_torch/modeling_v2/models/kimi_k3_vl/common/test_k3_kda_metadata.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def test_midchunk_fetch():
127127

128128
@pytest.mark.cpu_only
129129
def test_inforward_split():
130-
from tensorrt_llm._torch.pyexecutor.kv_cache.mamba_cache_manager import InforwardSnapshotEntry
130+
from tensorrt_llm._torch.modules.fla.inforward_snapshot import InforwardSnapshotEntry
131131

132132
fam = _fam()
133133
manager = SimpleNamespace(conv_state_shape=(12, 3), state_index={11: 7, 13: 2}.__getitem__)

‎tests/unittest/_torch/pyexecutor/test_idle_iter_stats.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,9 @@ def _fetch_stub(**overrides):
726726
dist=SimpleNamespace(rank=0, pp_size=1),
727727
disagg=SimpleNamespace(has_retiring_gen_receives=False),
728728
canceled_req_ids=set(),
729+
kv_cache_transceiver=None,
729730
_has_pending_connector_transfers=lambda: False,
731+
_has_pending_context_retirement=lambda: False,
730732
_idle_kv_transfer_poll_timeout=lambda: None,
731733
_stats_has_pending_work=False,
732734
_has_pending_iteration_stats_work=lambda: False,
@@ -781,7 +783,7 @@ def test_idle_fetch_requires_all_ranks_to_drain(
781783

782784
queue = _WaitingQueue([object()] if waiting else [])
783785
stub = _fetch_stub(
784-
control_requests=[object()] if control else [],
786+
control_requests=[SimpleNamespace(control_requires_drain=True)] if control else [],
785787
disagg=SimpleNamespace(has_retiring_gen_receives=retiring),
786788
_has_pending_connector_transfers=lambda: pending,
787789
_stats_has_pending_work=stats_busy,

‎tests/unittest/llmapi/test_sampling_params.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,10 @@ def test_prepare_sampling_params_explicit_end_id_tokenizes_bad_words_only():
667667
assert sampling_params._get_stop_words() == []
668668

669669

670-
@pytest.mark.parametrize(
671-
"words", [{"stop": "STOP"}, {"stop": ""}, {"bad": "BAD"}, {"bad": ""}, {"bad": ["BAD"]}]
672-
)
670+
@pytest.mark.parametrize("words", [{"stop": "STOP"}, {"bad": "BAD"}, {"bad": ""}, {"bad": ["BAD"]}])
673671
def test_prepare_sampling_params_explicit_end_id_strings_without_tokenizer_are_rejected(words):
672+
# An empty stop string is rejected by SamplingParams itself; see
673+
# test_sampling_params_rejects_empty_stop_string.
674674
with pytest.raises(ValueError, match="tokenizer is required"):
675675
_prepare_sampling_params(SamplingParams(end_id=7, **words), None)
676676

0 commit comments

Comments
 (0)